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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009573/0.0009573, allocations: 172.5 kB / 7.646 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.763/0.763, allocations: 133.6 MB / 141.6 MB, free: 2.863 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.542/1.542, allocations: 221.5 MB / 395.5 MB, free: 10.78 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009711/0.0009712, allocations: 100.6 kB / 478.2 MB, free: 1.305 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.104e-05/2.106e-05, allocations: 4 kB / 0.5535 GB, free: 8.969 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4699/0.4699, allocations: 82.31 MB / 0.6339 GB, free: 40.76 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1628/0.6328, allocations: 117.2 MB / 0.7484 GB, free: 5.457 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002074/0.6331, allocations: 79.95 kB / 0.7484 GB, free: 5.379 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.03156/0.6646, allocations: 12.25 MB / 0.7604 GB, free: 9.102 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.563e-06/0.6647, allocations: 0 / 0.7604 GB, free: 9.102 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 4.113e-05/0.6647, allocations: 16 kB / 0.7604 GB, free: 9.086 MB / 0.5417 GB 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.00146/0.6662, allocations: 0.8763 MB / 0.7613 GB, free: 8.16 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.6663, allocations: 8.031 kB / 0.7613 GB, free: 8.152 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001409/0.6664, allocations: 90.95 kB / 0.7614 GB, free: 8.062 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007796/0.6672, allocations: 0.5272 MB / 0.7619 GB, free: 7.488 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.938e-05/0.6672, allocations: 20 kB / 0.7619 GB, free: 7.469 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.864e-05/0.6673, allocations: 36 kB / 0.7619 GB, free: 7.434 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007502/0.6681, allocations: 394.6 kB / 0.7623 GB, free: 7.051 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008764/0.669, allocations: 0.5169 MB / 0.7628 GB, free: 6.504 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/0.669, allocations: 7.906 kB / 0.7628 GB, free: 6.496 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.566e-05/0.6691, allocations: 3.953 kB / 0.7628 GB, free: 6.492 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/0.6691, allocations: 16 kB / 0.7629 GB, free: 6.477 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002957/0.6721, allocations: 1.98 MB / 0.7648 GB, free: 4.441 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006806/0.6728, allocations: 403.5 kB / 0.7652 GB, free: 4.039 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003172/0.6731, allocations: 214.5 kB / 0.7654 GB, free: 3.824 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 4.118e-05/0.6731, allocations: 4.438 kB / 0.7654 GB, free: 3.82 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004174/0.6736, allocations: 240.5 kB / 0.7656 GB, free: 3.574 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=50): time 2.445e-06/0.6736, allocations: 0 / 0.7656 GB, free: 3.574 MB / 0.5417 GB Notification: Performance of matching and sorting (n=50): time 0.0006906/0.6743, allocations: 400.1 kB / 0.766 GB, free: 3.176 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.075e-05/0.6744, allocations: 158.7 kB / 0.7661 GB, free: 2.984 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004054/0.6748, allocations: 349.2 kB / 0.7665 GB, free: 2.637 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.351e-05/0.6748, allocations: 29.7 kB / 0.7665 GB, free: 2.602 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002354/0.6751, allocations: 320.3 kB / 0.7668 GB, free: 2.285 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/0.6752, allocations: 173.5 kB / 0.767 GB, free: 2.113 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.182e-05/0.6752, allocations: 0 / 0.767 GB, free: 2.113 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001664/0.6754, allocations: 362.8 kB / 0.7673 GB, free: 1.75 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002439/0.6757, allocations: 145.1 kB / 0.7675 GB, free: 1.609 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003235/0.676, allocations: 246.5 kB / 0.7677 GB, free: 1.332 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002656/0.6763, allocations: 166.1 kB / 0.7679 GB, free: 1.172 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.6763, allocations: 0 / 0.7679 GB, free: 1.172 MB / 0.5417 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0007342/0.677, allocations: 474.4 kB / 0.7683 GB, free: 0.7031 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 5.969e-05/0.6771, allocations: 41.58 kB / 0.7683 GB, free: 0.6562 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.6771, allocations: 4 kB / 0.7683 GB, free: 0.6523 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.6771, allocations: 4 kB / 0.7684 GB, free: 0.6484 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005075/0.6776, allocations: 115.9 kB / 0.7685 GB, free: 0.5352 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.6777, allocations: 7.938 kB / 0.7685 GB, free: 0.5273 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000416/0.6781, allocations: 71.7 kB / 0.7685 GB, free: 468 kB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.151e-05/0.6781, allocations: 20 kB / 0.7686 GB, free: 448 kB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.conPID.trigger,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000129/0.6783, allocations: 116.9 kB / 0.7687 GB, free: 324 kB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006175/0.6789, allocations: 399.6 kB / 0.769 GB, free: 15.91 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.435e-05/0.679, allocations: 63.28 kB / 0.7691 GB, free: 15.85 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001316/0.6791, allocations: 57.2 kB / 0.7692 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.6791, allocations: 4 kB / 0.7692 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.6791, allocations: 0 / 0.7692 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.549e-05/0.6792, allocations: 3.984 kB / 0.7692 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001468/0.6806, allocations: 1.108 MB / 0.7703 GB, free: 14.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.6806, allocations: 4 kB / 0.7703 GB, free: 14.64 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005265/0.6812, allocations: 103.9 kB / 0.7704 GB, free: 14.54 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.523e-06/0.6812, allocations: 4 kB / 0.7704 GB, free: 14.53 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.046e-05/0.6812, allocations: 3.984 kB / 0.7704 GB, free: 14.53 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.6812, allocations: 4 kB / 0.7704 GB, free: 14.52 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.6812, allocations: 0 / 0.7704 GB, free: 14.52 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000993/0.6822, allocations: 0.7173 MB / 0.7711 GB, free: 13.79 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002034/0.6825, allocations: 176.4 kB / 0.7712 GB, free: 13.59 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.469e-05/0.6825, allocations: 4 kB / 0.7712 GB, free: 13.59 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003702/0.6829, allocations: 43.95 kB / 0.7713 GB, free: 13.55 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.348e-05/0.683, allocations: 40.38 kB / 0.7713 GB, free: 13.51 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.619e-05/0.6831, allocations: 19.94 kB / 0.7713 GB, free: 13.49 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0002938/0.6834, allocations: 267 kB / 0.7716 GB, free: 13.23 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6834, allocations: 0 / 0.7716 GB, free: 13.23 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0004679/0.6838, allocations: 143.5 kB / 0.7717 GB, free: 13.09 MB / 0.5573 GB 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.conPID.trigger,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001327/0.6852, allocations: 1.269 MB / 0.773 GB, free: 11.79 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0006787/0.6859, allocations: 439.2 kB / 0.7734 GB, free: 11.35 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.6859, allocations: 0 / 0.7734 GB, free: 11.35 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002921/0.6862, allocations: 197.6 kB / 0.7736 GB, free: 11.16 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006966/0.6869, allocations: 128.3 kB / 0.7737 GB, free: 11.04 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003273/0.6902, allocations: 1.334 MB / 0.775 GB, free: 9.664 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000521/0.6907, allocations: 0.9018 MB / 0.7759 GB, free: 8.734 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0002991/0.691, allocations: 60.34 kB / 0.7759 GB, free: 8.672 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003137/0.6913, allocations: 231.4 kB / 0.7762 GB, free: 8.445 MB / 0.5573 GB Notification: Performance of SimCode: time 5.81e-07/0.6913, allocations: 0 / 0.7762 GB, free: 8.445 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03462/0.726, allocations: 10.34 MB / 0.7863 GB, free: 14.2 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000232/0.7262, allocations: 137.6 kB / 0.7864 GB, free: 14 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.204/2.931, allocations: 0 / 0.7864 GB, free: 14 MB / 0.573 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset.fmu > IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)