Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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: translateModel(BuildingSystems.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID") translateModel(BuildingSystems.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001057/0.001057, allocations: 194.3 kB / 16.14 MB, free: 6.707 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.269/1.269, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002055/0.002055, allocations: 278.9 kB / 290.2 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9256/0.9256, allocations: 169.2 MB / 0.4977 GB, free: 14.18 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001637/0.001637, allocations: 89.69 kB / 0.5945 GB, free: 28.33 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.133, allocations: 86.98 MB / 0.6794 GB, free: 1.219 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPID): time 0.004589/0.1376, allocations: 3.731 MB / 0.6831 GB, free: 13.48 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00197/0.1396, allocations: 1.29 MB / 0.6843 GB, free: 12.19 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002506/0.1398, allocations: 23.88 kB / 0.6843 GB, free: 12.17 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002768/0.1401, allocations: 91.11 kB / 0.6844 GB, free: 12.08 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004088/0.1406, allocations: 146.6 kB / 0.6846 GB, free: 11.94 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009556/0.1415, allocations: 0.5366 MB / 0.6851 GB, free: 11.41 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007689/0.1423, allocations: 0.8978 MB / 0.686 GB, free: 10.52 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000466/0.1428, allocations: 345.8 kB / 0.6863 GB, free: 10.16 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003362/0.1431, allocations: 322.3 kB / 0.6866 GB, free: 9.848 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000312/0.1434, allocations: 326.1 kB / 0.6869 GB, free: 9.527 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.333e-05/0.1435, allocations: 39.94 kB / 0.687 GB, free: 9.488 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.399e-05/0.1436, allocations: 36 kB / 0.687 GB, free: 9.453 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000123/0.1438, allocations: 143.2 kB / 0.6871 GB, free: 9.312 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002722/0.144, allocations: 341.7 kB / 0.6875 GB, free: 8.977 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006396/0.1447, allocations: 0.8057 MB / 0.6882 GB, free: 8.168 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1447, allocations: 0 / 0.6882 GB, free: 8.168 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.91e-07/0.1447, allocations: 0 / 0.6882 GB, free: 8.168 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.1447, allocations: 0 / 0.6882 GB, free: 8.168 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001944/0.1467, allocations: 1.189 MB / 0.6894 GB, free: 6.926 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.1467, allocations: 12.03 kB / 0.6894 GB, free: 6.914 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001422/0.1469, allocations: 91.81 kB / 0.6895 GB, free: 6.824 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008465/0.1477, allocations: 0.5909 MB / 0.6901 GB, free: 6.188 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.801e-05/0.1478, allocations: 101 kB / 0.6902 GB, free: 6.074 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.025e-05/0.1479, allocations: 52.31 kB / 0.6902 GB, free: 6.023 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.149, allocations: 0.608 MB / 0.6908 GB, free: 5.375 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.149, allocations: 4 kB / 0.6908 GB, free: 5.371 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.192e-05/0.1491, allocations: 23.98 kB / 0.6908 GB, free: 5.348 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.2e-05/0.1491, allocations: 12 kB / 0.6909 GB, free: 5.336 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009553/0.15, allocations: 423.7 kB / 0.6913 GB, free: 4.922 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002575/0.1526, allocations: 2.118 MB / 0.6933 GB, free: 2.723 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.1538, allocations: 0.4923 MB / 0.6938 GB, free: 2.219 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004487/0.1543, allocations: 220.8 kB / 0.694 GB, free: 2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.693e-05/0.1543, allocations: 4 kB / 0.694 GB, free: 1.996 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006496/0.155, allocations: 282.1 kB / 0.6943 GB, free: 1.707 MB / 494.1 MB Notification: Performance of pre-optimization done (n=45): time 1.733e-06/0.155, allocations: 0 / 0.6943 GB, free: 1.707 MB / 494.1 MB Notification: Performance of matching and sorting (n=45): time 0.001401/0.1564, allocations: 0.6099 MB / 0.6949 GB, free: 1.09 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.761e-05/0.1564, allocations: 96.83 kB / 0.695 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006388/0.1571, allocations: 0.61 MB / 0.6956 GB, free: 364 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.122e-05/0.1571, allocations: 37.7 kB / 0.6956 GB, free: 320 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002627/0.1574, allocations: 356.9 kB / 0.696 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/0.1575, allocations: 149.7 kB / 0.6961 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001415/0.1577, allocations: 98.23 kB / 0.6962 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001096/0.1578, allocations: 322 kB / 0.6965 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004492/0.1582, allocations: 191 kB / 0.6967 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004964/0.1588, allocations: 277.3 kB / 0.6969 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008839/0.1596, allocations: 473.9 kB / 0.6974 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1597, allocations: 3.938 kB / 0.6974 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001156/0.1608, allocations: 0.6021 MB / 0.698 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.36e-05/0.1609, allocations: 34.02 kB / 0.698 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.1609, allocations: 7.938 kB / 0.698 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.1609, allocations: 4 kB / 0.698 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004741/0.1614, allocations: 107.8 kB / 0.6981 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.1614, allocations: 11.94 kB / 0.6981 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003739/0.1618, allocations: 63.41 kB / 0.6982 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.643e-05/0.1618, allocations: 20 kB / 0.6982 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005388/0.1624, allocations: 313.8 kB / 0.6985 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004423/0.1628, allocations: 264.2 kB / 0.6988 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008114/0.1636, allocations: 458 kB / 0.6992 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.206e-06/0.1637, allocations: 4 kB / 0.6992 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001071/0.1647, allocations: 0.5786 MB / 0.6998 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.1648, allocations: 33.7 kB / 0.6998 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.936e-06/0.1648, allocations: 0 / 0.6998 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.12e-06/0.1648, allocations: 4 kB / 0.6998 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004445/0.1652, allocations: 112.1 kB / 0.6999 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.1652, allocations: 4 kB / 0.6999 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003488/0.1656, allocations: 55.64 kB / 0.7 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.197e-05/0.1656, allocations: 16 kB / 0.7 GB, free: 11.61 MB / 0.4981 GB 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.0001469/0.1658, allocations: 220 kB / 0.7002 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.114e-05/0.1659, allocations: 75.06 kB / 0.7003 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001485/0.166, allocations: 83.22 kB / 0.7004 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.1661, allocations: 7.984 kB / 0.7004 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1661, allocations: 0 / 0.7004 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.1661, allocations: 0 / 0.7004 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006198/0.1667, allocations: 0.6257 MB / 0.701 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1667, allocations: 0 / 0.701 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004562/0.1672, allocations: 79.89 kB / 0.7011 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.1672, allocations: 0 / 0.7011 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.369e-05/0.1672, allocations: 12 kB / 0.7011 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.1672, allocations: 0 / 0.7011 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.1672, allocations: 11.98 kB / 0.7011 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001451/0.1687, allocations: 0.7325 MB / 0.7018 GB, free: 9.695 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002024/0.1689, allocations: 192 kB / 0.702 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.667e-05/0.169, allocations: 11.98 kB / 0.702 GB, free: 9.477 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003871/0.1694, allocations: 31.97 kB / 0.702 GB, free: 9.445 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.56e-05/0.1695, allocations: 31.95 kB / 0.7021 GB, free: 9.414 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.631e-05/0.1695, allocations: 19.92 kB / 0.7021 GB, free: 9.395 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004572/0.17, allocations: 431 kB / 0.7025 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.17, allocations: 4 kB / 0.7025 GB, free: 8.977 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005488/0.1705, allocations: 215.4 kB / 0.7027 GB, free: 8.766 MB / 0.4981 GB 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.0001282/0.1707, allocations: 115.1 kB / 0.7028 GB, free: 8.645 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001461/0.1721, allocations: 0.7848 MB / 0.7036 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1722, allocations: 0 / 0.7036 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000447/0.1726, allocations: 212.5 kB / 0.7038 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008113/0.1734, allocations: 183.4 kB / 0.7039 GB, free: 7.453 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001991/0.1754, allocations: 1.439 MB / 0.7053 GB, free: 5.98 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004211/0.1759, allocations: 0.9105 MB / 0.7062 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003821/0.1763, allocations: 101.2 kB / 0.7063 GB, free: 4.945 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001442/0.1764, allocations: 47.44 kB / 0.7064 GB, free: 4.898 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1764, allocations: 0 / 0.7064 GB, free: 4.898 MB / 0.4981 GB Notification: Performance of Templates: time 0.01206/0.1885, allocations: 7.198 MB / 0.7134 GB, free: 13.79 MB / 0.5137 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe 2>&1)