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.007488/0.007488, allocations: 100.5 kB / 15.73 MB, free: 6.039 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.001725/0.001725, allocations: 195.5 kB / 16.68 MB, free: 5.957 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.261/1.261, 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.7283/0.7283, allocations: 132.2 MB / 422.7 MB, free: 6.578 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 68.97 kB / 0.5808 GB, free: 24.12 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1427, allocations: 80.22 MB / 0.6592 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.002731/0.1455, allocations: 2.018 MB / 0.6611 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000709/0.1462, allocations: 0.5376 MB / 0.6617 GB, free: 8.23 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.513e-05/0.1463, allocations: 4 kB / 0.6617 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 9.046e-05/0.1464, allocations: 19.73 kB / 0.6617 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.328e-05/0.1465, allocations: 55.55 kB / 0.6617 GB, free: 8.152 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001688/0.1467, allocations: 51.88 kB / 0.6618 GB, free: 8.102 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001747/0.1469, allocations: 183.2 kB / 0.662 GB, free: 7.922 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001357/0.147, allocations: 74.3 kB / 0.662 GB, free: 7.848 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.1471, allocations: 71.72 kB / 0.6621 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.936e-05/0.1472, allocations: 79.61 kB / 0.6622 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.447e-05/0.1472, allocations: 16 kB / 0.6622 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.163e-05/0.1473, allocations: 20 kB / 0.6622 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.49e-05/0.1473, allocations: 39.89 kB / 0.6622 GB, free: 7.625 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.106e-05/0.1474, allocations: 79.55 kB / 0.6623 GB, free: 7.547 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001617/0.1476, allocations: 175 kB / 0.6625 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.1476, allocations: 0 / 0.6625 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.282e-06/0.1476, allocations: 0 / 0.6625 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.1476, allocations: 0 / 0.6625 GB, free: 7.379 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.000632/0.1482, allocations: 494.7 kB / 0.663 GB, free: 6.848 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 2.797e-05/0.1482, allocations: 11.97 kB / 0.663 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.632e-05/0.1483, allocations: 46.73 kB / 0.663 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.608e-05/0.1483, allocations: 24.75 kB / 0.663 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001733/0.1485, allocations: 208 kB / 0.6632 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.573e-05/0.1486, allocations: 38.27 kB / 0.6633 GB, free: 6.473 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.918e-05/0.1486, allocations: 12.38 kB / 0.6633 GB, free: 6.461 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003369/0.149, allocations: 165.5 kB / 0.6634 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.149, allocations: 0 / 0.6634 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.149, allocations: 8 kB / 0.6634 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.149, allocations: 4 kB / 0.6635 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000404/0.1494, allocations: 141.2 kB / 0.6636 GB, free: 6.145 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006361/0.1501, allocations: 0.523 MB / 0.6641 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003697/0.1504, allocations: 142.6 kB / 0.6642 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.1506, allocations: 80.8 kB / 0.6643 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.826e-05/0.1507, allocations: 0 / 0.6643 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.805e-05/0.1507, allocations: 34.56 kB / 0.6643 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 2.154e-06/0.1507, allocations: 0 / 0.6643 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0005923/0.1513, allocations: 229.2 kB / 0.6646 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.785e-05/0.1513, allocations: 51.41 kB / 0.6646 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.915e-05/0.1514, allocations: 154.2 kB / 0.6648 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.1515, allocations: 29.7 kB / 0.6648 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.122e-05/0.1515, allocations: 132.1 kB / 0.6649 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.957e-05/0.1516, allocations: 35.45 kB / 0.6649 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.174e-05/0.1516, allocations: 33.7 kB / 0.665 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.674e-05/0.1517, allocations: 322.8 kB / 0.6653 GB, free: 4.262 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000177/0.1519, allocations: 59.95 kB / 0.6653 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.1521, allocations: 86.52 kB / 0.6654 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003483/0.1524, allocations: 154.3 kB / 0.6656 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1524, allocations: 0 / 0.6656 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004142/0.1529, allocations: 185.3 kB / 0.6657 GB, free: 3.762 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.035e-05/0.1529, allocations: 4 kB / 0.6658 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-06/0.1529, allocations: 0 / 0.6658 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.1529, allocations: 4 kB / 0.6658 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001703/0.1531, allocations: 40.03 kB / 0.6658 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.1531, allocations: 7.922 kB / 0.6658 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001199/0.1532, allocations: 27.81 kB / 0.6658 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.153e-05/0.1532, allocations: 8 kB / 0.6658 GB, free: 3.672 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 8.715e-05/0.1533, allocations: 125.8 kB / 0.666 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.107e-05/0.1534, allocations: 7.906 kB / 0.666 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.036e-05/0.1534, allocations: 20.7 kB / 0.666 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.1534, allocations: 4 kB / 0.666 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.1534, allocations: 0 / 0.666 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.1534, allocations: 7.938 kB / 0.666 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002129/0.1537, allocations: 245.4 kB / 0.6662 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.1537, allocations: 4 kB / 0.6662 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001717/0.1538, allocations: 35.91 kB / 0.6663 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.586e-06/0.1539, allocations: 4 kB / 0.6663 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.1539, allocations: 0 / 0.6663 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.1539, allocations: 0 / 0.6663 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1539, allocations: 4 kB / 0.6663 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006015/0.1545, allocations: 339.2 kB / 0.6666 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.98e-05/0.1545, allocations: 92.95 kB / 0.6667 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.823e-05/0.1546, allocations: 4 kB / 0.6667 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/0.1547, allocations: 19.97 kB / 0.6667 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.538e-05/0.1548, allocations: 11.98 kB / 0.6667 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.1548, allocations: 4 kB / 0.6667 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.824e-05/0.1548, allocations: 115.2 kB / 0.6668 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1548, allocations: 0 / 0.6668 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002353/0.1551, allocations: 35.91 kB / 0.6669 GB, free: 2.512 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.0008088/0.1559, allocations: 0.8786 MB / 0.6677 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003866/0.1563, allocations: 139.2 kB / 0.6679 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.1563, allocations: 0 / 0.6679 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001855/0.1565, allocations: 75.89 kB / 0.6679 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002991/0.1568, allocations: 20.11 kB / 0.668 GB, free: 1.383 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002217/0.159, allocations: 1.992 MB / 0.6699 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002209/0.1593, allocations: 0.7158 MB / 0.6706 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 5.293e-05/0.1593, allocations: 12.55 kB / 0.6706 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.193e-05/0.1594, allocations: 39.42 kB / 0.6706 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of SimCode: time 1.91e-07/0.1594, allocations: 0 / 0.6706 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01898/0.1784, allocations: 3.303 MB / 0.6739 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.063/7.242, allocations: 12.47 kB / 0.6739 GB, free: 11.34 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)