Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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: "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001051/0.001051, 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.008182/0.008182, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.344/1.344, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9903/0.9903, allocations: 135.3 MB / 426.7 MB, free: 14.35 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003182/0.0003183, allocations: 8 kB / 0.5077 GB, free: 4.656 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1613/0.1616, allocations: 82.3 MB / 0.5881 GB, free: 2.523 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.004305/0.166, allocations: 3.689 MB / 0.5917 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002539/0.1685, allocations: 1.266 MB / 0.5929 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006144/0.1692, allocations: 23.88 kB / 0.5929 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003719/0.1696, allocations: 95.2 kB / 0.593 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0005664/0.1702, allocations: 138.9 kB / 0.5932 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009369/0.1711, allocations: 386.2 kB / 0.5935 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001082/0.1722, allocations: 0.885 MB / 0.5944 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006738/0.1729, allocations: 418.1 kB / 0.5948 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003925/0.1733, allocations: 234.8 kB / 0.595 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003901/0.1737, allocations: 262.4 kB / 0.5953 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.545e-05/0.1738, allocations: 20 kB / 0.5953 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.98e-05/0.1739, allocations: 24 kB / 0.5953 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.559e-05/0.174, allocations: 99.48 kB / 0.5954 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003411/0.1743, allocations: 335.7 kB / 0.5957 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008047/0.1751, allocations: 0.9537 MB / 0.5966 GB, free: 9.668 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.1752, allocations: 0 / 0.5966 GB, free: 9.668 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.442e-06/0.1752, allocations: 4 kB / 0.5967 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.562e-05/0.1752, allocations: 0 / 0.5967 GB, free: 9.664 MB / 0.4981 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.001886/0.1771, allocations: 0.9446 MB / 0.5976 GB, free: 8.66 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.1772, allocations: 8.031 kB / 0.5976 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000183/0.1773, allocations: 102.7 kB / 0.5977 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001749/0.1775, allocations: 83.91 kB / 0.5978 GB, free: 8.461 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000866/0.1784, allocations: 0.5611 MB / 0.5983 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.297e-05/0.1785, allocations: 45.67 kB / 0.5984 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.645e-05/0.1786, allocations: 60.38 kB / 0.5984 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.1797, allocations: 0.6155 MB / 0.599 GB, free: 7.125 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.222e-05/0.1798, allocations: 0 / 0.599 GB, free: 7.125 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.033e-05/0.1798, allocations: 20 kB / 0.599 GB, free: 7.105 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.493e-05/0.1798, allocations: 16 kB / 0.599 GB, free: 7.09 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.1809, allocations: 477 kB / 0.5995 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002806/0.1837, allocations: 2.02 MB / 0.6015 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009078/0.1847, allocations: 459 kB / 0.6019 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004463/0.1851, allocations: 250.1 kB / 0.6021 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.593e-05/0.1852, allocations: 4.438 kB / 0.6022 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005641/0.1857, allocations: 265.3 kB / 0.6024 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 2.003e-06/0.1857, allocations: 0 / 0.6024 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001253/0.187, allocations: 0.6077 MB / 0.603 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.772e-05/0.1871, allocations: 55.84 kB / 0.6031 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004651/0.1875, allocations: 450 kB / 0.6035 GB, free: 2.422 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.814e-05/0.1876, allocations: 33.7 kB / 0.6035 GB, free: 2.383 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002428/0.1878, allocations: 324.3 kB / 0.6038 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/0.188, allocations: 161.7 kB / 0.604 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.665e-05/0.188, allocations: 53.69 kB / 0.604 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.1882, allocations: 370.8 kB / 0.6044 GB, free: 1.469 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003836/0.1886, allocations: 169 kB / 0.6045 GB, free: 1.305 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004308/0.189, allocations: 257.8 kB / 0.6048 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007974/0.1898, allocations: 468 kB / 0.6052 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.1898, allocations: 4 kB / 0.6052 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.2897/0.4795, allocations: 0.5683 MB / 0.6058 GB, free: 48.43 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.975e-05/0.4796, allocations: 37.56 kB / 0.6058 GB, free: 48.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.4796, allocations: 0.5625 kB / 0.6058 GB, free: 48.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.224e-05/0.4797, allocations: 6.25 kB / 0.6058 GB, free: 48.4 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006271/0.4803, allocations: 115 kB / 0.6059 GB, free: 48.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.665e-05/0.4803, allocations: 4.562 kB / 0.606 GB, free: 48.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004705/0.4808, allocations: 71.22 kB / 0.606 GB, free: 48.4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.601e-05/0.4809, allocations: 21.17 kB / 0.606 GB, free: 48.4 MB / 0.4981 GB 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.0003209/0.4812, allocations: 209.8 kB / 0.6062 GB, free: 48.29 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.742e-05/0.4813, allocations: 63.41 kB / 0.6063 GB, free: 48.29 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001461/0.4814, allocations: 64.11 kB / 0.6064 GB, free: 48.28 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/0.4814, allocations: 6.25 kB / 0.6064 GB, free: 48.28 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.4814, allocations: 0 / 0.6064 GB, free: 48.28 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.385e-06/0.4815, allocations: 4.016 kB / 0.6064 GB, free: 48.28 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001552/0.483, allocations: 1.187 MB / 0.6075 GB, free: 47.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.483, allocations: 3.625 kB / 0.6075 GB, free: 47.99 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004297/0.4835, allocations: 95.83 kB / 0.6076 GB, free: 47.99 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.4835, allocations: 5.891 kB / 0.6076 GB, free: 47.99 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.799e-05/0.4835, allocations: 9.375 kB / 0.6076 GB, free: 47.99 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.4835, allocations: 2.781 kB / 0.6076 GB, free: 47.99 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.4835, allocations: 0.5625 kB / 0.6076 GB, free: 47.99 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001155/0.4847, allocations: 0.7807 MB / 0.6084 GB, free: 47.84 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001385/0.4848, allocations: 172.6 kB / 0.6086 GB, free: 47.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.516e-05/0.4849, allocations: 9.938 kB / 0.6086 GB, free: 47.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002941/0.4852, allocations: 32.55 kB / 0.6086 GB, free: 47.75 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.332e-05/0.4853, allocations: 47.36 kB / 0.6087 GB, free: 47.75 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.409e-05/0.4853, allocations: 13.25 kB / 0.6087 GB, free: 47.75 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002877/0.4856, allocations: 309.2 kB / 0.609 GB, free: 47.66 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4856, allocations: 0 / 0.609 GB, free: 47.66 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004173/0.486, allocations: 142.1 kB / 0.6091 GB, free: 47.65 MB / 0.4981 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.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.001407/0.4875, allocations: 1.334 MB / 0.6104 GB, free: 46.95 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009257/0.4884, allocations: 494.1 kB / 0.6109 GB, free: 46.89 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.4884, allocations: 0 / 0.6109 GB, free: 46.89 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004071/0.4888, allocations: 223.6 kB / 0.6111 GB, free: 46.88 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008386/0.4897, allocations: 146.4 kB / 0.6112 GB, free: 46.88 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007743/0.4974, allocations: 5.236 MB / 0.6163 GB, free: 44.43 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003504/0.4978, allocations: 0.8902 MB / 0.6172 GB, free: 43.73 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003252/0.4982, allocations: 57.56 kB / 0.6173 GB, free: 43.72 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002773/0.4984, allocations: 221.1 kB / 0.6175 GB, free: 43.55 MB / 0.4981 GB Notification: Performance of SimCode: time 1.903e-06/0.4984, allocations: 4 kB / 0.6175 GB, free: 43.55 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.321/1.819, allocations: 10.51 MB / 0.6277 GB, free: 42.88 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000195/1.819, allocations: 200.4 kB / 0.6279 GB, free: 42.62 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.022/3.841, allocations: 0 / 0.6279 GB, free: 42.62 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset.fmu > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)