Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IBPSA_latest_IBPSA_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.0007888/0.0007889, allocations: 92.86 kB / 15.7 MB, free: 472 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008525/0.0008528, allocations: 171.7 kB / 16.58 MB, free: 6.051 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.306/1.306, allocations: 223.3 MB / 240.6 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6514/0.6514, allocations: 113.7 MB / 405.4 MB, free: 4.578 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003103/0.0003104, allocations: 10.5 kB / 493.1 MB, free: 8.574 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1473/0.1476, allocations: 77.11 MB / 0.5569 GB, free: 11.66 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.Continuous.Examples.LimPIDWithReset): time 0.003881/0.1515, allocations: 3.505 MB / 0.5603 GB, free: 8.141 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002357/0.1539, allocations: 1.235 MB / 0.5615 GB, free: 6.898 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006708/0.1546, allocations: 23.88 kB / 0.5615 GB, free: 6.875 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004004/0.155, allocations: 83.22 kB / 0.5616 GB, free: 6.793 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005395/0.1556, allocations: 142.8 kB / 0.5617 GB, free: 6.652 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009743/0.1566, allocations: 290.3 kB / 0.562 GB, free: 6.379 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001006/0.1576, allocations: 0.8345 MB / 0.5628 GB, free: 5.543 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004664/0.1581, allocations: 291.6 kB / 0.5631 GB, free: 5.242 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003398/0.1584, allocations: 226.8 kB / 0.5633 GB, free: 5.02 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002905/0.1587, allocations: 246.6 kB / 0.5636 GB, free: 4.777 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 6.047e-05/0.1588, allocations: 20 kB / 0.5636 GB, free: 4.758 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.982e-05/0.1588, allocations: 24 kB / 0.5636 GB, free: 4.734 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.505e-05/0.1589, allocations: 95.48 kB / 0.5637 GB, free: 4.641 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001312/0.1591, allocations: 157.3 kB / 0.5639 GB, free: 4.48 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000689/0.1598, allocations: 0.8066 MB / 0.5646 GB, free: 3.672 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.1598, allocations: 0 / 0.5646 GB, free: 3.672 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1598, allocations: 0 / 0.5646 GB, free: 3.672 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.418e-06/0.1598, allocations: 0 / 0.5646 GB, free: 3.672 MB / 430.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.001502/0.1613, allocations: 0.9639 MB / 0.5656 GB, free: 2.648 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.1614, allocations: 12.03 kB / 0.5656 GB, free: 2.637 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001171/0.1615, allocations: 102.5 kB / 0.5657 GB, free: 2.527 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001199/0.1616, allocations: 83.06 kB / 0.5658 GB, free: 2.445 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007239/0.1623, allocations: 0.529 MB / 0.5663 GB, free: 1.883 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.515e-05/0.1624, allocations: 45.31 kB / 0.5663 GB, free: 1.84 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.58e-05/0.1625, allocations: 56 kB / 0.5664 GB, free: 1.785 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009812/0.1635, allocations: 0.6075 MB / 0.567 GB, free: 1.152 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.1635, allocations: 0 / 0.567 GB, free: 1.152 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.136e-05/0.1636, allocations: 35.97 kB / 0.567 GB, free: 1.117 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.1636, allocations: 12 kB / 0.567 GB, free: 1.105 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008714/0.1644, allocations: 469 kB / 0.5675 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002521/0.167, allocations: 2.016 MB / 0.5694 GB, free: 14.55 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008076/0.1678, allocations: 458.1 kB / 0.5699 GB, free: 14.1 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003996/0.1682, allocations: 246 kB / 0.5701 GB, free: 13.86 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.383e-05/0.1683, allocations: 8.438 kB / 0.5701 GB, free: 13.85 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005305/0.1688, allocations: 265.4 kB / 0.5704 GB, free: 13.58 MB / 446.1 MB Notification: Performance of pre-optimization done (n=49): time 1.964e-06/0.1688, allocations: 0 / 0.5704 GB, free: 13.58 MB / 446.1 MB Notification: Performance of matching and sorting (n=49): time 0.001147/0.17, allocations: 0.5968 MB / 0.571 GB, free: 12.98 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.305e-05/0.17, allocations: 59.78 kB / 0.571 GB, free: 12.91 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004399/0.1705, allocations: 449.8 kB / 0.5714 GB, free: 12.46 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.301e-05/0.1705, allocations: 37.64 kB / 0.5715 GB, free: 12.41 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000211/0.1707, allocations: 320.3 kB / 0.5718 GB, free: 12.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001234/0.1709, allocations: 173.6 kB / 0.5719 GB, free: 11.93 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.353e-05/0.1709, allocations: 12 kB / 0.572 GB, free: 11.91 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.171, allocations: 366.7 kB / 0.5723 GB, free: 11.55 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000341/0.1714, allocations: 165 kB / 0.5725 GB, free: 11.39 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003834/0.1718, allocations: 253.8 kB / 0.5727 GB, free: 11.11 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004021/0.1722, allocations: 231.8 kB / 0.5729 GB, free: 10.88 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1722, allocations: 0 / 0.5729 GB, free: 10.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009494/0.1731, allocations: 0.5662 MB / 0.5735 GB, free: 10.31 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.738e-05/0.1732, allocations: 41.69 kB / 0.5735 GB, free: 10.26 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.1732, allocations: 0 / 0.5735 GB, free: 10.26 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.1732, allocations: 4 kB / 0.5735 GB, free: 10.26 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004367/0.1737, allocations: 120.1 kB / 0.5736 GB, free: 10.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.1737, allocations: 8 kB / 0.5736 GB, free: 10.13 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002936/0.174, allocations: 63.5 kB / 0.5737 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.319e-05/0.174, allocations: 20 kB / 0.5737 GB, free: 10.05 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 ($whenCondition2,$whenCondition1,conWitRes.trigger.y,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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002325/0.1743, allocations: 214.3 kB / 0.5739 GB, free: 9.832 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.849e-05/0.1743, allocations: 55.34 kB / 0.574 GB, free: 9.777 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001187/0.1744, allocations: 65.58 kB / 0.574 GB, free: 9.715 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.882e-06/0.1745, allocations: 11.98 kB / 0.5741 GB, free: 9.703 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.1745, allocations: 0 / 0.5741 GB, free: 9.703 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.1745, allocations: 3.984 kB / 0.5741 GB, free: 9.699 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001529/0.176, allocations: 1.185 MB / 0.5752 GB, free: 8.457 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.176, allocations: 0 / 0.5752 GB, free: 8.457 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004183/0.1765, allocations: 99.83 kB / 0.5753 GB, free: 8.359 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.1765, allocations: 4 kB / 0.5753 GB, free: 8.355 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.059e-05/0.1765, allocations: 15.98 kB / 0.5753 GB, free: 8.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.1765, allocations: 4 kB / 0.5753 GB, free: 8.336 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1765, allocations: 0 / 0.5753 GB, free: 8.336 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001197/0.1777, allocations: 0.7718 MB / 0.5761 GB, free: 7.543 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001522/0.1779, allocations: 164.4 kB / 0.5762 GB, free: 7.363 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.729e-05/0.178, allocations: 12 kB / 0.5763 GB, free: 7.352 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002696/0.1782, allocations: 39.91 kB / 0.5763 GB, free: 7.312 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.739e-05/0.1783, allocations: 36.38 kB / 0.5763 GB, free: 7.277 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.499e-05/0.1784, allocations: 15.94 kB / 0.5763 GB, free: 7.262 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00031/0.1787, allocations: 302.9 kB / 0.5766 GB, free: 6.969 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1787, allocations: 0 / 0.5766 GB, free: 6.969 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004278/0.1791, allocations: 143.5 kB / 0.5768 GB, free: 6.828 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 (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.001507/0.1806, allocations: 1.34 MB / 0.5781 GB, free: 5.465 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000853/0.1815, allocations: 489.5 kB / 0.5786 GB, free: 4.969 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1815, allocations: 0 / 0.5786 GB, free: 4.969 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003813/0.1819, allocations: 218.4 kB / 0.5788 GB, free: 4.758 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006629/0.1826, allocations: 134.9 kB / 0.5789 GB, free: 4.633 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005477/0.188, allocations: 3.592 MB / 0.5824 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004469/0.1885, allocations: 0.894 MB / 0.5833 GB, free: 40 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.2592/0.4478, allocations: 60.36 kB / 0.5833 GB, free: 31.46 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003815/0.4482, allocations: 216.7 kB / 0.5835 GB, free: 31.46 MB / 446.1 MB Notification: Performance of SimCode: time 7.12e-07/0.4482, allocations: 0.9062 kB / 0.5835 GB, free: 31.46 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02537/0.4736, allocations: 10.64 MB / 0.5939 GB, free: 30.45 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001259/0.4737, allocations: 194.3 kB / 0.5941 GB, free: 30.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.839/2.313, allocations: 3.938 kB / 0.5941 GB, free: 30.2 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPIDWithReset.fmu > IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) Environment - environmentSimulation: