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: translateModel(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating") translateModel(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 104.6 kB / 16.27 MB, free: 5.977 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.001251/0.001251, allocations: 189.9 kB / 17.2 MB, free: 5.602 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.416/1.416, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8664/0.8664, allocations: 132.2 MB / 423.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00246/0.002461, allocations: 67.84 kB / 0.5024 GB, free: 11.68 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4258/0.4283, allocations: 80.19 MB / 0.5807 GB, free: 27.2 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.003046/0.4314, allocations: 2.022 MB / 0.5827 GB, free: 25.63 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008071/0.4322, allocations: 0.5374 MB / 0.5832 GB, free: 25.2 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.088e-05/0.4323, allocations: 3.625 kB / 0.5832 GB, free: 25.2 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001192/0.4324, allocations: 25.16 kB / 0.5833 GB, free: 25.18 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 8.588e-05/0.4326, allocations: 43.58 kB / 0.5833 GB, free: 25.14 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001967/0.4328, allocations: 59.88 kB / 0.5834 GB, free: 25.09 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001871/0.433, allocations: 182.3 kB / 0.5835 GB, free: 24.98 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002128/0.4332, allocations: 65.73 kB / 0.5836 GB, free: 24.95 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001216/0.4333, allocations: 76.48 kB / 0.5837 GB, free: 24.9 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001224/0.4335, allocations: 79.31 kB / 0.5837 GB, free: 24.84 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.203e-05/0.4335, allocations: 14.88 kB / 0.5838 GB, free: 24.84 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.147e-05/0.4336, allocations: 15.62 kB / 0.5838 GB, free: 24.84 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.342e-05/0.4336, allocations: 40.09 kB / 0.5838 GB, free: 24.81 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 6.937e-05/0.4337, allocations: 81.09 kB / 0.5839 GB, free: 24.75 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001616/0.4339, allocations: 171.2 kB / 0.5841 GB, free: 24.63 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.4339, allocations: 0 / 0.5841 GB, free: 24.63 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4339, allocations: 1.031 kB / 0.5841 GB, free: 24.63 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.4339, allocations: 1.344 kB / 0.5841 GB, free: 24.63 MB / 446.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.0007547/0.4346, allocations: 493 kB / 0.5845 GB, free: 24.17 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.4347, allocations: 10.75 kB / 0.5845 GB, free: 24.17 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.265e-05/0.4347, allocations: 18.97 kB / 0.5846 GB, free: 24.16 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001658/0.4349, allocations: 215.5 kB / 0.5848 GB, free: 23.93 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.435, allocations: 40.31 kB / 0.5848 GB, free: 23.89 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.133e-05/0.4351, allocations: 13.94 kB / 0.5848 GB, free: 23.89 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003793/0.4355, allocations: 155.6 kB / 0.585 GB, free: 23.79 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.4355, allocations: 1.656 kB / 0.585 GB, free: 23.79 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.719e-05/0.4355, allocations: 5.5 kB / 0.585 GB, free: 23.79 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.4355, allocations: 4.312 kB / 0.585 GB, free: 23.79 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005458/0.4361, allocations: 144.2 kB / 0.5851 GB, free: 23.72 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006917/0.4368, allocations: 0.5305 MB / 0.5856 GB, free: 23.23 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004493/0.4372, allocations: 136.8 kB / 0.5858 GB, free: 23.15 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002189/0.4375, allocations: 86.27 kB / 0.5858 GB, free: 23.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.4375, allocations: 6.766 kB / 0.5858 GB, free: 23.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.347e-05/0.4375, allocations: 35.75 kB / 0.5859 GB, free: 23.05 MB / 446.1 MB Notification: Performance of pre-optimization done (n=12): time 1.283e-06/0.4375, allocations: 0.8125 kB / 0.5859 GB, free: 23.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007738/0.4383, allocations: 221.1 kB / 0.5861 GB, free: 22.94 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.004e-05/0.4383, allocations: 52.84 kB / 0.5861 GB, free: 22.88 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.973e-05/0.4384, allocations: 151.4 kB / 0.5863 GB, free: 22.75 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.4384, allocations: 28.77 kB / 0.5863 GB, free: 22.72 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.984e-05/0.4385, allocations: 131.5 kB / 0.5864 GB, free: 22.59 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.802e-05/0.4385, allocations: 40.92 kB / 0.5865 GB, free: 22.56 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.22e-05/0.4386, allocations: 34.42 kB / 0.5865 GB, free: 22.53 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.719e-05/0.4387, allocations: 325.3 kB / 0.5868 GB, free: 22.21 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002387/0.4389, allocations: 60.52 kB / 0.5869 GB, free: 22.18 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002104/0.4391, allocations: 92.8 kB / 0.587 GB, free: 22.12 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003963/0.4395, allocations: 136.4 kB / 0.5871 GB, free: 22.04 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.123e-06/0.4395, allocations: 3.938 kB / 0.5871 GB, free: 22.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005069/0.44, allocations: 193 kB / 0.5873 GB, free: 21.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.4401, allocations: 7.531 kB / 0.5873 GB, free: 21.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.4401, allocations: 2.594 kB / 0.5873 GB, free: 21.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.4401, allocations: 1.438 kB / 0.5873 GB, free: 21.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001878/0.4403, allocations: 40.62 kB / 0.5873 GB, free: 21.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.4403, allocations: 2.438 kB / 0.5873 GB, free: 21.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001349/0.4404, allocations: 23.84 kB / 0.5874 GB, free: 21.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/0.4405, allocations: 4.438 kB / 0.5874 GB, free: 21.91 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 7.561e-05/0.4405, allocations: 127 kB / 0.5875 GB, free: 21.79 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.498e-05/0.4406, allocations: 18.53 kB / 0.5875 GB, free: 21.77 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.765e-05/0.4406, allocations: 20.09 kB / 0.5875 GB, free: 21.75 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.4406, allocations: 1.25 kB / 0.5875 GB, free: 21.75 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.4406, allocations: 5.266 kB / 0.5875 GB, free: 21.75 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.4407, allocations: 0 / 0.5875 GB, free: 21.75 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002428/0.4409, allocations: 247.5 kB / 0.5878 GB, free: 21.49 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.4409, allocations: 1.281 kB / 0.5878 GB, free: 21.49 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001838/0.4411, allocations: 35.22 kB / 0.5878 GB, free: 21.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.4411, allocations: 1.312 kB / 0.5878 GB, free: 21.48 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.4411, allocations: 5.375 kB / 0.5878 GB, free: 21.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.4411, allocations: 0 / 0.5878 GB, free: 21.48 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4411, allocations: 1.438 kB / 0.5878 GB, free: 21.48 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006834/0.4418, allocations: 347 kB / 0.5881 GB, free: 21.25 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.346e-05/0.4419, allocations: 88.81 kB / 0.5882 GB, free: 21.14 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.545e-05/0.4419, allocations: 5.281 kB / 0.5882 GB, free: 21.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001586/0.4421, allocations: 15.02 kB / 0.5882 GB, free: 21.14 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.4422, allocations: 17.66 kB / 0.5883 GB, free: 21.12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.568e-06/0.4422, allocations: 3.5 kB / 0.5883 GB, free: 21.12 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.749e-05/0.4423, allocations: 115.3 kB / 0.5884 GB, free: 21.03 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4423, allocations: 1.312 kB / 0.5884 GB, free: 21.03 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002643/0.4426, allocations: 40.5 kB / 0.5884 GB, free: 21.02 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 9.383e-05/0.4427, allocations: 100.7 kB / 0.5885 GB, free: 20.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000575/0.4432, allocations: 149.5 kB / 0.5886 GB, free: 20.87 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4433, allocations: 1.094 kB / 0.5887 GB, free: 20.87 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002127/0.4435, allocations: 75.81 kB / 0.5887 GB, free: 20.84 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003718/0.4439, allocations: 23.97 kB / 0.5887 GB, free: 20.82 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007098/0.4446, allocations: 416.4 kB / 0.5891 GB, free: 20.54 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001432/0.4447, allocations: 0.715 MB / 0.5898 GB, free: 19.83 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.544e-05/0.4448, allocations: 20.06 kB / 0.5899 GB, free: 19.82 MB / 446.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4448, allocations: 1.188 kB / 0.5899 GB, free: 19.82 MB / 446.1 MB Notification: Performance of Templates: time 0.003385/0.4482, allocations: 1.808 MB / 0.5916 GB, free: 18.73 MB / 446.1 MB make -j1 -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.makefile (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 & ./IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)