Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.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.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset") translateModel(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 109.2 kB / 16.27 MB, free: 6.355 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.001289/0.001289, allocations: 194.5 kB / 17.2 MB, free: 5.953 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.4/1.4, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8329/0.8329, allocations: 132.2 MB / 423.2 MB, free: 6.652 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 67.89 kB / 0.5024 GB, free: 11.69 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4463/0.4477, allocations: 80.19 MB / 0.5807 GB, free: 27.2 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.005349/0.4531, allocations: 4.095 MB / 0.5847 GB, free: 23.98 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002675/0.4558, allocations: 1.322 MB / 0.586 GB, free: 22.88 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005385/0.4563, allocations: 25.66 kB / 0.586 GB, free: 22.88 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000335/0.4567, allocations: 128 kB / 0.5862 GB, free: 22.76 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003648/0.4571, allocations: 183.2 kB / 0.5863 GB, free: 22.6 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008533/0.458, allocations: 417.7 kB / 0.5867 GB, free: 22.27 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008484/0.4588, allocations: 0.9589 MB / 0.5877 GB, free: 21.66 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006938/0.4595, allocations: 456.4 kB / 0.5881 GB, free: 21.39 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003483/0.4599, allocations: 336.8 kB / 0.5884 GB, free: 21.17 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003066/0.4602, allocations: 337 kB / 0.5888 GB, free: 20.92 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001354/0.4604, allocations: 91.56 kB / 0.5888 GB, free: 20.92 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001439/0.4605, allocations: 90.97 kB / 0.5889 GB, free: 20.92 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002005/0.4607, allocations: 178.5 kB / 0.5891 GB, free: 20.76 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002878/0.461, allocations: 389.6 kB / 0.5895 GB, free: 20.47 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007991/0.4618, allocations: 1.03 MB / 0.5905 GB, free: 19.65 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.722e-06/0.4618, allocations: 9.047 kB / 0.5905 GB, free: 19.64 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4618, allocations: 0 / 0.5905 GB, free: 19.64 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.4619, allocations: 3.938 kB / 0.5905 GB, free: 19.64 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001884/0.4637, allocations: 1.069 MB / 0.5915 GB, free: 18.79 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.4638, allocations: 12.48 kB / 0.5915 GB, free: 18.78 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001515/0.464, allocations: 83.56 kB / 0.5916 GB, free: 18.74 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008126/0.4648, allocations: 0.5532 MB / 0.5922 GB, free: 18.25 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.217e-05/0.4648, allocations: 45.34 kB / 0.5922 GB, free: 18.23 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.397e-05/0.4649, allocations: 59.09 kB / 0.5923 GB, free: 18.21 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009421/0.4659, allocations: 0.6089 MB / 0.5929 GB, free: 17.64 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.274e-05/0.4659, allocations: 7.938 kB / 0.5929 GB, free: 17.63 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.868e-05/0.466, allocations: 24 kB / 0.5929 GB, free: 17.61 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.466, allocations: 17.03 kB / 0.5929 GB, free: 17.59 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008902/0.4669, allocations: 457.9 kB / 0.5933 GB, free: 17.15 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002446/0.4693, allocations: 2.014 MB / 0.5953 GB, free: 15.07 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008208/0.4702, allocations: 450.6 kB / 0.5957 GB, free: 14.63 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004237/0.4706, allocations: 235.2 kB / 0.596 GB, free: 14.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.879e-05/0.4707, allocations: 8.438 kB / 0.596 GB, free: 14.39 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005231/0.4712, allocations: 264.9 kB / 0.5962 GB, free: 14.12 MB / 446.1 MB Notification: Performance of pre-optimization done (n=49): time 2.405e-06/0.4712, allocations: 0 / 0.5962 GB, free: 14.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=49): time 0.001233/0.4724, allocations: 0.5811 MB / 0.5968 GB, free: 13.54 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.617e-05/0.4725, allocations: 60.39 kB / 0.5968 GB, free: 13.47 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003837/0.4729, allocations: 447.9 kB / 0.5973 GB, free: 13.02 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.024e-05/0.4729, allocations: 33.7 kB / 0.5973 GB, free: 12.98 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000194/0.4731, allocations: 325 kB / 0.5976 GB, free: 12.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.042e-05/0.4732, allocations: 161.7 kB / 0.5978 GB, free: 12.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.4734, allocations: 103.3 kB / 0.5979 GB, free: 12.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.4735, allocations: 362.8 kB / 0.5982 GB, free: 12.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003469/0.4738, allocations: 166.3 kB / 0.5984 GB, free: 11.87 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003648/0.4742, allocations: 253 kB / 0.5986 GB, free: 11.61 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007231/0.4749, allocations: 453.2 kB / 0.599 GB, free: 11.13 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.475, allocations: 0 / 0.599 GB, free: 11.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009472/0.4759, allocations: 0.5612 MB / 0.5996 GB, free: 10.56 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.211e-05/0.476, allocations: 41.67 kB / 0.5996 GB, free: 10.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.476, allocations: 11.88 kB / 0.5996 GB, free: 10.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.117e-05/0.476, allocations: 4 kB / 0.5996 GB, free: 10.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004682/0.4765, allocations: 114 kB / 0.5998 GB, free: 10.39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.4765, allocations: 4 kB / 0.5998 GB, free: 10.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003289/0.4768, allocations: 59.5 kB / 0.5998 GB, free: 10.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.744e-05/0.4769, allocations: 16 kB / 0.5998 GB, free: 10.32 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * 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.0002258/0.4771, allocations: 211.4 kB / 0.6 GB, free: 10.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001211/0.4772, allocations: 55.28 kB / 0.6001 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001125/0.4773, allocations: 66.58 kB / 0.6002 GB, free: 9.984 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.4774, allocations: 8 kB / 0.6002 GB, free: 9.977 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.4774, allocations: 2.5 kB / 0.6002 GB, free: 9.977 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.4774, allocations: 3.984 kB / 0.6002 GB, free: 9.973 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001444/0.4788, allocations: 1.174 MB / 0.6013 GB, free: 8.738 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.4789, allocations: 4.516 kB / 0.6013 GB, free: 8.734 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004494/0.4793, allocations: 93.48 kB / 0.6014 GB, free: 8.645 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.4793, allocations: 4 kB / 0.6014 GB, free: 8.641 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.106e-05/0.4794, allocations: 11.98 kB / 0.6014 GB, free: 8.629 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.327e-06/0.4794, allocations: 4 kB / 0.6014 GB, free: 8.625 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.4794, allocations: 2.312 kB / 0.6014 GB, free: 8.625 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.4805, allocations: 0.762 MB / 0.6022 GB, free: 7.848 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000135/0.4807, allocations: 172.3 kB / 0.6023 GB, free: 7.66 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.461e-05/0.4808, allocations: 8 kB / 0.6023 GB, free: 7.652 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002835/0.481, allocations: 28.59 kB / 0.6024 GB, free: 7.625 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.35e-05/0.4812, allocations: 33.92 kB / 0.6024 GB, free: 7.594 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.983e-05/0.4812, allocations: 12 kB / 0.6024 GB, free: 7.582 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002607/0.4815, allocations: 310.9 kB / 0.6027 GB, free: 7.281 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4815, allocations: 1 kB / 0.6027 GB, free: 7.281 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004237/0.4819, allocations: 143.5 kB / 0.6028 GB, free: 7.141 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001158/0.4821, allocations: 108.8 kB / 0.603 GB, free: 7.027 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001045/0.4831, allocations: 0.4918 MB / 0.6034 GB, free: 6.523 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4831, allocations: 0 / 0.6034 GB, free: 6.523 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003712/0.4835, allocations: 215.5 kB / 0.6036 GB, free: 6.316 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008098/0.4843, allocations: 153.2 kB / 0.6038 GB, free: 6.176 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002437/0.4868, allocations: 1.394 MB / 0.6051 GB, free: 4.766 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.4871, allocations: 0.8974 MB / 0.606 GB, free: 3.84 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001452/0.4873, allocations: 39.44 kB / 0.6061 GB, free: 3.805 MB / 446.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4873, allocations: 0 / 0.6061 GB, free: 3.805 MB / 446.1 MB Notification: Performance of Templates: time 0.01019/0.4975, allocations: 7.609 MB / 0.6135 GB, free: 12.24 MB / 462.1 MB make -j1 -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.sim & ./IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)