Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_dev_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.006325/0.006325, allocations: 101.3 kB / 15.73 MB, free: 6.441 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.001313/0.001313, allocations: 198.3 kB / 16.67 MB, free: 6.355 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9672/0.9672, allocations: 135.1 MB / 425.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 63.91 kB / 0.5851 GB, free: 3.906 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4657/0.467, allocations: 80.92 MB / 0.6641 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.00279/0.4698, allocations: 2.033 MB / 0.6661 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007311/0.4706, allocations: 0.5237 MB / 0.6666 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.604e-05/0.4707, allocations: 5.344 kB / 0.6666 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001157/0.4708, allocations: 22.09 kB / 0.6666 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.515e-05/0.4709, allocations: 44.83 kB / 0.6667 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001979/0.4711, allocations: 59.06 kB / 0.6667 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001878/0.4713, allocations: 194.1 kB / 0.6669 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.4714, allocations: 63.45 kB / 0.667 GB, free: 5.012 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.4716, allocations: 77.28 kB / 0.6671 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000113/0.4717, allocations: 78.03 kB / 0.6671 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.037e-05/0.4717, allocations: 15.44 kB / 0.6672 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.759e-05/0.4718, allocations: 14.31 kB / 0.6672 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.436e-05/0.4718, allocations: 36.12 kB / 0.6672 GB, free: 4.879 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.847e-05/0.4719, allocations: 87.56 kB / 0.6673 GB, free: 4.816 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001859/0.4721, allocations: 177.9 kB / 0.6675 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.476e-06/0.4721, allocations: 4 kB / 0.6675 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.834e-06/0.4721, allocations: 0 / 0.6675 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.057e-05/0.4721, allocations: 0 / 0.6675 GB, free: 4.684 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.0007207/0.4728, allocations: 491.2 kB / 0.6679 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.4729, allocations: 9.688 kB / 0.6679 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.968e-05/0.4729, allocations: 46.64 kB / 0.668 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.595e-05/0.473, allocations: 18.38 kB / 0.668 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002016/0.4732, allocations: 209.6 kB / 0.6682 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.303e-05/0.4733, allocations: 36.92 kB / 0.6682 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.822e-05/0.4734, allocations: 16.67 kB / 0.6683 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000392/0.4738, allocations: 160.8 kB / 0.6684 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.4738, allocations: 4 kB / 0.6684 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.759e-05/0.4738, allocations: 5.344 kB / 0.6684 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.4738, allocations: 2.688 kB / 0.6684 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000445/0.4743, allocations: 146.7 kB / 0.6686 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007146/0.475, allocations: 0.5314 MB / 0.6691 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004227/0.4754, allocations: 136.5 kB / 0.6692 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002051/0.4756, allocations: 81.33 kB / 0.6693 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.4757, allocations: 1.625 kB / 0.6693 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.434e-05/0.4757, allocations: 36.09 kB / 0.6693 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 1.252e-06/0.4757, allocations: 0 / 0.6693 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0006467/0.4763, allocations: 224.9 kB / 0.6695 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.53e-05/0.4764, allocations: 52.53 kB / 0.6696 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.079e-05/0.4765, allocations: 155.4 kB / 0.6697 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.474e-05/0.4765, allocations: 27.14 kB / 0.6698 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.419e-05/0.4766, allocations: 138.7 kB / 0.6699 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.906e-05/0.4766, allocations: 40.8 kB / 0.6699 GB, free: 2.539 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.701e-05/0.4767, allocations: 27.16 kB / 0.67 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.033e-05/0.4768, allocations: 322.5 kB / 0.6703 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001864/0.4769, allocations: 60.31 kB / 0.6703 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.4771, allocations: 96.23 kB / 0.6704 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003373/0.4775, allocations: 139.9 kB / 0.6705 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.4775, allocations: 4 kB / 0.6705 GB, free: 2.02 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004084/0.4779, allocations: 186.4 kB / 0.6707 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.4779, allocations: 5.219 kB / 0.6707 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.4779, allocations: 1.375 kB / 0.6707 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.478, allocations: 1.375 kB / 0.6707 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001846/0.4781, allocations: 52.11 kB / 0.6708 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.4782, allocations: 1.375 kB / 0.6708 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001259/0.4783, allocations: 20.17 kB / 0.6708 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/0.4783, allocations: 2.531 kB / 0.6708 GB, free: 1.887 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 7.111e-05/0.4784, allocations: 140.6 kB / 0.6709 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.36e-05/0.4784, allocations: 14.12 kB / 0.671 GB, free: 1.738 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.548e-05/0.4785, allocations: 15.12 kB / 0.671 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.4785, allocations: 6.75 kB / 0.671 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.4785, allocations: 0 / 0.671 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.4785, allocations: 0 / 0.671 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001862/0.4787, allocations: 248.4 kB / 0.6712 GB, free: 1.465 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.4787, allocations: 0 / 0.6712 GB, free: 1.465 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001792/0.4789, allocations: 36.38 kB / 0.6712 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.4789, allocations: 1.625 kB / 0.6712 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.4789, allocations: 0 / 0.6712 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.4789, allocations: 0.7812 kB / 0.6712 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4789, allocations: 7.984 kB / 0.6713 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006086/0.4795, allocations: 339.6 kB / 0.6716 GB, free: 1.211 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.568e-05/0.4796, allocations: 89.17 kB / 0.6717 GB, free: 1.109 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.778e-05/0.4796, allocations: 5.281 kB / 0.6717 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001553/0.4798, allocations: 21.84 kB / 0.6717 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.591e-05/0.4798, allocations: 13.89 kB / 0.6717 GB, free: 1.086 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.689e-06/0.4799, allocations: 2.75 kB / 0.6717 GB, free: 1.086 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.693e-05/0.4799, allocations: 115.4 kB / 0.6718 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4799, allocations: 0 / 0.6718 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002573/0.4802, allocations: 36.53 kB / 0.6719 GB, free: 0.9844 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.0007715/0.481, allocations: 0.8749 MB / 0.6727 GB, free: 220 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004682/0.4814, allocations: 142.4 kB / 0.6728 GB, free: 160 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.4815, allocations: 0 / 0.6728 GB, free: 160 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002153/0.4817, allocations: 80.59 kB / 0.6729 GB, free: 124 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004144/0.4821, allocations: 15.22 kB / 0.6729 GB, free: 116 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003122/0.4852, allocations: 1.976 MB / 0.6749 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004512/0.4857, allocations: 0.7209 MB / 0.6756 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.119e-05/0.4858, allocations: 5 kB / 0.6756 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.136e-05/0.4859, allocations: 46.14 kB / 0.6756 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of SimCode: time 2.41e-07/0.4859, allocations: 0 / 0.6756 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02423/0.5101, allocations: 3.299 MB / 0.6788 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.711/8.221, allocations: 8.25 kB / 0.6788 GB, free: 12.04 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling.fmu > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)