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.0009422/0.000942, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.01266/0.01266, allocations: 169.9 kB / 16.26 MB, free: 6.676 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.752/1.752, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.727/0.727, allocations: 132.3 MB / 423.8 MB, free: 1.973 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003077/0.0003077, allocations: 8 kB / 0.5041 GB, free: 3.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.346, allocations: 81.57 MB / 0.5837 GB, free: 3.863 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.001721/0.3478, allocations: 1.744 MB / 0.5854 GB, free: 2.602 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006101/0.3484, allocations: 0.5081 MB / 0.5859 GB, free: 2.238 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.339e-05/0.3485, allocations: 3.312 kB / 0.5859 GB, free: 2.238 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 8.904e-05/0.3486, allocations: 21.69 kB / 0.586 GB, free: 2.223 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 8.85e-05/0.3487, allocations: 43.5 kB / 0.586 GB, free: 2.191 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001804/0.3489, allocations: 42.77 kB / 0.586 GB, free: 2.168 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001872/0.3491, allocations: 178.9 kB / 0.5862 GB, free: 2.082 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001373/0.3492, allocations: 56.12 kB / 0.5863 GB, free: 2.051 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00011/0.3493, allocations: 63.06 kB / 0.5863 GB, free: 2.023 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.3494, allocations: 64.69 kB / 0.5864 GB, free: 1.996 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.527e-05/0.3495, allocations: 6.688 kB / 0.5864 GB, free: 1.996 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.439e-05/0.3495, allocations: 6.938 kB / 0.5864 GB, free: 1.996 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.18e-05/0.3495, allocations: 30.8 kB / 0.5864 GB, free: 1.977 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.797e-05/0.3496, allocations: 97.81 kB / 0.5865 GB, free: 1.902 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001684/0.3498, allocations: 161.6 kB / 0.5867 GB, free: 1.848 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.3498, allocations: 0.8125 kB / 0.5867 GB, free: 1.848 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3498, allocations: 0 / 0.5867 GB, free: 1.848 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.007e-06/0.3498, allocations: 0 / 0.5867 GB, free: 1.848 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.0006136/0.3504, allocations: 476.4 kB / 0.5871 GB, free: 1.438 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.3505, allocations: 10.03 kB / 0.5871 GB, free: 1.438 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.079e-05/0.3505, allocations: 46.59 kB / 0.5872 GB, free: 1.391 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.997e-05/0.3506, allocations: 26.44 kB / 0.5872 GB, free: 1.375 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001473/0.3507, allocations: 214.7 kB / 0.5874 GB, free: 1.148 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.39e-05/0.3508, allocations: 41.14 kB / 0.5875 GB, free: 1.109 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.937e-05/0.3508, allocations: 17.72 kB / 0.5875 GB, free: 1.102 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003981/0.3512, allocations: 168.8 kB / 0.5876 GB, free: 1.031 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.3513, allocations: 1.281 kB / 0.5876 GB, free: 1.031 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.591e-05/0.3513, allocations: 17.22 kB / 0.5877 GB, free: 1.016 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.3513, allocations: 2.906 kB / 0.5877 GB, free: 1.016 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005249/0.3518, allocations: 170.2 kB / 0.5878 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006945/0.3525, allocations: 0.5398 MB / 0.5883 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004292/0.353, allocations: 144.2 kB / 0.5885 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002393/0.3532, allocations: 97.83 kB / 0.5886 GB, free: 468 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.565e-05/0.3532, allocations: 1.469 kB / 0.5886 GB, free: 468 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.505e-05/0.3533, allocations: 36.33 kB / 0.5886 GB, free: 424 kB / 430.1 MB Notification: Performance of pre-optimization done (n=12): time 1.252e-06/0.3533, allocations: 0 / 0.5886 GB, free: 424 kB / 430.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007383/0.354, allocations: 256.5 kB / 0.5889 GB, free: 344 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.085e-05/0.354, allocations: 53.47 kB / 0.5889 GB, free: 280 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.617e-05/0.3541, allocations: 154.2 kB / 0.5891 GB, free: 156 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.247e-05/0.3542, allocations: 27.78 kB / 0.5891 GB, free: 124 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.057e-05/0.3542, allocations: 134.5 kB / 0.5892 GB, free: 15.99 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.551e-05/0.3543, allocations: 40.23 kB / 0.5892 GB, free: 15.96 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.295e-05/0.3543, allocations: 23.12 kB / 0.5893 GB, free: 15.94 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.3544, allocations: 326.6 kB / 0.5896 GB, free: 15.62 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002264/0.3547, allocations: 73.28 kB / 0.5896 GB, free: 15.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002425/0.3549, allocations: 98.8 kB / 0.5897 GB, free: 15.56 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000435/0.3554, allocations: 170.9 kB / 0.5899 GB, free: 15.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3554, allocations: 0 / 0.5899 GB, free: 15.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005336/0.3559, allocations: 209.3 kB / 0.5901 GB, free: 15.42 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.3559, allocations: 5.406 kB / 0.5901 GB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.3559, allocations: 5.844 kB / 0.5901 GB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.356, allocations: 1.125 kB / 0.5901 GB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001959/0.3562, allocations: 45.7 kB / 0.5902 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.3562, allocations: 2.156 kB / 0.5902 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001603/0.3563, allocations: 42.77 kB / 0.5902 GB, free: 15.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.246e-05/0.3564, allocations: 5.031 kB / 0.5902 GB, free: 15.4 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 (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 9.347e-05/0.3565, allocations: 124.8 kB / 0.5903 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.776e-05/0.3565, allocations: 13.53 kB / 0.5903 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.411e-05/0.3566, allocations: 21.78 kB / 0.5904 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.3566, allocations: 5.938 kB / 0.5904 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3566, allocations: 0.6562 kB / 0.5904 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.3566, allocations: 0.75 kB / 0.5904 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002532/0.3568, allocations: 247.8 kB / 0.5906 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.3569, allocations: 0 / 0.5906 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001957/0.3571, allocations: 38.27 kB / 0.5906 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.3571, allocations: 2.125 kB / 0.5906 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.3571, allocations: 4 kB / 0.5906 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.3571, allocations: 2.172 kB / 0.5906 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3571, allocations: 0 / 0.5906 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007616/0.3579, allocations: 389 kB / 0.591 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.778e-05/0.3579, allocations: 89.2 kB / 0.5911 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.143e-05/0.358, allocations: 2.438 kB / 0.5911 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001738/0.3581, allocations: 31.95 kB / 0.5911 GB, free: 14.69 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.495e-05/0.3582, allocations: 11.28 kB / 0.5911 GB, free: 14.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.3582, allocations: 7.75 kB / 0.5912 GB, free: 14.69 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.221e-05/0.3583, allocations: 114 kB / 0.5913 GB, free: 14.61 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3583, allocations: 4 kB / 0.5913 GB, free: 14.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002543/0.3586, allocations: 40.31 kB / 0.5913 GB, free: 14.59 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 (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.001003/0.3596, allocations: 0.9187 MB / 0.5922 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005095/0.3601, allocations: 165.3 kB / 0.5924 GB, free: 13.82 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.3601, allocations: 0.6875 kB / 0.5924 GB, free: 13.82 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002406/0.3603, allocations: 90.92 kB / 0.5924 GB, free: 13.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003138/0.3607, allocations: 12.42 kB / 0.5925 GB, free: 13.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00275/0.3634, allocations: 2.136 MB / 0.5945 GB, free: 12.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002507/0.3637, allocations: 0.7197 MB / 0.5953 GB, free: 11.54 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.59e-05/0.3638, allocations: 11.45 kB / 0.5953 GB, free: 11.53 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.936e-05/0.3638, allocations: 41.59 kB / 0.5953 GB, free: 11.5 MB / 446.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3639, allocations: 1.375 kB / 0.5953 GB, free: 11.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4492/0.8131, allocations: 2.824 MB / 0.5981 GB, free: 11 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002208/0.8134, allocations: 200.5 kB / 0.5983 GB, free: 10.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.704/2.517, allocations: 1.344 kB / 0.5983 GB, free: 10.75 MB / 446.1 MB (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)