Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.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_Heating,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",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.005065/0.005065, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.001315/0.001315, allocations: 192.8 kB / 16.67 MB, free: 5.969 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.318/1.318, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8081/0.8081, allocations: 132.2 MB / 422.7 MB, free: 6.547 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001764/0.001764, allocations: 70.39 kB / 0.5808 GB, free: 24.16 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1444, allocations: 80.21 MB / 0.6592 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.003089/0.1475, allocations: 2.031 MB / 0.6611 GB, free: 8.762 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008388/0.1484, allocations: 0.5415 MB / 0.6617 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.167e-05/0.1484, allocations: 0 / 0.6617 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001193/0.1486, allocations: 23.73 kB / 0.6617 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 9.375e-05/0.1487, allocations: 43.58 kB / 0.6617 GB, free: 8.148 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002132/0.1489, allocations: 63.86 kB / 0.6618 GB, free: 8.086 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002305/0.1491, allocations: 179.2 kB / 0.662 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.1493, allocations: 78.28 kB / 0.662 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.1495, allocations: 67.78 kB / 0.6621 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001299/0.1496, allocations: 87.55 kB / 0.6622 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.549e-05/0.1496, allocations: 12 kB / 0.6622 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 3.304e-05/0.1497, allocations: 20 kB / 0.6622 GB, free: 7.648 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.106e-05/0.1497, allocations: 31.91 kB / 0.6622 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.5e-05/0.1498, allocations: 87.53 kB / 0.6623 GB, free: 7.531 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002126/0.15, allocations: 167.5 kB / 0.6625 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.15, allocations: 4 kB / 0.6625 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.583e-06/0.15, allocations: 0 / 0.6625 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.1501, 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.0008175/0.1509, allocations: 0.4908 MB / 0.663 GB, free: 6.824 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.1509, allocations: 12.03 kB / 0.663 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.81e-05/0.151, allocations: 46.73 kB / 0.663 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.925e-05/0.151, allocations: 16.84 kB / 0.663 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002266/0.1513, allocations: 212.1 kB / 0.6632 GB, free: 6.496 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.404e-05/0.1513, allocations: 34.27 kB / 0.6633 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.027e-05/0.1514, allocations: 12.38 kB / 0.6633 GB, free: 6.445 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004017/0.1518, allocations: 161.5 kB / 0.6634 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.1518, allocations: 3.938 kB / 0.6635 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.1518, allocations: 4 kB / 0.6635 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.1518, allocations: 4 kB / 0.6635 GB, free: 6.27 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004892/0.1523, allocations: 149.2 kB / 0.6636 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008208/0.1532, allocations: 0.5308 MB / 0.6641 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004227/0.1536, allocations: 134.6 kB / 0.6642 GB, free: 5.391 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002359/0.1538, allocations: 80.75 kB / 0.6643 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.952e-05/0.1539, allocations: 4 kB / 0.6643 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.223e-05/0.1539, allocations: 30.56 kB / 0.6644 GB, free: 5.266 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 1.243e-06/0.1539, allocations: 0 / 0.6644 GB, free: 5.266 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0007241/0.1546, allocations: 227.1 kB / 0.6646 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.599e-05/0.1547, allocations: 51.41 kB / 0.6646 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.1548, allocations: 154.2 kB / 0.6648 GB, free: 4.816 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.974e-05/0.1548, allocations: 25.7 kB / 0.6648 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.412e-05/0.1549, allocations: 136.2 kB / 0.6649 GB, free: 4.645 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.335e-05/0.155, allocations: 51.61 kB / 0.665 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.691e-05/0.1551, allocations: 33.66 kB / 0.665 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.1552, allocations: 322.8 kB / 0.6653 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002147/0.1554, allocations: 55.95 kB / 0.6654 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002296/0.1557, allocations: 86.52 kB / 0.6654 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004162/0.1561, allocations: 150.3 kB / 0.6656 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.634e-06/0.1561, allocations: 0 / 0.6656 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004831/0.1566, allocations: 185.5 kB / 0.6658 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.1566, allocations: 8 kB / 0.6658 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.1566, allocations: 0 / 0.6658 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.1566, allocations: 0 / 0.6658 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001903/0.1568, allocations: 44.03 kB / 0.6658 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.1568, allocations: 0 / 0.6658 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.157, allocations: 31.86 kB / 0.6658 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.157, allocations: 4 kB / 0.6659 GB, free: 3.652 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.0001211/0.1571, allocations: 129.7 kB / 0.666 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.22e-05/0.1572, allocations: 19.91 kB / 0.666 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.97e-05/0.1572, allocations: 12.72 kB / 0.666 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.1573, allocations: 11.98 kB / 0.666 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.1573, allocations: 0 / 0.666 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.1573, allocations: 0 / 0.666 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002707/0.1575, allocations: 233.5 kB / 0.6662 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.1576, allocations: 4 kB / 0.6662 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.1577, allocations: 31.97 kB / 0.6663 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1578, allocations: 0 / 0.6663 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.592e-05/0.1578, allocations: 4 kB / 0.6663 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.1578, allocations: 3.938 kB / 0.6663 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.1578, allocations: 3.984 kB / 0.6663 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007462/0.1585, allocations: 345.7 kB / 0.6666 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.396e-05/0.1586, allocations: 92.94 kB / 0.6667 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.563e-05/0.1586, allocations: 12.06 kB / 0.6667 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000151/0.1588, allocations: 11.98 kB / 0.6667 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.403e-05/0.1588, allocations: 19.97 kB / 0.6667 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-06/0.1589, allocations: 3.938 kB / 0.6668 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.606e-05/0.159, allocations: 111.2 kB / 0.6669 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.159, allocations: 0 / 0.6669 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002431/0.1592, 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.1603, allocations: 0.8802 MB / 0.6677 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004695/0.1607, allocations: 147.2 kB / 0.6679 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1607, allocations: 0 / 0.6679 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002232/0.161, allocations: 71.89 kB / 0.668 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003385/0.1613, allocations: 24.11 kB / 0.668 GB, free: 1.352 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002736/0.1641, allocations: 1.981 MB / 0.6699 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003397/0.1644, allocations: 0.7196 MB / 0.6706 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 5.936e-05/0.1645, 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.213e-05/0.1646, allocations: 39.42 kB / 0.6707 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of SimCode: time 2.71e-07/0.1646, allocations: 0 / 0.6707 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02543/0.19, allocations: 3.294 MB / 0.6739 GB, free: 11.33 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.547/7.737, allocations: 14.84 kB / 0.6739 GB, free: 11.32 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)