Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.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.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID") translateModel(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7157/0.7157, allocations: 128.7 MB / 144.5 MB, free: 1.422 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.001156, allocations: 190 kB / 174.2 MB, free: 5.953 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.446/1.446, allocations: 205 MB / 408.9 MB, free: 9.754 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.0009962/0.0009961, allocations: 98.28 kB / 485.1 MB, free: 13.58 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000991/0.0009911, allocations: 54.52 kB / 0.558 GB, free: 97.58 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1203, allocations: 75.48 MB / 0.6317 GB, free: 33.07 MB / 442.7 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID): time 0.00373/0.1241, allocations: 3.728 MB / 0.6353 GB, free: 29.31 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.001869/0.126, allocations: 1.388 MB / 0.6367 GB, free: 27.91 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003194/0.1264, allocations: 31.81 kB / 0.6367 GB, free: 27.88 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000258/0.1266, allocations: 95.05 kB / 0.6368 GB, free: 27.79 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004072/0.127, allocations: 151 kB / 0.6369 GB, free: 27.64 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008956/0.1279, allocations: 0.5706 MB / 0.6375 GB, free: 27.08 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005915/0.1285, allocations: 0.9252 MB / 0.6384 GB, free: 26.16 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00039/0.1289, allocations: 341.6 kB / 0.6387 GB, free: 25.81 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002656/0.1292, allocations: 330.2 kB / 0.639 GB, free: 25.49 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002329/0.1294, allocations: 330 kB / 0.6394 GB, free: 25.16 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 7.8e-05/0.1295, allocations: 40 kB / 0.6394 GB, free: 25.12 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.7e-05/0.1296, allocations: 40 kB / 0.6394 GB, free: 25.09 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 8.601e-05/0.1297, allocations: 143.3 kB / 0.6396 GB, free: 24.95 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000184/0.1299, allocations: 341.7 kB / 0.6399 GB, free: 24.61 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004487/0.1303, allocations: 0.8487 MB / 0.6407 GB, free: 23.76 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.1304, allocations: 3.938 kB / 0.6407 GB, free: 23.75 MB / 442.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.1304, allocations: 0 / 0.6407 GB, free: 23.75 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.196e-06/0.1304, allocations: 0 / 0.6407 GB, free: 23.75 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001654/0.132, allocations: 1.195 MB / 0.6419 GB, free: 22.5 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.1321, allocations: 12.03 kB / 0.6419 GB, free: 22.49 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.1322, allocations: 99.8 kB / 0.642 GB, free: 22.39 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007882/0.133, allocations: 0.6064 MB / 0.6426 GB, free: 21.75 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.827e-05/0.1331, allocations: 93.28 kB / 0.6427 GB, free: 21.64 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.446e-05/0.1332, allocations: 68.34 kB / 0.6427 GB, free: 21.57 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000884/0.1341, allocations: 0.6082 MB / 0.6433 GB, free: 20.93 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.1341, allocations: 0 / 0.6433 GB, free: 20.93 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.618e-05/0.1341, allocations: 20 kB / 0.6434 GB, free: 20.91 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.1342, allocations: 16 kB / 0.6434 GB, free: 20.89 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008604/0.135, allocations: 431.6 kB / 0.6438 GB, free: 20.46 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00246/0.1375, allocations: 2.133 MB / 0.6459 GB, free: 18.25 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.1386, allocations: 0.4951 MB / 0.6464 GB, free: 17.75 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003881/0.139, allocations: 220.7 kB / 0.6466 GB, free: 17.53 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.205e-05/0.1391, allocations: 11.98 kB / 0.6466 GB, free: 17.52 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007336/0.1398, allocations: 282.1 kB / 0.6468 GB, free: 17.23 MB / 442.7 MB Notification: Performance of pre-optimization done (n=45): time 4.288e-06/0.1398, allocations: 0 / 0.6468 GB, free: 17.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=45): time 0.001346/0.1412, allocations: 0.6061 MB / 0.6474 GB, free: 16.61 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.006e-05/0.1412, allocations: 96.84 kB / 0.6475 GB, free: 16.5 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005425/0.1418, allocations: 0.6255 MB / 0.6481 GB, free: 15.86 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.326e-05/0.1418, allocations: 33.7 kB / 0.6482 GB, free: 15.82 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001885/0.142, allocations: 368.7 kB / 0.6485 GB, free: 15.46 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.238e-05/0.1421, allocations: 157.7 kB / 0.6487 GB, free: 15.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/0.1423, allocations: 90.25 kB / 0.6488 GB, free: 15.21 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.842e-05/0.1423, allocations: 329.9 kB / 0.6491 GB, free: 14.88 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003877/0.1427, allocations: 191 kB / 0.6493 GB, free: 14.69 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004337/0.1432, allocations: 276.2 kB / 0.6495 GB, free: 14.38 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007485/0.1439, allocations: 485.9 kB / 0.65 GB, free: 13.87 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.144, allocations: 0 / 0.65 GB, free: 13.87 MB / 442.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009628/0.1449, allocations: 0.6023 MB / 0.6506 GB, free: 13.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.945e-05/0.145, allocations: 37.7 kB / 0.6506 GB, free: 13.21 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.145, allocations: 4 kB / 0.6506 GB, free: 13.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.145, allocations: 4 kB / 0.6506 GB, free: 13.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004284/0.1454, allocations: 107.8 kB / 0.6507 GB, free: 13.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.1454, allocations: 4 kB / 0.6507 GB, free: 13.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003462/0.1458, allocations: 67.41 kB / 0.6508 GB, free: 13.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.163e-05/0.1458, allocations: 29.09 kB / 0.6508 GB, free: 13 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003828/0.1462, allocations: 301.2 kB / 0.6511 GB, free: 12.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000291/0.1465, allocations: 256.3 kB / 0.6513 GB, free: 12.41 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005892/0.1471, allocations: 442 kB / 0.6518 GB, free: 11.95 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.645e-06/0.1471, allocations: 3.938 kB / 0.6518 GB, free: 11.94 MB / 442.7 MB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.0007527/0.1479, allocations: 0.5592 MB / 0.6523 GB, free: 11.37 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.1479, allocations: 36.36 kB / 0.6524 GB, free: 11.33 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-06/0.1479, allocations: 3.938 kB / 0.6524 GB, free: 11.32 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.512e-06/0.148, allocations: 11.98 kB / 0.6524 GB, free: 11.31 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003549/0.1483, allocations: 99.83 kB / 0.6525 GB, free: 11.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.1483, allocations: 8 kB / 0.6525 GB, free: 11.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003008/0.1486, allocations: 47.58 kB / 0.6525 GB, free: 11.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.516e-05/0.1487, allocations: 16.25 kB / 0.6525 GB, free: 11.14 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0001275/0.1488, allocations: 224 kB / 0.6527 GB, free: 10.92 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.124e-05/0.1489, allocations: 75.05 kB / 0.6528 GB, free: 10.84 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001447/0.149, allocations: 79.34 kB / 0.6529 GB, free: 10.76 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.149, allocations: 4 kB / 0.6529 GB, free: 10.75 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.1491, allocations: 0 / 0.6529 GB, free: 10.75 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.1491, allocations: 3.984 kB / 0.6529 GB, free: 10.75 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000465/0.1495, allocations: 0.6219 MB / 0.6535 GB, free: 10.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.1495, allocations: 0 / 0.6535 GB, free: 10.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004125/0.15, allocations: 91.88 kB / 0.6536 GB, free: 9.988 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.15, allocations: 0 / 0.6536 GB, free: 9.988 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.748e-05/0.15, allocations: 8 kB / 0.6536 GB, free: 9.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.15, allocations: 0 / 0.6536 GB, free: 9.98 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.15, allocations: 3.984 kB / 0.6536 GB, free: 9.977 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006185/0.1562, allocations: 4.386 MB / 0.6579 GB, free: 5.438 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001692/0.1564, allocations: 192 kB / 0.6581 GB, free: 5.23 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.089e-05/0.1565, allocations: 15.98 kB / 0.6581 GB, free: 5.215 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003619/0.1568, allocations: 31.97 kB / 0.6581 GB, free: 5.184 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.168e-05/0.1569, allocations: 35.95 kB / 0.6582 GB, free: 5.148 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.212e-05/0.157, allocations: 15.98 kB / 0.6582 GB, free: 5.133 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003711/0.1573, allocations: 435 kB / 0.6586 GB, free: 4.711 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1574, allocations: 0 / 0.6586 GB, free: 4.711 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008045/0.1582, allocations: 307.4 kB / 0.6589 GB, free: 4.41 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * 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.0001142/0.1583, allocations: 115.1 kB / 0.659 GB, free: 4.289 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001266/0.1596, allocations: 0.7776 MB / 0.6597 GB, free: 3.492 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1596, allocations: 0 / 0.6597 GB, free: 3.492 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000393/0.16, allocations: 219.5 kB / 0.66 GB, free: 3.277 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008376/0.1608, allocations: 205.5 kB / 0.6601 GB, free: 3.082 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001871/0.1627, allocations: 1.762 MB / 0.6619 GB, free: 1.273 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002419/0.163, allocations: 0.9263 MB / 0.6628 GB, free: 328 kB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0004129/0.1634, allocations: 101.2 kB / 0.6629 GB, free: 224 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001526/0.1635, allocations: 55.44 kB / 0.6629 GB, free: 168 kB / 442.7 MB Notification: Performance of SimCode: time 4.81e-07/0.1635, allocations: 0 / 0.6629 GB, free: 168 kB / 442.7 MB Notification: Performance of Templates: time 0.01429/0.1778, allocations: 8.695 MB / 0.6714 GB, free: 7.547 MB / 458.7 MB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.sim & ./BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe 2>&1)