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.001224/0.001224, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001288/0.001288, allocations: 188.8 kB / 16.13 MB, free: 6.656 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.277/1.277, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9052/0.9052, allocations: 135.1 MB / 425.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 68.36 kB / 0.5048 GB, free: 5.66 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1491/0.1502, allocations: 80.92 MB / 0.5838 GB, free: 4.906 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.005007/0.1553, allocations: 4.105 MB / 0.5878 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002318/0.1576, allocations: 1.286 MB / 0.5891 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003373/0.158, allocations: 23.88 kB / 0.5891 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003054/0.1583, allocations: 91.22 kB / 0.5892 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002927/0.1586, allocations: 150.8 kB / 0.5893 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007251/0.1594, allocations: 381.5 kB / 0.5897 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0006827/0.1601, allocations: 0.8774 MB / 0.5905 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000514/0.1606, allocations: 438 kB / 0.591 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002527/0.1609, allocations: 278.7 kB / 0.5912 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002583/0.1611, allocations: 306.4 kB / 0.5915 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.221e-05/0.1612, allocations: 40 kB / 0.5916 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.085e-05/0.1613, allocations: 40 kB / 0.5916 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000102/0.1614, allocations: 127.4 kB / 0.5917 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002569/0.1617, allocations: 342.1 kB / 0.592 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006725/0.1623, allocations: 0.993 MB / 0.593 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1623, allocations: 0 / 0.593 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of FrontEnd: time 7.81e-07/0.1624, allocations: 0 / 0.593 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.816e-06/0.1624, allocations: 4 kB / 0.593 GB, free: 11.41 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.001647/0.164, allocations: 1.073 MB / 0.5941 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.1641, allocations: 8.031 kB / 0.5941 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000103/0.1642, allocations: 98.7 kB / 0.5942 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.1643, allocations: 83.98 kB / 0.5942 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007087/0.165, allocations: 0.5533 MB / 0.5948 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.322e-05/0.1651, allocations: 53.62 kB / 0.5948 GB, free: 9.441 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.407e-05/0.1651, allocations: 64.27 kB / 0.5949 GB, free: 9.379 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009624/0.1661, allocations: 0.6076 MB / 0.5955 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.1661, allocations: 0 / 0.5955 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.881e-05/0.1662, allocations: 32 kB / 0.5955 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.1662, allocations: 12 kB / 0.5955 GB, free: 8.703 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008818/0.1671, allocations: 461 kB / 0.596 GB, free: 8.254 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002512/0.1696, allocations: 2.001 MB / 0.5979 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008196/0.1705, allocations: 455 kB / 0.5984 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004103/0.1709, allocations: 246 kB / 0.5986 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.606e-05/0.1709, allocations: 8.375 kB / 0.5986 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005633/0.1715, allocations: 257.3 kB / 0.5988 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 2.144e-06/0.1715, allocations: 0 / 0.5988 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001195/0.1727, allocations: 0.5805 MB / 0.5994 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.108e-05/0.1728, allocations: 59.78 kB / 0.5995 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004322/0.1732, allocations: 454 kB / 0.5999 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.504e-05/0.1732, allocations: 33.7 kB / 0.5999 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.1734, allocations: 320.3 kB / 0.6002 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.1736, allocations: 165.6 kB / 0.6004 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/0.1737, allocations: 94.25 kB / 0.6005 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.1738, allocations: 374.8 kB / 0.6008 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003571/0.1742, allocations: 161 kB / 0.601 GB, free: 2.949 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003932/0.1746, allocations: 249.8 kB / 0.6012 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007268/0.1753, allocations: 452 kB / 0.6017 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.1753, allocations: 4 kB / 0.6017 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009477/0.1763, allocations: 0.5662 MB / 0.6022 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.64e-05/0.1763, allocations: 33.69 kB / 0.6023 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.1764, allocations: 4 kB / 0.6023 GB, free: 1.582 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.1764, allocations: 4 kB / 0.6023 GB, free: 1.578 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004668/0.1768, allocations: 111.8 kB / 0.6024 GB, free: 1.469 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.1769, allocations: 8 kB / 0.6024 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003237/0.1772, allocations: 63.75 kB / 0.6024 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.82e-05/0.1772, allocations: 27.94 kB / 0.6025 GB, free: 1.371 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.0002218/0.1775, allocations: 209.7 kB / 0.6027 GB, free: 1.156 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.487e-05/0.1775, allocations: 59.27 kB / 0.6027 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/0.1777, allocations: 65.59 kB / 0.6028 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.1777, allocations: 4 kB / 0.6028 GB, free: 1.031 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/0.1777, allocations: 4 kB / 0.6028 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.1777, allocations: 3.984 kB / 0.6028 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2535/0.4312, allocations: 1.173 MB / 0.6039 GB, free: 52.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.4312, allocations: 0 / 0.6039 GB, free: 52.06 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004996/0.4317, allocations: 94.91 kB / 0.604 GB, free: 52.06 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.004e-06/0.4317, allocations: 2.531 kB / 0.604 GB, free: 52.06 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.308e-05/0.4318, allocations: 12.27 kB / 0.604 GB, free: 52.06 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.152e-06/0.4318, allocations: 4.469 kB / 0.6041 GB, free: 52.06 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.4318, allocations: 0 / 0.6041 GB, free: 52.06 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001228/0.433, allocations: 0.7584 MB / 0.6048 GB, free: 51.93 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001673/0.4332, allocations: 170 kB / 0.605 GB, free: 51.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.974e-05/0.4333, allocations: 12 kB / 0.605 GB, free: 51.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002847/0.4336, allocations: 30.56 kB / 0.605 GB, free: 51.84 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.423e-05/0.4337, allocations: 31.86 kB / 0.605 GB, free: 51.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-05/0.4337, allocations: 14.09 kB / 0.605 GB, free: 51.84 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002972/0.434, allocations: 311.6 kB / 0.6053 GB, free: 51.75 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.434, allocations: 0 / 0.6053 GB, free: 51.75 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004327/0.4345, allocations: 146.8 kB / 0.6055 GB, free: 51.75 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.001265/0.4357, allocations: 1.316 MB / 0.6068 GB, free: 51.06 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008015/0.4365, allocations: 488.2 kB / 0.6072 GB, free: 50.96 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4366, allocations: 0 / 0.6072 GB, free: 50.96 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003476/0.4369, allocations: 215.3 kB / 0.6074 GB, free: 50.89 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006955/0.4376, allocations: 140.3 kB / 0.6076 GB, free: 50.86 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006148/0.4438, allocations: 5.135 MB / 0.6126 GB, free: 47.77 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002824/0.4441, allocations: 0.894 MB / 0.6135 GB, free: 47.06 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002882/0.4444, allocations: 62.73 kB / 0.6135 GB, free: 47.05 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002422/0.4446, allocations: 219.8 kB / 0.6137 GB, free: 46.88 MB / 0.4981 GB Notification: Performance of SimCode: time 5.41e-07/0.4446, allocations: 0 / 0.6137 GB, free: 46.88 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3266/0.7713, allocations: 10.65 MB / 0.6241 GB, free: 46.09 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001749/0.7715, allocations: 196.6 kB / 0.6243 GB, free: 45.83 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.089/2.861, allocations: 0 / 0.6243 GB, free: 45.83 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)