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.001055/0.001055, allocations: 108.3 kB / 16.4 MB, free: 6.434 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.0012/0.0012, allocations: 192.8 kB / 17.34 MB, free: 5.719 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.333/1.333, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7731/0.7731, allocations: 115.3 MB / 406.5 MB, free: 6.254 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 71.52 kB / 0.5572 GB, free: 32.6 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1382, allocations: 76.17 MB / 0.6315 GB, free: 4.953 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.Continuous.Examples.LimPIDWithReset): time 0.006202/0.1445, allocations: 4.091 MB / 0.6355 GB, free: 0.832 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002933/0.1475, allocations: 1.332 MB / 0.6368 GB, free: 15.49 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007234/0.1482, allocations: 23.88 kB / 0.6369 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004763/0.1487, allocations: 122.8 kB / 0.637 GB, free: 15.35 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007099/0.1495, allocations: 186.4 kB / 0.6372 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001174/0.1507, allocations: 416.4 kB / 0.6376 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001282/0.152, allocations: 0.9593 MB / 0.6385 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007945/0.1528, allocations: 466.1 kB / 0.6389 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005584/0.1533, allocations: 322.8 kB / 0.6392 GB, free: 13 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004713/0.1538, allocations: 346.3 kB / 0.6396 GB, free: 12.66 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002086/0.154, allocations: 92 kB / 0.6397 GB, free: 12.57 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000143/0.1542, allocations: 88 kB / 0.6398 GB, free: 12.49 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001507/0.1544, allocations: 183.4 kB / 0.6399 GB, free: 12.31 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004255/0.1548, allocations: 390 kB / 0.6403 GB, free: 11.93 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001084/0.1559, allocations: 1.059 MB / 0.6413 GB, free: 10.87 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.1559, allocations: 7.938 kB / 0.6413 GB, free: 10.86 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1559, allocations: 0 / 0.6413 GB, free: 10.86 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.909e-05/0.156, allocations: 0 / 0.6413 GB, free: 10.86 MB / 494.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.002339/0.1583, allocations: 1.081 MB / 0.6424 GB, free: 9.719 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.1583, allocations: 12.03 kB / 0.6424 GB, free: 9.707 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001322/0.1585, allocations: 94.7 kB / 0.6425 GB, free: 9.605 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000153/0.1586, allocations: 84 kB / 0.6426 GB, free: 9.523 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009615/0.1596, allocations: 0.565 MB / 0.6431 GB, free: 8.918 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.37e-05/0.1597, allocations: 45.62 kB / 0.6432 GB, free: 8.875 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.498e-05/0.1598, allocations: 60.38 kB / 0.6432 GB, free: 8.816 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001149/0.1609, allocations: 0.6115 MB / 0.6438 GB, free: 8.18 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.656e-05/0.161, allocations: 7.906 kB / 0.6438 GB, free: 8.172 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.29e-05/0.161, allocations: 20 kB / 0.6439 GB, free: 8.152 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.161, allocations: 16 kB / 0.6439 GB, free: 8.137 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.1621, allocations: 461 kB / 0.6443 GB, free: 7.688 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003107/0.1652, allocations: 1.985 MB / 0.6462 GB, free: 5.633 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009477/0.1662, allocations: 448.7 kB / 0.6467 GB, free: 5.184 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004597/0.1667, allocations: 238.1 kB / 0.6469 GB, free: 4.949 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.182e-05/0.1667, allocations: 8.438 kB / 0.6469 GB, free: 4.941 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005598/0.1673, allocations: 269.1 kB / 0.6472 GB, free: 4.664 MB / 494.1 MB Notification: Performance of pre-optimization done (n=49): time 4.218e-06/0.1673, allocations: 3.984 kB / 0.6472 GB, free: 4.66 MB / 494.1 MB Notification: Performance of matching and sorting (n=49): time 0.00138/0.1687, allocations: 0.5805 MB / 0.6477 GB, free: 4.074 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.82e-05/0.1688, allocations: 55.84 kB / 0.6478 GB, free: 4.008 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005477/0.1693, allocations: 442.1 kB / 0.6482 GB, free: 3.566 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.69e-05/0.1694, allocations: 37.7 kB / 0.6482 GB, free: 3.523 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002564/0.1696, allocations: 332.9 kB / 0.6486 GB, free: 3.191 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.1698, allocations: 165.6 kB / 0.6487 GB, free: 3.027 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/0.17, allocations: 94.23 kB / 0.6488 GB, free: 2.926 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.1701, allocations: 362.8 kB / 0.6492 GB, free: 2.562 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004119/0.1705, allocations: 161 kB / 0.6493 GB, free: 2.406 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004526/0.171, allocations: 257.8 kB / 0.6496 GB, free: 2.129 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008458/0.1719, allocations: 456 kB / 0.65 GB, free: 1.652 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.1719, allocations: 0 / 0.65 GB, free: 1.652 MB / 494.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001114/0.173, allocations: 0.5622 MB / 0.6505 GB, free: 1.074 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.055e-05/0.173, allocations: 37.7 kB / 0.6506 GB, free: 1.031 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.1731, allocations: 4.25 kB / 0.6506 GB, free: 1.027 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.315e-05/0.1731, allocations: 8 kB / 0.6506 GB, free: 1.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005146/0.1736, allocations: 111.8 kB / 0.6507 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.1736, allocations: 4 kB / 0.6507 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003583/0.174, allocations: 59.5 kB / 0.6508 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.2e-05/0.174, allocations: 19.94 kB / 0.6508 GB, free: 0.8281 MB / 494.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.0002783/0.1743, allocations: 207.6 kB / 0.651 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.622e-05/0.1744, allocations: 63.28 kB / 0.651 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001404/0.1746, allocations: 65.58 kB / 0.6511 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.1746, allocations: 4 kB / 0.6511 GB, free: 500 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.1746, allocations: 4 kB / 0.6511 GB, free: 496 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.1746, allocations: 3.984 kB / 0.6511 GB, free: 492 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001876/0.1765, allocations: 1.178 MB / 0.6523 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.1765, allocations: 0 / 0.6523 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004841/0.177, allocations: 91.89 kB / 0.6523 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.177, allocations: 0 / 0.6523 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.154e-05/0.1771, allocations: 15.98 kB / 0.6524 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.63e-06/0.1771, allocations: 4 kB / 0.6524 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.1771, allocations: 0 / 0.6524 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001455/0.1786, allocations: 0.765 MB / 0.6531 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002298/0.1788, allocations: 168.3 kB / 0.6533 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.449e-05/0.1789, allocations: 12.12 kB / 0.6533 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000307/0.1792, allocations: 27.97 kB / 0.6533 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.1793, allocations: 32.39 kB / 0.6533 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.879e-05/0.1794, allocations: 20 kB / 0.6534 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003675/0.1797, allocations: 310.9 kB / 0.6537 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1797, allocations: 0 / 0.6537 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005006/0.1803, allocations: 139.5 kB / 0.6538 GB, free: 13.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.001621/0.1819, allocations: 1.317 MB / 0.6551 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009598/0.1829, allocations: 485.5 kB / 0.6555 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.1829, allocations: 0 / 0.6555 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000445/0.1833, allocations: 214.4 kB / 0.6557 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008471/0.1842, allocations: 164.4 kB / 0.6559 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007316/0.1915, allocations: 4.772 MB / 0.6606 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004608/0.192, allocations: 0.8899 MB / 0.6614 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003002/0.1923, allocations: 64.58 kB / 0.6615 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003104/0.1926, allocations: 219.4 kB / 0.6617 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of SimCode: time 9.21e-07/0.1927, allocations: 0 / 0.6617 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03429/0.227, allocations: 11.49 MB / 0.6729 GB, free: 10.03 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.503/8.73, allocations: 7.938 kB / 0.6729 GB, free: 10.02 MB / 0.5137 GB (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/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)