Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005223/0.005223, allocations: 99.34 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001244/0.001245, allocations: 195.9 kB / 16.68 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8167/0.8167, allocations: 132.2 MB / 422.7 MB, free: 6.562 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001759/0.001759, allocations: 61.41 kB / 0.5808 GB, free: 24.04 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1495/0.1513, allocations: 80.21 MB / 0.6592 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.003115/0.1544, allocations: 2.03 MB / 0.6611 GB, free: 8.766 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008629/0.1553, allocations: 0.5337 MB / 0.6617 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.914e-05/0.1554, allocations: 4 kB / 0.6617 GB, free: 8.223 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001329/0.1555, allocations: 23.72 kB / 0.6617 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001013/0.1556, allocations: 43.56 kB / 0.6617 GB, free: 8.156 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002271/0.1559, allocations: 63.86 kB / 0.6618 GB, free: 8.094 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002409/0.1561, allocations: 187.2 kB / 0.662 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.1563, allocations: 66.31 kB / 0.662 GB, free: 7.844 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001357/0.1564, allocations: 71.77 kB / 0.6621 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001344/0.1566, allocations: 87.5 kB / 0.6622 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.467e-05/0.1566, allocations: 16 kB / 0.6622 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 3.254e-05/0.1567, allocations: 12 kB / 0.6622 GB, free: 7.66 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.722e-05/0.1567, allocations: 43.89 kB / 0.6623 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.684e-05/0.1568, allocations: 83.53 kB / 0.6623 GB, free: 7.535 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002287/0.157, allocations: 171.5 kB / 0.6625 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1571, allocations: 0 / 0.6625 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.222e-06/0.1571, allocations: 4 kB / 0.6625 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.54e-06/0.1571, allocations: 0 / 0.6625 GB, free: 7.363 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0008251/0.1579, allocations: 498.5 kB / 0.663 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.1579, allocations: 8.031 kB / 0.663 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.494e-05/0.158, allocations: 46.73 kB / 0.663 GB, free: 6.766 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.646e-05/0.1581, allocations: 24.84 kB / 0.6631 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002277/0.1583, allocations: 204.1 kB / 0.6632 GB, free: 6.504 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.28e-05/0.1584, allocations: 42.25 kB / 0.6633 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.073e-05/0.1584, allocations: 12.38 kB / 0.6633 GB, free: 6.445 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003994/0.1588, allocations: 157.5 kB / 0.6634 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.1588, allocations: 0 / 0.6634 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.1589, allocations: 8 kB / 0.6635 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.1589, allocations: 7.984 kB / 0.6635 GB, free: 6.27 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004884/0.1594, allocations: 145.2 kB / 0.6636 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008316/0.1602, allocations: 0.5308 MB / 0.6641 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004441/0.1607, allocations: 134.6 kB / 0.6642 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002329/0.1609, allocations: 80.81 kB / 0.6643 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.1609, allocations: 0 / 0.6643 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.483e-05/0.161, allocations: 30.56 kB / 0.6644 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 4.038e-06/0.161, allocations: 7.922 kB / 0.6644 GB, free: 5.266 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0007409/0.1617, allocations: 221.4 kB / 0.6646 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.968e-05/0.1618, allocations: 55.41 kB / 0.6646 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000133/0.1619, allocations: 154.2 kB / 0.6648 GB, free: 4.816 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.284e-05/0.1619, allocations: 29.7 kB / 0.6648 GB, free: 4.781 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.22e-05/0.162, allocations: 128.2 kB / 0.6649 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.204e-05/0.1621, allocations: 47.61 kB / 0.665 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.686e-05/0.1621, allocations: 29.67 kB / 0.665 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1623, allocations: 326.8 kB / 0.6653 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000211/0.1625, allocations: 63.94 kB / 0.6654 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002212/0.1627, allocations: 82.52 kB / 0.6654 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004147/0.1632, allocations: 153.3 kB / 0.6656 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1632, allocations: 0 / 0.6656 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004957/0.1637, allocations: 185.5 kB / 0.6658 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.1637, allocations: 7.984 kB / 0.6658 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.1637, allocations: 0 / 0.6658 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.1637, allocations: 7.938 kB / 0.6658 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001894/0.1639, allocations: 39.97 kB / 0.6658 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.1639, allocations: 0 / 0.6658 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001374/0.1641, allocations: 31.92 kB / 0.6659 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.721e-05/0.1641, allocations: 8 kB / 0.6659 GB, free: 3.648 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (con.y_boolean,$PRE.con.y_boolean) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * 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 0.000113/0.1642, allocations: 125.7 kB / 0.666 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.422e-05/0.1643, allocations: 15.91 kB / 0.666 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.61e-05/0.1643, allocations: 16.72 kB / 0.666 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1643, allocations: 0 / 0.666 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1643, allocations: 0 / 0.666 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.1643, allocations: 3.984 kB / 0.666 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002662/0.1646, allocations: 237.5 kB / 0.6662 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1646, allocations: 4 kB / 0.6662 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001863/0.1648, allocations: 35.97 kB / 0.6663 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.1648, allocations: 0 / 0.6663 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.675e-05/0.1648, allocations: 11.92 kB / 0.6663 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.1648, allocations: 0 / 0.6663 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1648, allocations: 0 / 0.6663 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007424/0.1656, allocations: 341.3 kB / 0.6666 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.805e-05/0.1657, allocations: 92.98 kB / 0.6667 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.468e-05/0.1657, allocations: 7.984 kB / 0.6667 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001532/0.1659, allocations: 15.98 kB / 0.6667 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.227e-05/0.1659, allocations: 16.03 kB / 0.6667 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.388e-06/0.1659, allocations: 8 kB / 0.6668 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.511e-05/0.166, allocations: 115.2 kB / 0.6669 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.166, allocations: 0 / 0.6669 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002411/0.1663, allocations: 32 kB / 0.6669 GB, free: 2.492 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (cap.T) * Number of discrete variables: 1 (con.y_boolean) * Number of discrete states: 1 (con.y_boolean) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.001036/0.1673, allocations: 0.8684 MB / 0.6677 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004692/0.1678, allocations: 144 kB / 0.6679 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1678, allocations: 0 / 0.6679 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002263/0.168, allocations: 79.88 kB / 0.668 GB, free: 1.379 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003357/0.1684, allocations: 12 kB / 0.668 GB, free: 1.367 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00279/0.1712, allocations: 2.011 MB / 0.6699 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/0.1716, allocations: 0.7157 MB / 0.6706 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.528e-05/0.1716, allocations: 12.55 kB / 0.6706 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.923e-05/0.1717, allocations: 43.42 kB / 0.6707 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of SimCode: time 4.91e-07/0.1718, allocations: 0 / 0.6707 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03299/0.2047, allocations: 3.295 MB / 0.6739 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.591/7.796, allocations: 7.922 kB / 0.6739 GB, free: 11.32 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)