Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Annex60.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis") translateModel(Annex60.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009877/0.0009874, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.01164/0.01164, allocations: 169 kB / 16.26 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.599/1.599, allocations: 205.4 MB / 222.5 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4319/0.4319, allocations: 55.01 MB / 325.8 MB, free: 0.5547 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000597/0.0005971, allocations: 12 kB / 397.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4452/0.4458, allocations: 60.72 MB / 458 MB, free: 38.38 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Controls.Continuous.Examples.PIDHysteresis): time 0.004009/0.4499, allocations: 2.618 MB / 460.6 MB, free: 38.22 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002372/0.4523, allocations: 0.9596 MB / 461.5 MB, free: 38.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003136/0.4526, allocations: 10.41 kB / 461.6 MB, free: 38.11 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002569/0.4529, allocations: 47.11 kB / 461.6 MB, free: 38.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002285/0.4531, allocations: 73.81 kB / 461.7 MB, free: 38.06 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006619/0.4538, allocations: 221.7 kB / 461.9 MB, free: 38.05 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004737/0.4543, allocations: 468 kB / 462.4 MB, free: 37.97 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004164/0.4547, allocations: 202.4 kB / 462.5 MB, free: 37.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000193/0.4549, allocations: 134 kB / 462.7 MB, free: 37.9 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001765/0.4551, allocations: 141.5 kB / 462.8 MB, free: 37.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.863e-05/0.4551, allocations: 12.31 kB / 462.8 MB, free: 37.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.266e-05/0.4552, allocations: 11.62 kB / 462.8 MB, free: 37.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.777e-05/0.4552, allocations: 54.5 kB / 462.9 MB, free: 37.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001475/0.4554, allocations: 186.6 kB / 463.1 MB, free: 37.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003606/0.4558, allocations: 455.2 kB / 463.5 MB, free: 37.65 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.4558, allocations: 0 / 463.5 MB, free: 37.65 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4558, allocations: 0.6562 kB / 463.5 MB, free: 37.65 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.4558, allocations: 0 / 463.5 MB, free: 37.65 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0009299/0.4567, allocations: 0.6548 MB / 464.2 MB, free: 37.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.4568, allocations: 8.719 kB / 464.2 MB, free: 37.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.191e-05/0.4569, allocations: 48.53 kB / 464.2 MB, free: 37.13 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004882/0.4574, allocations: 399.7 kB / 464.6 MB, free: 36.88 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.767e-05/0.4574, allocations: 23.91 kB / 464.6 MB, free: 36.88 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.858e-05/0.4575, allocations: 37.16 kB / 464.7 MB, free: 36.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000564/0.458, allocations: 348 kB / 465 MB, free: 36.78 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.4581, allocations: 0 / 465 MB, free: 36.78 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.278e-05/0.4581, allocations: 10.19 kB / 465 MB, free: 36.78 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.4581, allocations: 8.531 kB / 465 MB, free: 36.78 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000445/0.4586, allocations: 225.1 kB / 465.3 MB, free: 36.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001651/0.4602, allocations: 1.203 MB / 466.5 MB, free: 36.1 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005236/0.4608, allocations: 240 kB / 466.7 MB, free: 35.99 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001958/0.461, allocations: 115.8 kB / 466.8 MB, free: 35.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.664e-05/0.461, allocations: 11 kB / 466.8 MB, free: 35.94 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.074e-05/0.4611, allocations: 41.38 kB / 466.9 MB, free: 35.89 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 1.483e-06/0.4611, allocations: 0.6562 kB / 466.9 MB, free: 35.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006194/0.4617, allocations: 294.1 kB / 467.1 MB, free: 35.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.439e-05/0.4618, allocations: 110.4 kB / 467.3 MB, free: 35.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000315/0.4621, allocations: 340.4 kB / 467.6 MB, free: 35.46 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.249e-05/0.4621, allocations: 36.61 kB / 467.6 MB, free: 35.42 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.4622, allocations: 222.2 kB / 467.8 MB, free: 35.24 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.88e-05/0.4623, allocations: 76.38 kB / 467.9 MB, free: 35.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-05/0.4623, allocations: 31.84 kB / 467.9 MB, free: 35.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.544e-05/0.4624, allocations: 343.4 kB / 468.3 MB, free: 34.83 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001657/0.4626, allocations: 86.19 kB / 468.4 MB, free: 34.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001852/0.4628, allocations: 141 kB / 468.5 MB, free: 34.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003428/0.4632, allocations: 223.9 kB / 468.7 MB, free: 34.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.4632, allocations: 0 / 468.7 MB, free: 34.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004308/0.4636, allocations: 289 kB / 469 MB, free: 34.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.395e-05/0.4637, allocations: 134.7 kB / 469.1 MB, free: 34.28 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.4637, allocations: 0.6875 kB / 469.1 MB, free: 34.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.887e-05/0.4637, allocations: 3.094 kB / 469.1 MB, free: 34.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002062/0.4639, allocations: 58.67 kB / 469.2 MB, free: 34.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.4639, allocations: 4.531 kB / 469.2 MB, free: 34.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001754/0.4641, allocations: 52.48 kB / 469.3 MB, free: 34.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.734e-05/0.4641, allocations: 7.25 kB / 469.3 MB, free: 34.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.31e-06/0.4642, allocations: 2.531 kB / 469.3 MB, free: 34.25 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003089/0.4645, allocations: 220.4 kB / 469.5 MB, free: 34.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.904e-06/0.4645, allocations: 0 / 469.5 MB, free: 34.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.976e-06/0.4645, allocations: 3.062 kB / 469.5 MB, free: 34.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001712/0.4647, allocations: 50.44 kB / 469.5 MB, free: 34.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.008e-06/0.4647, allocations: 5.375 kB / 469.5 MB, free: 34.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001461/0.4648, allocations: 35.33 kB / 469.6 MB, free: 34.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.35e-05/0.4648, allocations: 9.094 kB / 469.6 MB, free: 34.14 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 (con.hys.y,$PRE.con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.0001529/0.465, allocations: 246.7 kB / 469.8 MB, free: 33.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.424e-05/0.4651, allocations: 36.59 kB / 469.9 MB, free: 33.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.44e-05/0.4652, allocations: 40.67 kB / 469.9 MB, free: 33.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.4652, allocations: 2.688 kB / 469.9 MB, free: 33.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.4652, allocations: 0.9375 kB / 469.9 MB, free: 33.86 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.4652, allocations: 0 / 469.9 MB, free: 33.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003557/0.4655, allocations: 406.5 kB / 470.3 MB, free: 33.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.4656, allocations: 0 / 470.3 MB, free: 33.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001996/0.4658, allocations: 46.95 kB / 470.3 MB, free: 33.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.4658, allocations: 2.969 kB / 470.3 MB, free: 33.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.4658, allocations: 4.938 kB / 470.4 MB, free: 33.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.4658, allocations: 0 / 470.4 MB, free: 33.56 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4658, allocations: 2.844 kB / 470.4 MB, free: 33.56 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005988/0.4664, allocations: 429.2 kB / 470.8 MB, free: 33.31 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.002e-05/0.4665, allocations: 134.9 kB / 470.9 MB, free: 33.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.911e-05/0.4666, allocations: 7.625 kB / 470.9 MB, free: 33.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000175/0.4667, allocations: 19.34 kB / 470.9 MB, free: 33.17 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.627e-05/0.4668, allocations: 20.06 kB / 471 MB, free: 33.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.4668, allocations: 10.41 kB / 471 MB, free: 33.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001993/0.467, allocations: 242.9 kB / 471.2 MB, free: 33.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.467, allocations: 0 / 471.2 MB, free: 33.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004201/0.4675, allocations: 124.9 kB / 471.3 MB, free: 33 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * 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.0001076/0.4676, allocations: 102.7 kB / 471.4 MB, free: 32.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005669/0.4682, allocations: 321.3 kB / 471.7 MB, free: 32.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4682, allocations: 0 / 471.7 MB, free: 32.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001739/0.4684, allocations: 102.7 kB / 471.8 MB, free: 32.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006028/0.469, allocations: 84.58 kB / 471.9 MB, free: 32.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.4701, allocations: 0.889 MB / 472.8 MB, free: 32.17 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.4704, allocations: 0.7988 MB / 473.6 MB, free: 31.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001647/0.4705, allocations: 40.36 kB / 473.6 MB, free: 31.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.489e-05/0.4706, allocations: 28.42 kB / 473.7 MB, free: 31.45 MB / 382.1 MB Notification: Performance of SimCode: time 3.8e-07/0.4706, allocations: 0 / 473.7 MB, free: 31.45 MB / 382.1 MB Notification: Performance of Templates: time 0.007123/0.4777, allocations: 3.194 MB / 476.9 MB, free: 31.25 MB / 382.1 MB make -j1 -f Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis.makefile Environment - environmentSimulation: (rm -f Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis.sim & ./Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1) Environment - environmentSimulation: