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: translateModel(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling") translateModel(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 90.52 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.01031/0.01031, allocations: 171.6 kB / 16.26 MB, free: 6.613 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.465/1.465, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8212/0.8212, allocations: 132.3 MB / 423.8 MB, free: 1.969 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003783/0.0003784, allocations: 8 kB / 0.504 GB, free: 3.934 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.566/0.5664, allocations: 81.59 MB / 0.5837 GB, free: 4.059 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.002861/0.5693, allocations: 1.74 MB / 0.5854 GB, free: 2.801 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008785/0.5702, allocations: 0.5119 MB / 0.5859 GB, free: 2.434 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.708e-05/0.5704, allocations: 7.156 kB / 0.5859 GB, free: 2.43 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001228/0.5705, allocations: 18.23 kB / 0.5859 GB, free: 2.418 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001129/0.5706, allocations: 39.08 kB / 0.5859 GB, free: 2.391 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000225/0.5708, allocations: 43.38 kB / 0.586 GB, free: 2.367 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002409/0.5711, allocations: 173.4 kB / 0.5861 GB, free: 2.285 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001808/0.5713, allocations: 57.73 kB / 0.5862 GB, free: 2.254 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.5714, allocations: 67.14 kB / 0.5863 GB, free: 2.223 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001389/0.5716, allocations: 72.41 kB / 0.5863 GB, free: 2.188 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.558e-05/0.5716, allocations: 7.469 kB / 0.5863 GB, free: 2.188 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.887e-05/0.5716, allocations: 5.75 kB / 0.5863 GB, free: 2.188 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 4.039e-05/0.5717, allocations: 26.86 kB / 0.5864 GB, free: 2.172 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 9.288e-05/0.5718, allocations: 97.97 kB / 0.5865 GB, free: 2.098 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002251/0.572, allocations: 157.3 kB / 0.5866 GB, free: 2.047 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.572, allocations: 0 / 0.5866 GB, free: 2.047 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.572, allocations: 0 / 0.5866 GB, free: 2.047 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.5721, allocations: 0.75 kB / 0.5866 GB, free: 2.047 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.0007653/0.5728, allocations: 480.7 kB / 0.5871 GB, free: 1.633 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.5729, allocations: 9.438 kB / 0.5871 GB, free: 1.633 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.441e-05/0.5729, allocations: 26.03 kB / 0.5871 GB, free: 1.617 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002015/0.5732, allocations: 214.5 kB / 0.5873 GB, free: 1.391 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.546e-05/0.5732, allocations: 46.5 kB / 0.5873 GB, free: 1.348 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.844e-05/0.5733, allocations: 12.81 kB / 0.5874 GB, free: 1.344 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004665/0.5738, allocations: 168.8 kB / 0.5875 GB, free: 1.273 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.5738, allocations: 0.7031 kB / 0.5875 GB, free: 1.273 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.823e-05/0.5738, allocations: 5.438 kB / 0.5875 GB, free: 1.27 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.5738, allocations: 3.469 kB / 0.5875 GB, free: 1.27 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005635/0.5744, allocations: 170.8 kB / 0.5877 GB, free: 1.234 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008322/0.5752, allocations: 0.5397 MB / 0.5882 GB, free: 0.8008 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00048/0.5757, allocations: 143.3 kB / 0.5884 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002684/0.576, allocations: 90.14 kB / 0.5884 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.168e-05/0.576, allocations: 5.781 kB / 0.5884 GB, free: 0.7148 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.94e-05/0.5761, allocations: 44 kB / 0.5885 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of pre-optimization done (n=12): time 1.232e-06/0.5761, allocations: 0 / 0.5885 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008582/0.5769, allocations: 252.7 kB / 0.5887 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.711e-05/0.577, allocations: 57.44 kB / 0.5888 GB, free: 0.5234 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.5771, allocations: 155 kB / 0.5889 GB, free: 412 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.5771, allocations: 26.58 kB / 0.589 GB, free: 380 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.496e-05/0.5772, allocations: 133.9 kB / 0.5891 GB, free: 252 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.557e-05/0.5772, allocations: 41.02 kB / 0.5891 GB, free: 220 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.136e-05/0.5773, allocations: 19.59 kB / 0.5891 GB, free: 200 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.5774, allocations: 326 kB / 0.5895 GB, free: 15.88 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002437/0.5776, allocations: 77.09 kB / 0.5895 GB, free: 15.86 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002748/0.5779, allocations: 109.5 kB / 0.5896 GB, free: 15.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004764/0.5784, allocations: 159.5 kB / 0.5898 GB, free: 15.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.5784, allocations: 3.938 kB / 0.5898 GB, free: 15.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006092/0.579, allocations: 216.9 kB / 0.59 GB, free: 15.67 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.5791, allocations: 5.906 kB / 0.59 GB, free: 15.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/0.5791, allocations: 0 / 0.59 GB, free: 15.67 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.5791, allocations: 2.75 kB / 0.59 GB, free: 15.67 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002153/0.5793, allocations: 49.34 kB / 0.5901 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.5793, allocations: 1.875 kB / 0.5901 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001791/0.5795, allocations: 44.3 kB / 0.5901 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.12e-05/0.5795, allocations: 2.75 kB / 0.5901 GB, free: 15.64 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 0.0001363/0.5797, allocations: 125.5 kB / 0.5902 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.798e-05/0.5798, allocations: 14.59 kB / 0.5902 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.44e-05/0.5798, allocations: 16.44 kB / 0.5902 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.5798, allocations: 7.469 kB / 0.5903 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.5799, allocations: 0 / 0.5903 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.5799, allocations: 4.453 kB / 0.5903 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003109/0.5802, allocations: 243.1 kB / 0.5905 GB, free: 15.26 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.5802, allocations: 0 / 0.5905 GB, free: 15.26 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002318/0.5804, allocations: 39.2 kB / 0.5905 GB, free: 15.26 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.5804, allocations: 0.7812 kB / 0.5905 GB, free: 15.26 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.5805, allocations: 5.234 kB / 0.5905 GB, free: 15.26 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.5805, allocations: 1.266 kB / 0.5905 GB, free: 15.26 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.5805, allocations: 0.875 kB / 0.5905 GB, free: 15.26 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009014/0.5814, allocations: 387.9 kB / 0.5909 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.636e-05/0.5815, allocations: 89.56 kB / 0.591 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.429e-05/0.5815, allocations: 1.875 kB / 0.591 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001892/0.5817, allocations: 29.05 kB / 0.591 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.302e-05/0.5818, allocations: 19.8 kB / 0.591 GB, free: 14.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.5818, allocations: 3.594 kB / 0.591 GB, free: 14.94 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001066/0.5819, allocations: 116.9 kB / 0.5912 GB, free: 14.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5819, allocations: 0 / 0.5912 GB, free: 14.86 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002861/0.5822, allocations: 40.28 kB / 0.5912 GB, free: 14.84 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.0001214/0.5823, allocations: 95.02 kB / 0.5913 GB, free: 14.76 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000598/0.5829, allocations: 177.7 kB / 0.5915 GB, free: 14.71 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.5829, allocations: 1.25 kB / 0.5915 GB, free: 14.71 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002751/0.5832, allocations: 84.77 kB / 0.5915 GB, free: 14.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003759/0.5836, allocations: 30.5 kB / 0.5916 GB, free: 14.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.5846, allocations: 489.1 kB / 0.592 GB, free: 14.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003737/0.585, allocations: 0.7155 MB / 0.5927 GB, free: 13.66 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.995e-05/0.5851, allocations: 11.66 kB / 0.5927 GB, free: 13.66 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.979e-05/0.5852, allocations: 13.86 kB / 0.5928 GB, free: 13.65 MB / 446.1 MB Notification: Performance of SimCode: time 3.3e-07/0.5852, allocations: 1.375 kB / 0.5928 GB, free: 13.65 MB / 446.1 MB Notification: Performance of Templates: time 0.005387/0.5906, allocations: 1.34 MB / 0.5941 GB, free: 13.54 MB / 446.1 MB make -j1 -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.makefile (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 & ./IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)