Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset") translateModel(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.6925/0.6925, allocations: 128.7 MB / 144.5 MB, free: 1.395 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001156/0.001155, allocations: 190.9 kB / 174.2 MB, free: 5.938 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.333/1.333, allocations: 205 MB / 408.9 MB, free: 9.691 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009474/0.0009474, allocations: 106.2 kB / 485.1 MB, free: 13.58 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001095/0.001094, allocations: 56.64 kB / 0.558 GB, free: 97.49 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.137, allocations: 75.47 MB / 0.6317 GB, free: 33.06 MB / 442.7 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset): time 0.004315/0.1413, allocations: 4.149 MB / 0.6357 GB, free: 28.88 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.001875/0.1432, allocations: 1.399 MB / 0.6371 GB, free: 27.47 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002668/0.1435, allocations: 23.88 kB / 0.6371 GB, free: 27.45 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002686/0.1438, allocations: 91.22 kB / 0.6372 GB, free: 27.36 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000249/0.1441, allocations: 158.7 kB / 0.6373 GB, free: 27.2 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007013/0.1448, allocations: 423.5 kB / 0.6378 GB, free: 26.79 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005318/0.1453, allocations: 0.9086 MB / 0.6386 GB, free: 25.88 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004379/0.1458, allocations: 430.1 kB / 0.6391 GB, free: 25.44 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002104/0.146, allocations: 282.7 kB / 0.6393 GB, free: 25.16 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002156/0.1462, allocations: 314.3 kB / 0.6396 GB, free: 24.85 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 6.762e-05/0.1463, allocations: 40 kB / 0.6397 GB, free: 24.81 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.22e-05/0.1464, allocations: 40 kB / 0.6397 GB, free: 24.77 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 8.028e-05/0.1465, allocations: 131.3 kB / 0.6398 GB, free: 24.64 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001959/0.1467, allocations: 346.1 kB / 0.6402 GB, free: 24.3 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005417/0.1472, allocations: 1.051 MB / 0.6412 GB, free: 23.25 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1472, allocations: 0 / 0.6412 GB, free: 23.25 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1472, allocations: 0 / 0.6412 GB, free: 23.25 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.1472, allocations: 0 / 0.6412 GB, free: 23.25 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 148 * Number of variables: 148 Notification: Performance of Generate backend data structure: time 0.001501/0.1487, allocations: 1.092 MB / 0.6422 GB, free: 22.1 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.036e-05/0.1488, allocations: 12.03 kB / 0.6423 GB, free: 22.09 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.1489, allocations: 87.98 kB / 0.6423 GB, free: 22 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006385/0.1495, allocations: 0.5611 MB / 0.6429 GB, free: 21.4 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/0.1496, allocations: 41.69 kB / 0.6429 GB, free: 21.36 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.459e-05/0.1497, allocations: 56.38 kB / 0.643 GB, free: 21.31 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008409/0.1505, allocations: 0.6234 MB / 0.6436 GB, free: 20.66 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/0.1505, allocations: 0 / 0.6436 GB, free: 20.66 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.273e-05/0.1506, allocations: 24 kB / 0.6436 GB, free: 20.64 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.1506, allocations: 12 kB / 0.6436 GB, free: 20.62 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008075/0.1514, allocations: 469 kB / 0.6441 GB, free: 20.17 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002226/0.1537, allocations: 2.039 MB / 0.6461 GB, free: 18.05 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007516/0.1544, allocations: 450.6 kB / 0.6465 GB, free: 17.61 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003612/0.1548, allocations: 238.1 kB / 0.6467 GB, free: 17.37 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.274e-05/0.1548, allocations: 4.438 kB / 0.6467 GB, free: 17.36 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004854/0.1553, allocations: 269.3 kB / 0.647 GB, free: 17.09 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 1.893e-06/0.1553, allocations: 0 / 0.647 GB, free: 17.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.001048/0.1564, allocations: 0.585 MB / 0.6476 GB, free: 16.5 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.438e-05/0.1564, allocations: 59.84 kB / 0.6476 GB, free: 16.43 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000348/0.1568, allocations: 449.9 kB / 0.648 GB, free: 15.98 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.83e-05/0.1568, allocations: 41.69 kB / 0.6481 GB, free: 15.93 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.157, allocations: 328.3 kB / 0.6484 GB, free: 15.61 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.57e-05/0.1571, allocations: 173.5 kB / 0.6486 GB, free: 15.44 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.1572, allocations: 90.25 kB / 0.6486 GB, free: 15.34 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.305e-05/0.1573, allocations: 366.8 kB / 0.649 GB, free: 14.97 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003353/0.1576, allocations: 179 kB / 0.6492 GB, free: 14.8 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003429/0.158, allocations: 253.8 kB / 0.6494 GB, free: 14.52 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006592/0.1587, allocations: 460 kB / 0.6498 GB, free: 14.04 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-06/0.1587, allocations: 4 kB / 0.6498 GB, free: 14.03 MB / 442.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.000834/0.1595, allocations: 0.5702 MB / 0.6504 GB, free: 13.45 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.933e-05/0.1595, allocations: 33.7 kB / 0.6504 GB, free: 13.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.1596, allocations: 4 kB / 0.6504 GB, free: 13.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.1596, allocations: 4 kB / 0.6504 GB, free: 13.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000443/0.16, allocations: 111.8 kB / 0.6506 GB, free: 13.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.926e-06/0.1601, allocations: 4 kB / 0.6506 GB, free: 13.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003014/0.1604, allocations: 67.59 kB / 0.6506 GB, free: 13.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.638e-05/0.1604, allocations: 24 kB / 0.6506 GB, free: 13.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004044/0.1608, allocations: 313.2 kB / 0.6509 GB, free: 12.89 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002911/0.1611, allocations: 241.8 kB / 0.6512 GB, free: 12.62 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005441/0.1617, allocations: 448 kB / 0.6516 GB, free: 12.16 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.703e-06/0.1617, allocations: 0 / 0.6516 GB, free: 12.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=66) (initialization_lambda0): time 0.0007228/0.1624, allocations: 0.5468 MB / 0.6521 GB, free: 11.59 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.1624, allocations: 37.89 kB / 0.6522 GB, free: 11.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.675e-06/0.1624, allocations: 4 kB / 0.6522 GB, free: 11.55 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.048e-06/0.1625, allocations: 4 kB / 0.6522 GB, free: 11.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003709/0.1628, allocations: 107.8 kB / 0.6523 GB, free: 11.44 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.71e-06/0.1628, allocations: 7.984 kB / 0.6523 GB, free: 11.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002599/0.1631, allocations: 55.58 kB / 0.6523 GB, free: 11.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.1631, allocations: 20 kB / 0.6524 GB, free: 11.36 MB / 442.7 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 9.438e-05/0.1632, allocations: 219.5 kB / 0.6526 GB, free: 11.14 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.344e-05/0.1633, allocations: 59.28 kB / 0.6526 GB, free: 11.08 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001186/0.1634, allocations: 61.59 kB / 0.6527 GB, free: 11.02 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.1634, allocations: 4 kB / 0.6527 GB, free: 11.02 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/0.1634, allocations: 3.984 kB / 0.6527 GB, free: 11.01 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.1635, allocations: 0 / 0.6527 GB, free: 11.01 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001395/0.1649, allocations: 1.185 MB / 0.6538 GB, free: 9.773 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1649, allocations: 7.922 kB / 0.6539 GB, free: 9.766 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00041/0.1653, allocations: 91.89 kB / 0.6539 GB, free: 9.676 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.1653, allocations: 4 kB / 0.6539 GB, free: 9.672 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.589e-05/0.1653, allocations: 4 kB / 0.654 GB, free: 9.668 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.1653, allocations: 7.984 kB / 0.654 GB, free: 9.66 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1653, allocations: 0 / 0.654 GB, free: 9.66 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005427/0.1708, allocations: 4.205 MB / 0.6581 GB, free: 5.309 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/0.1709, allocations: 176.2 kB / 0.6582 GB, free: 5.117 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.105e-05/0.171, allocations: 16.06 kB / 0.6582 GB, free: 5.102 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002734/0.1713, allocations: 27.97 kB / 0.6583 GB, free: 5.074 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.715e-05/0.1714, allocations: 32.39 kB / 0.6583 GB, free: 5.043 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.462e-05/0.1714, allocations: 19.92 kB / 0.6583 GB, free: 5.023 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002567/0.1717, allocations: 314.9 kB / 0.6586 GB, free: 4.719 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.1e-07/0.1717, allocations: 4 kB / 0.6586 GB, free: 4.715 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008685/0.1725, allocations: 366.9 kB / 0.659 GB, free: 4.355 MB / 442.7 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 (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.0001753/0.1727, allocations: 115.1 kB / 0.6591 GB, free: 4.234 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001134/0.1739, allocations: 0.7774 MB / 0.6598 GB, free: 3.43 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1739, allocations: 0 / 0.6598 GB, free: 3.43 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003403/0.1742, allocations: 214.4 kB / 0.6601 GB, free: 3.223 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007289/0.175, allocations: 154.6 kB / 0.6602 GB, free: 3.074 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002348/0.1773, allocations: 1.968 MB / 0.6621 GB, free: 1.066 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002592/0.1776, allocations: 0.9026 MB / 0.663 GB, free: 140 kB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003308/0.1779, allocations: 80.66 kB / 0.6631 GB, free: 60 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.1781, allocations: 51.36 kB / 0.6631 GB, free: 12 kB / 442.7 MB Notification: Performance of SimCode: time 2.21e-07/0.1781, allocations: 0 / 0.6631 GB, free: 12 kB / 442.7 MB Notification: Performance of Templates: time 0.0124/0.1905, allocations: 7.552 MB / 0.6705 GB, free: 8.535 MB / 458.7 MB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.sim & ./BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)