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.001574/0.001574, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001626/0.001627, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.345/2.345, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.236/1.236, allocations: 132.2 MB / 423.2 MB, free: 2.199 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005849/0.0005854, allocations: 9.875 kB / 0.5033 GB, free: 4.199 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8549/0.8555, allocations: 81.58 MB / 0.583 GB, free: 4.02 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.003733/0.8593, allocations: 1.644 MB / 0.5846 GB, free: 2.844 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001306/0.8607, allocations: 0.5049 MB / 0.5851 GB, free: 2.488 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001296/0.8608, allocations: 2.156 kB / 0.5851 GB, free: 2.488 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 6.778e-05/0.8609, allocations: 15.06 kB / 0.5851 GB, free: 2.48 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002328/0.8611, allocations: 44.42 kB / 0.5851 GB, free: 2.449 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000307/0.8615, allocations: 51.02 kB / 0.5852 GB, free: 2.418 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003295/0.8618, allocations: 114.8 kB / 0.5853 GB, free: 2.363 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00026/0.8621, allocations: 60.08 kB / 0.5853 GB, free: 2.332 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002125/0.8623, allocations: 55.45 kB / 0.5854 GB, free: 2.312 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002049/0.8625, allocations: 68.33 kB / 0.5855 GB, free: 2.281 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.702e-05/0.8626, allocations: 6.5 kB / 0.5855 GB, free: 2.281 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.331e-05/0.8626, allocations: 11 kB / 0.5855 GB, free: 2.277 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 5.788e-05/0.8627, allocations: 26.36 kB / 0.5855 GB, free: 2.262 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.639e-05/0.8628, allocations: 51.8 kB / 0.5855 GB, free: 2.219 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003015/0.8631, allocations: 120.8 kB / 0.5857 GB, free: 2.188 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.8631, allocations: 0 / 0.5857 GB, free: 2.188 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.8631, allocations: 0.9375 kB / 0.5857 GB, free: 2.188 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.8631, allocations: 4 kB / 0.5857 GB, free: 2.184 MB / 430.1 MB 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.001124/0.8643, allocations: 479.6 kB / 0.5861 GB, free: 1.773 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.495e-05/0.8644, allocations: 9.062 kB / 0.5861 GB, free: 1.773 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.965e-05/0.8645, allocations: 46.8 kB / 0.5862 GB, free: 1.727 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.658e-05/0.8646, allocations: 25.75 kB / 0.5862 GB, free: 1.711 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003211/0.8649, allocations: 209.2 kB / 0.5864 GB, free: 1.488 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001324/0.865, allocations: 36.64 kB / 0.5864 GB, free: 1.453 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.127e-05/0.8651, allocations: 13.31 kB / 0.5864 GB, free: 1.449 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007675/0.8659, allocations: 166.7 kB / 0.5866 GB, free: 1.379 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.8659, allocations: 0 / 0.5866 GB, free: 1.379 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.197e-05/0.866, allocations: 10.28 kB / 0.5866 GB, free: 1.371 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.648e-05/0.866, allocations: 3.531 kB / 0.5866 GB, free: 1.371 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009301/0.8669, allocations: 177.7 kB / 0.5868 GB, free: 1.328 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00134/0.8683, allocations: 0.5321 MB / 0.5873 GB, free: 0.9023 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007181/0.869, allocations: 146.2 kB / 0.5874 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.796e-05/0.8691, allocations: 1.406 kB / 0.5874 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.8691, allocations: 33.23 kB / 0.5875 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of pre-optimization done (n=12): time 2.154e-06/0.8691, allocations: 3.938 kB / 0.5875 GB, free: 0.8008 MB / 430.1 MB Notification: Performance of matching and sorting (n=12): time 0.001322/0.8704, allocations: 258.6 kB / 0.5877 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.367e-05/0.8705, allocations: 53.56 kB / 0.5878 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002041/0.8707, allocations: 149.9 kB / 0.5879 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.382e-05/0.8708, allocations: 30.83 kB / 0.588 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.8709, allocations: 131 kB / 0.5881 GB, free: 392 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.053e-05/0.871, allocations: 40.14 kB / 0.5881 GB, free: 360 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.067e-05/0.871, allocations: 3.938 kB / 0.5881 GB, free: 356 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.64e-05/0.8711, allocations: 330.3 kB / 0.5884 GB, free: 24 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003527/0.8715, allocations: 73.42 kB / 0.5885 GB, free: 8 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004701/0.8719, allocations: 98.05 kB / 0.5886 GB, free: 15.96 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003712/0.8723, allocations: 74.83 kB / 0.5887 GB, free: 15.95 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.8723, allocations: 0 / 0.5887 GB, free: 15.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008907/0.8733, allocations: 221.1 kB / 0.5889 GB, free: 15.86 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.097e-05/0.8733, allocations: 4.906 kB / 0.5889 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.8733, allocations: 1.406 kB / 0.5889 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.315e-05/0.8734, allocations: 2.031 kB / 0.5889 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003442/0.8737, allocations: 45.45 kB / 0.5889 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/0.8737, allocations: 2.312 kB / 0.5889 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002685/0.874, allocations: 43.33 kB / 0.589 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.161e-05/0.8741, allocations: 3.781 kB / 0.589 GB, free: 15.84 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.con.y_boolean,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000195/0.8743, allocations: 128.8 kB / 0.5891 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.703e-05/0.8743, allocations: 18.89 kB / 0.5891 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.539e-05/0.8744, allocations: 20.69 kB / 0.5891 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/0.8744, allocations: 2.422 kB / 0.5891 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.403e-06/0.8744, allocations: 0 / 0.5891 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.8745, allocations: 2.156 kB / 0.5891 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005036/0.875, allocations: 241.8 kB / 0.5894 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.875, allocations: 0.9375 kB / 0.5894 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003123/0.8753, allocations: 42.75 kB / 0.5894 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.8753, allocations: 1.312 kB / 0.5894 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/0.8754, allocations: 8.703 kB / 0.5894 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.8754, allocations: 1.125 kB / 0.5894 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.8754, allocations: 0 / 0.5894 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001365/0.8768, allocations: 383.3 kB / 0.5898 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.693e-05/0.8769, allocations: 85.59 kB / 0.5899 GB, free: 15.15 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.418e-05/0.8769, allocations: 6 kB / 0.5899 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002988/0.8772, allocations: 25.05 kB / 0.5899 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.619e-05/0.8774, allocations: 20.8 kB / 0.5899 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.522e-05/0.8774, allocations: 2.219 kB / 0.5899 GB, free: 15.14 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001565/0.8775, allocations: 112.9 kB / 0.59 GB, free: 15.05 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.376e-06/0.8776, allocations: 1.469 kB / 0.59 GB, free: 15.05 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005101/0.8781, allocations: 44.03 kB / 0.5901 GB, free: 15.04 MB / 446.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001819/0.8799, allocations: 0.907 MB / 0.591 GB, free: 14.31 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0008622/0.8808, allocations: 173.6 kB / 0.5911 GB, free: 14.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.8808, allocations: 0 / 0.5911 GB, free: 14.27 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004139/0.8812, allocations: 85.19 kB / 0.5912 GB, free: 14.26 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004408/0.8817, allocations: 18.11 kB / 0.5912 GB, free: 14.25 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004043/0.8858, allocations: 1.407 MB / 0.5926 GB, free: 13.28 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005147/0.8863, allocations: 0.7185 MB / 0.5933 GB, free: 12.59 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001178/0.8864, allocations: 13.11 kB / 0.5933 GB, free: 12.58 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000131/0.8866, allocations: 41.27 kB / 0.5934 GB, free: 12.55 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/0.8866, allocations: 0 / 0.5934 GB, free: 12.55 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02833/0.9149, allocations: 2.766 MB / 0.5961 GB, free: 12.2 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003285/0.9153, allocations: 176.1 kB / 0.5962 GB, free: 11.96 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.81/3.725, allocations: 0 / 0.5962 GB, free: 11.96 MB / 446.1 MB (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/linux/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) Environment - environmentSimulation: