Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis.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.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis") translateModel(BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7024/0.7024, allocations: 128.7 MB / 144.5 MB, free: 1.367 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.001185/0.001185, allocations: 190 kB / 174.2 MB, free: 5.918 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.388/1.388, allocations: 205 MB / 408.9 MB, free: 9.711 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.0009461/0.0009462, allocations: 102.2 kB / 485.1 MB, free: 13.55 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 56.58 kB / 0.558 GB, free: 97.68 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1494, allocations: 75.48 MB / 0.6317 GB, free: 33.01 MB / 442.7 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis): time 0.003601/0.153, allocations: 3.017 MB / 0.6346 GB, free: 29.97 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.001387/0.1545, allocations: 0.971 MB / 0.6356 GB, free: 28.99 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002499/0.1547, allocations: 15.88 kB / 0.6356 GB, free: 28.97 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002158/0.155, allocations: 47.58 kB / 0.6356 GB, free: 28.93 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001554/0.1551, allocations: 67.44 kB / 0.6357 GB, free: 28.86 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004521/0.1556, allocations: 228.1 kB / 0.6359 GB, free: 28.64 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003263/0.1559, allocations: 471.2 kB / 0.6364 GB, free: 28.18 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002799/0.1562, allocations: 209.2 kB / 0.6366 GB, free: 27.98 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001537/0.1564, allocations: 151.2 kB / 0.6367 GB, free: 27.83 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001581/0.1565, allocations: 167 kB / 0.6369 GB, free: 27.66 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 4.266e-05/0.1566, allocations: 20 kB / 0.6369 GB, free: 27.64 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.869e-05/0.1566, allocations: 20 kB / 0.6369 GB, free: 27.62 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 4.87e-05/0.1567, allocations: 75.62 kB / 0.637 GB, free: 27.55 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001069/0.1568, allocations: 178.8 kB / 0.6371 GB, free: 27.38 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002954/0.1571, allocations: 498.6 kB / 0.6376 GB, free: 26.89 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.1571, allocations: 0 / 0.6376 GB, free: 26.89 MB / 442.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.1571, allocations: 0 / 0.6376 GB, free: 26.89 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.1571, allocations: 3.938 kB / 0.6376 GB, free: 26.88 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0009331/0.1581, allocations: 0.7207 MB / 0.6383 GB, free: 26.11 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.1581, allocations: 8.031 kB / 0.6383 GB, free: 26.11 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.406e-05/0.1582, allocations: 52.31 kB / 0.6384 GB, free: 26.05 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004366/0.1586, allocations: 392.3 kB / 0.6388 GB, free: 25.63 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/0.1587, allocations: 25.03 kB / 0.6388 GB, free: 25.61 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4e-05/0.1587, allocations: 28.38 kB / 0.6388 GB, free: 25.58 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000452/0.1592, allocations: 349.4 kB / 0.6391 GB, free: 25.21 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.1592, allocations: 0 / 0.6391 GB, free: 25.21 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.71e-05/0.1592, allocations: 12 kB / 0.6392 GB, free: 25.2 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.986e-06/0.1592, allocations: 11.98 kB / 0.6392 GB, free: 25.18 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003842/0.1596, allocations: 214.1 kB / 0.6394 GB, free: 24.98 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/0.1608, allocations: 1.197 MB / 0.6405 GB, free: 23.7 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005086/0.1613, allocations: 242.7 kB / 0.6408 GB, free: 23.46 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001783/0.1615, allocations: 112.8 kB / 0.6409 GB, free: 23.34 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.559e-05/0.1616, allocations: 4 kB / 0.6409 GB, free: 23.34 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.943e-05/0.1616, allocations: 34.88 kB / 0.6409 GB, free: 23.3 MB / 442.7 MB Notification: Performance of pre-optimization done (n=22): time 1.333e-06/0.1616, allocations: 0 / 0.6409 GB, free: 23.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005605/0.1622, allocations: 300.2 kB / 0.6412 GB, free: 23 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.1622, allocations: 106.8 kB / 0.6413 GB, free: 22.87 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000247/0.1625, allocations: 337.7 kB / 0.6416 GB, free: 22.53 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.847e-05/0.1625, allocations: 29.7 kB / 0.6417 GB, free: 22.5 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.1626, allocations: 228.2 kB / 0.6419 GB, free: 22.27 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.118e-05/0.1626, allocations: 70.92 kB / 0.6419 GB, free: 22.2 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.944e-05/0.1627, allocations: 57.61 kB / 0.642 GB, free: 22.14 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.26e-05/0.1628, allocations: 342.8 kB / 0.6423 GB, free: 21.79 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001572/0.1629, allocations: 88.8 kB / 0.6424 GB, free: 21.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001745/0.1631, allocations: 151.6 kB / 0.6425 GB, free: 21.53 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002982/0.1634, allocations: 217.9 kB / 0.6428 GB, free: 21.29 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.1634, allocations: 3.938 kB / 0.6428 GB, free: 21.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003994/0.1639, allocations: 281 kB / 0.643 GB, free: 21.01 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.1639, allocations: 6.031 kB / 0.643 GB, free: 21 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.1639, allocations: 4 kB / 0.643 GB, free: 21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.1639, allocations: 7.938 kB / 0.643 GB, free: 20.99 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002013/0.1641, allocations: 55.91 kB / 0.6431 GB, free: 20.94 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.1641, allocations: 4.188 kB / 0.6431 GB, free: 20.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001647/0.1643, allocations: 39.67 kB / 0.6431 GB, free: 20.89 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.696e-05/0.1643, allocations: 8 kB / 0.6431 GB, free: 20.89 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000193/0.1645, allocations: 196.1 kB / 0.6433 GB, free: 20.69 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001345/0.1647, allocations: 143.6 kB / 0.6435 GB, free: 20.52 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002372/0.1649, allocations: 209.9 kB / 0.6437 GB, free: 20.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.092e-06/0.1649, allocations: 4.031 kB / 0.6437 GB, free: 20.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=31) (initialization_lambda0): time 0.0003428/0.1653, allocations: 265.1 kB / 0.6439 GB, free: 20.03 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.903e-06/0.1653, allocations: 4 kB / 0.6439 GB, free: 20.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-06/0.1653, allocations: 4 kB / 0.6439 GB, free: 20.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.036e-06/0.1653, allocations: 4 kB / 0.6439 GB, free: 20.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001743/0.1655, allocations: 47.92 kB / 0.644 GB, free: 19.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.927e-06/0.1655, allocations: 192 / 0.644 GB, free: 19.97 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001601/0.1657, allocations: 47.66 kB / 0.644 GB, free: 19.92 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/0.1657, allocations: 16 kB / 0.644 GB, free: 19.91 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 (con.hys.y,$PRE.con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * 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 8.89e-05/0.1658, allocations: 192.2 kB / 0.6442 GB, free: 19.71 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.725e-05/0.1658, allocations: 31.62 kB / 0.6443 GB, free: 19.68 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.968e-05/0.1659, allocations: 43.3 kB / 0.6443 GB, free: 19.63 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1659, allocations: 0 / 0.6443 GB, free: 19.63 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.1659, allocations: 4 kB / 0.6443 GB, free: 19.63 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.166, allocations: 7.984 kB / 0.6443 GB, free: 19.62 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002959/0.1663, allocations: 401.2 kB / 0.6447 GB, free: 19.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.1663, allocations: 0 / 0.6447 GB, free: 19.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000197/0.1665, allocations: 35.98 kB / 0.6447 GB, free: 19.14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.1665, allocations: 4 kB / 0.6447 GB, free: 19.14 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.803e-05/0.1665, allocations: 7.984 kB / 0.6447 GB, free: 19.13 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1665, allocations: 0 / 0.6447 GB, free: 19.13 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.1665, allocations: 0 / 0.6447 GB, free: 19.13 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003214/0.1697, allocations: 2.539 MB / 0.6472 GB, free: 16.46 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.895e-05/0.1698, allocations: 132.5 kB / 0.6473 GB, free: 16.31 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.1699, allocations: 4 kB / 0.6473 GB, free: 16.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/0.17, allocations: 15.98 kB / 0.6474 GB, free: 16.29 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.611e-05/0.1701, allocations: 19.97 kB / 0.6474 GB, free: 16.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.1701, allocations: 4 kB / 0.6474 GB, free: 16.27 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001924/0.1703, allocations: 251.2 kB / 0.6476 GB, free: 16.02 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1703, allocations: 0 / 0.6476 GB, free: 16.02 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005982/0.1709, allocations: 187.4 kB / 0.6478 GB, free: 15.84 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 9.08e-05/0.171, allocations: 99.19 kB / 0.6479 GB, free: 15.73 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0005283/0.1716, allocations: 320.2 kB / 0.6482 GB, free: 15.42 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1716, allocations: 0 / 0.6482 GB, free: 15.42 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001556/0.1717, allocations: 91.91 kB / 0.6483 GB, free: 15.33 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005763/0.1723, allocations: 95.14 kB / 0.6484 GB, free: 15.25 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.1735, allocations: 1.037 MB / 0.6494 GB, free: 14.17 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001825/0.1737, allocations: 0.7921 MB / 0.6502 GB, free: 13.35 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001805/0.1739, allocations: 50.94 kB / 0.6502 GB, free: 13.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.956e-05/0.174, allocations: 27.44 kB / 0.6502 GB, free: 13.27 MB / 442.7 MB Notification: Performance of SimCode: time 2e-07/0.174, allocations: 0 / 0.6502 GB, free: 13.27 MB / 442.7 MB Notification: Performance of Templates: time 0.00629/0.1803, allocations: 3.935 MB / 0.6541 GB, free: 9.367 MB / 442.7 MB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis.sim & ./BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)