Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008235/0.0008235, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009334/0.0009334, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8581/0.8581, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002652/0.002652, allocations: 234.4 kB / 259.4 MB, free: 13.02 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.6634/0.6634, allocations: 138.4 MB / 454.3 MB, free: 30.04 MB / 410.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.034e-06/2.034e-06, allocations: 0 / 0.6463 GB, free: 1.84 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.183e-05/2.387e-05, allocations: 10.16 kB / 0.6464 GB, free: 1.828 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.2231/0.2232, allocations: 2.051 MB / 0.6484 GB, free: 55.83 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.000955/0.2241, allocations: 0.5598 MB / 0.6489 GB, free: 55.79 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.2242, allocations: 2.469 kB / 0.6489 GB, free: 55.79 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.000104/0.2243, allocations: 26.27 kB / 0.6489 GB, free: 55.77 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 7.449e-05/0.2244, allocations: 43.11 kB / 0.649 GB, free: 55.76 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002379/0.2246, allocations: 94.05 kB / 0.6491 GB, free: 55.75 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0002527/0.2249, allocations: 265 kB / 0.6493 GB, free: 55.72 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002037/0.2251, allocations: 86.86 kB / 0.6494 GB, free: 55.72 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001652/0.2253, allocations: 157.3 kB / 0.6495 GB, free: 55.71 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001215/0.2254, allocations: 88.86 kB / 0.6496 GB, free: 55.7 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 4.476e-05/0.2254, allocations: 26.81 kB / 0.6497 GB, free: 55.7 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 3.163e-05/0.2255, allocations: 26.97 kB / 0.6497 GB, free: 55.7 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 4.512e-05/0.2255, allocations: 56.36 kB / 0.6497 GB, free: 55.69 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 7.581e-05/0.2256, allocations: 77.05 kB / 0.6498 GB, free: 55.68 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0003056/0.2259, allocations: 303 kB / 0.6501 GB, free: 55.65 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.2259, allocations: 1.562 kB / 0.6501 GB, free: 55.65 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2259, allocations: 0 / 0.6501 GB, free: 55.65 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 6.993e-06/0.2259, allocations: 2.281 kB / 0.6501 GB, free: 55.65 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0007212/0.2266, allocations: 0.5743 MB / 0.6507 GB, free: 55.23 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.2267, allocations: 11.7 kB / 0.6507 GB, free: 55.23 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.271e-05/0.2267, allocations: 53.69 kB / 0.6507 GB, free: 55.19 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.306e-05/0.2268, allocations: 28.86 kB / 0.6508 GB, free: 55.18 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002673/0.2271, allocations: 198 kB / 0.6509 GB, free: 55.03 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.944e-05/0.2271, allocations: 21.89 kB / 0.651 GB, free: 55.02 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.563e-05/0.2271, allocations: 26.03 kB / 0.651 GB, free: 55.02 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003868/0.2275, allocations: 322.8 kB / 0.6513 GB, free: 54.91 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.2275, allocations: 1.125 kB / 0.6513 GB, free: 54.91 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.873e-05/0.2275, allocations: 12.28 kB / 0.6513 GB, free: 54.9 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.2275, allocations: 5.125 kB / 0.6513 GB, free: 54.9 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003554/0.2279, allocations: 202.1 kB / 0.6515 GB, free: 54.88 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006985/0.2286, allocations: 0.5293 MB / 0.652 GB, free: 54.53 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004466/0.229, allocations: 219 kB / 0.6522 GB, free: 54.46 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001559/0.2292, allocations: 85.8 kB / 0.6523 GB, free: 54.44 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 1.74e-05/0.2292, allocations: 1.75 kB / 0.6523 GB, free: 54.44 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002875/0.2295, allocations: 191.4 kB / 0.6525 GB, free: 54.37 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=18): time 1.232e-06/0.2295, allocations: 0 / 0.6525 GB, free: 54.37 MB / 0.5573 GB Notification: Performance of matching and sorting (n=18): time 0.0005943/0.2301, allocations: 329.2 kB / 0.6528 GB, free: 54.28 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.2301, allocations: 120 kB / 0.6529 GB, free: 54.14 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.2302, allocations: 206.4 kB / 0.6531 GB, free: 54 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.2302, allocations: 35.95 kB / 0.6532 GB, free: 53.97 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 5.629e-05/0.2303, allocations: 158.4 kB / 0.6533 GB, free: 53.83 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 2.56e-05/0.2303, allocations: 55.16 kB / 0.6534 GB, free: 53.79 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.702e-05/0.2304, allocations: 68.28 kB / 0.6534 GB, free: 53.75 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 3.669e-05/0.2304, allocations: 330.9 kB / 0.6537 GB, free: 53.43 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000202/0.2306, allocations: 190.6 kB / 0.6539 GB, free: 53.31 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000223/0.2309, allocations: 312.1 kB / 0.6542 GB, free: 53.05 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000343/0.2312, allocations: 313.9 kB / 0.6545 GB, free: 52.86 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2312, allocations: 3.094 kB / 0.6545 GB, free: 52.86 MB / 0.5573 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004818/0.2317, allocations: 0.4954 MB / 0.655 GB, free: 52.55 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.294e-05/0.2317, allocations: 92.31 kB / 0.6551 GB, free: 52.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.2317, allocations: 2.062 kB / 0.6551 GB, free: 52.45 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.2317, allocations: 1.938 kB / 0.6551 GB, free: 52.45 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.2319, allocations: 49.77 kB / 0.6551 GB, free: 52.45 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.2319, allocations: 3.719 kB / 0.6552 GB, free: 52.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001566/0.232, allocations: 56.45 kB / 0.6552 GB, free: 52.43 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.789e-05/0.232, allocations: 14.22 kB / 0.6552 GB, free: 52.43 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 25 (antFre.disErr.y,$PRE.antFre.disErr.y,TEvaOutEmu.count,$PRE.TEvaOutEmu.count,TEvaOutEmu.T_start,$PRE.TEvaOutEmu.T_start,TConInEmu.count,$PRE.TConInEmu.count,TConInEmu.T_start,$PRE.TConInEmu.T_start,ySetPul.count,$PRE.ySetPul.count,ySetPul.T_start,$PRE.ySetPul.T_start,antFre.hys.y,$PRE.antFre.hys.y,hys.y,$PRE.hys.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,antFre.intConOne.y,antFre.disErr.local_set,antFre.disErr.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.665e-05/0.2321, allocations: 155 kB / 0.6554 GB, free: 52.29 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.884e-05/0.2321, allocations: 22.08 kB / 0.6554 GB, free: 52.28 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003977/0.2325, allocations: 260.8 kB / 0.6556 GB, free: 52.19 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.2325, allocations: 1.812 kB / 0.6556 GB, free: 52.19 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.2325, allocations: 5.812 kB / 0.6556 GB, free: 52.19 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.2325, allocations: 1.641 kB / 0.6556 GB, free: 52.19 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005019/0.233, allocations: 0.5268 MB / 0.6562 GB, free: 51.85 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.2331, allocations: 1.656 kB / 0.6562 GB, free: 51.85 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.247e-05/0.2331, allocations: 32.25 kB / 0.6562 GB, free: 51.85 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.2331, allocations: 5.594 kB / 0.6562 GB, free: 51.84 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.2331, allocations: 4.531 kB / 0.6562 GB, free: 51.84 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2331, allocations: 0 / 0.6562 GB, free: 51.84 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.2331, allocations: 0 / 0.6562 GB, free: 51.84 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00036/0.2335, allocations: 352.7 kB / 0.6565 GB, free: 51.66 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 1.638e-05/0.2335, allocations: 22.44 kB / 0.6566 GB, free: 51.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.597e-05/0.2335, allocations: 7.188 kB / 0.6566 GB, free: 51.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.2337, allocations: 47.28 kB / 0.6566 GB, free: 51.63 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.525e-05/0.2338, allocations: 43.3 kB / 0.6567 GB, free: 51.62 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.2338, allocations: 13.33 kB / 0.6567 GB, free: 51.62 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 6.268e-05/0.2338, allocations: 138.4 kB / 0.6568 GB, free: 51.53 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5e-08/0.2338, allocations: 3.938 kB / 0.6568 GB, free: 51.52 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0002031/0.234, allocations: 60.86 kB / 0.6569 GB, free: 51.51 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,antFre.disErr.y,antFre.hys.y,ySetPul.T_start,ySetPul.count,TConInEmu.T_start,TConInEmu.count,TEvaOutEmu.T_start,TEvaOutEmu.count) * Number of discrete states: 6 (TEvaOutEmu.count,TConInEmu.count,ySetPul.count,antFre.hys.y,hys.y,antFre.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007008/0.2347, allocations: 1.002 MB / 0.6578 GB, free: 50.76 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0004605/0.2352, allocations: 491.4 kB / 0.6583 GB, free: 50.41 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2352, allocations: 0 / 0.6583 GB, free: 50.41 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0001798/0.2354, allocations: 113.6 kB / 0.6584 GB, free: 50.39 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002413/0.2356, allocations: 34.02 kB / 0.6584 GB, free: 50.38 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002197/0.2378, allocations: 2.939 MB / 0.6613 GB, free: 48.21 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.379e-05/0.2379, allocations: 129.1 kB / 0.6614 GB, free: 48.12 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 7.032e-05/0.238, allocations: 14.56 kB / 0.6615 GB, free: 48.12 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9e-05/0.2381, allocations: 73.89 kB / 0.6615 GB, free: 48.07 MB / 0.5573 GB Notification: Performance of SimCode: time 6.91e-07/0.2381, allocations: 4 kB / 0.6615 GB, free: 48.06 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01861/0.2567, allocations: 6.258 MB / 0.6676 GB, free: 46.94 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.837/7.094, allocations: 2.812 kB / 0.6676 GB, free: 46.94 MB / 0.5573 GB " [Timeout remaining time 653] (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze_fmu --startTime=0 --stopTime=100 --stepSize=1 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.fmu > BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.578283000737429] Failed to read output from testmodel.py, exit status != 0: 7.175589405931532 7.188144418 6.960223053 Calling exit ...