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.0009007/0.0009007, allocations: 89.89 kB / 15.36 MB, free: 0.7383 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.005707/0.005707, allocations: 171.2 kB / 16.26 MB, free: 6.613 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.302/1.302, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001681/0.001681, allocations: 270.4 kB / 291.7 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.927/0.927, allocations: 169.5 MB / 0.5004 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003888/0.0003888, allocations: 10.81 kB / 0.5986 GB, free: 27.94 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1484/0.1488, allocations: 88.54 MB / 0.6851 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPID): time 0.003635/0.1524, allocations: 3.317 MB / 0.6883 GB, free: 11.76 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002221/0.1547, allocations: 1.281 MB / 0.6896 GB, free: 10.47 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003285/0.155, allocations: 23.88 kB / 0.6896 GB, free: 10.45 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002565/0.1553, allocations: 96.69 kB / 0.6897 GB, free: 10.36 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004328/0.1557, allocations: 141.8 kB / 0.6898 GB, free: 10.22 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001011/0.1568, allocations: 0.5344 MB / 0.6904 GB, free: 9.699 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007851/0.1576, allocations: 0.8959 MB / 0.6912 GB, free: 8.805 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004559/0.158, allocations: 346 kB / 0.6916 GB, free: 8.465 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002914/0.1583, allocations: 274.3 kB / 0.6918 GB, free: 8.195 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002823/0.1586, allocations: 278.1 kB / 0.6921 GB, free: 7.922 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.101e-05/0.1587, allocations: 20 kB / 0.6921 GB, free: 7.902 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.427e-05/0.1587, allocations: 20 kB / 0.6921 GB, free: 7.883 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.631e-05/0.1588, allocations: 115.3 kB / 0.6923 GB, free: 7.77 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002432/0.1591, allocations: 331.5 kB / 0.6926 GB, free: 7.438 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005991/0.1597, allocations: 0.7742 MB / 0.6933 GB, free: 6.66 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.1597, allocations: 0 / 0.6933 GB, free: 6.66 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1597, allocations: 3.938 kB / 0.6933 GB, free: 6.656 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.056e-05/0.1597, allocations: 0 / 0.6933 GB, free: 6.656 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.001708/0.1614, allocations: 1.063 MB / 0.6944 GB, free: 5.539 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.892e-05/0.1615, allocations: 12.03 kB / 0.6944 GB, free: 5.527 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.1616, allocations: 95.81 kB / 0.6945 GB, free: 5.434 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008363/0.1625, allocations: 0.5909 MB / 0.695 GB, free: 4.797 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001126/0.1626, allocations: 105 kB / 0.6951 GB, free: 4.68 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.653e-05/0.1627, allocations: 52.38 kB / 0.6952 GB, free: 4.629 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.1637, allocations: 0.6236 MB / 0.6958 GB, free: 3.965 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.1638, allocations: 0 / 0.6958 GB, free: 3.965 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.045e-05/0.1638, allocations: 20 kB / 0.6958 GB, free: 3.945 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.1638, allocations: 12 kB / 0.6958 GB, free: 3.934 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000981/0.1648, allocations: 447.6 kB / 0.6963 GB, free: 3.496 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002534/0.1674, allocations: 2.125 MB / 0.6983 GB, free: 1.289 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001195/0.1686, allocations: 0.5243 MB / 0.6988 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000463/0.169, allocations: 232.8 kB / 0.6991 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.267e-05/0.1691, allocations: 7.984 kB / 0.6991 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006398/0.1697, allocations: 294.1 kB / 0.6994 GB, free: 220 kB / 494.1 MB Notification: Performance of pre-optimization done (n=45): time 1.904e-06/0.1698, allocations: 4 kB / 0.6994 GB, free: 216 kB / 494.1 MB Notification: Performance of matching and sorting (n=45): time 0.001438/0.1712, allocations: 0.6372 MB / 0.7 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.682e-05/0.1713, allocations: 88.86 kB / 0.7001 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006465/0.1719, allocations: 0.6061 MB / 0.7007 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.548e-05/0.172, allocations: 37.69 kB / 0.7007 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002491/0.1722, allocations: 352.8 kB / 0.701 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/0.1724, allocations: 161.7 kB / 0.7012 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.627e-05/0.1724, allocations: 49.7 kB / 0.7012 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.1725, allocations: 326 kB / 0.7015 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000454/0.173, allocations: 189 kB / 0.7017 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005047/0.1735, allocations: 289.3 kB / 0.702 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009423/0.1745, allocations: 497.9 kB / 0.7025 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.1745, allocations: 3.938 kB / 0.7025 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001185/0.1757, allocations: 0.618 MB / 0.7031 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001062/0.1758, allocations: 191.1 kB / 0.7033 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.1758, allocations: 4 kB / 0.7033 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.1758, allocations: 4 kB / 0.7033 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004788/0.1763, allocations: 111.8 kB / 0.7034 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.1763, allocations: 15.94 kB / 0.7034 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003741/0.1767, allocations: 67.41 kB / 0.7035 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.413e-05/0.1767, allocations: 20 kB / 0.7035 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.715e-06/0.1768, allocations: 11.88 kB / 0.7035 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009924/0.1778, allocations: 0.5037 MB / 0.704 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1778, allocations: 4 kB / 0.704 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.17e-06/0.1778, allocations: 4.312 kB / 0.704 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004321/0.1782, allocations: 111.8 kB / 0.7041 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.1782, allocations: 4 kB / 0.7041 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000339/0.1786, allocations: 63.45 kB / 0.7042 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.806e-05/0.1786, allocations: 19.98 kB / 0.7042 GB, free: 11.08 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.0002496/0.1789, allocations: 271.5 kB / 0.7044 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.497e-05/0.179, allocations: 75.09 kB / 0.7045 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001581/0.1791, allocations: 79.22 kB / 0.7046 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.1791, allocations: 4 kB / 0.7046 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.1792, allocations: 4 kB / 0.7046 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.1792, allocations: 3.984 kB / 0.7046 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006199/0.1798, allocations: 0.6258 MB / 0.7052 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/0.1798, allocations: 3.938 kB / 0.7052 GB, free: 9.961 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000465/0.1803, allocations: 95.81 kB / 0.7053 GB, free: 9.867 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.63e-06/0.1803, allocations: 4 kB / 0.7053 GB, free: 9.863 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.698e-05/0.1803, allocations: 4 kB / 0.7053 GB, free: 9.859 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.1803, allocations: 4 kB / 0.7053 GB, free: 9.855 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1803, allocations: 0 / 0.7053 GB, free: 9.855 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001491/0.1818, allocations: 0.7524 MB / 0.7061 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000203/0.182, allocations: 200 kB / 0.7062 GB, free: 8.871 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.072e-05/0.1821, allocations: 12 kB / 0.7063 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004187/0.1825, allocations: 43.97 kB / 0.7063 GB, free: 8.816 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.419e-05/0.1826, allocations: 27.95 kB / 0.7063 GB, free: 8.789 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-05/0.1827, allocations: 19.98 kB / 0.7063 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004525/0.1831, allocations: 435 kB / 0.7068 GB, free: 8.352 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1831, allocations: 0 / 0.7068 GB, free: 8.352 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005666/0.1837, allocations: 211.3 kB / 0.707 GB, free: 8.145 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.0001302/0.1839, allocations: 119.1 kB / 0.7071 GB, free: 8.02 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001553/0.1854, allocations: 0.8126 MB / 0.7079 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.1854, allocations: 0 / 0.7079 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004721/0.1859, allocations: 227.7 kB / 0.7081 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008842/0.1868, allocations: 199.9 kB / 0.7083 GB, free: 6.766 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002018/0.1888, allocations: 1.47 MB / 0.7097 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004473/0.1893, allocations: 0.9183 MB / 0.7106 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003459/0.1896, allocations: 85.14 kB / 0.7107 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001441/0.1898, allocations: 47.42 kB / 0.7107 GB, free: 4.184 MB / 0.4981 GB Notification: Performance of SimCode: time 3.4e-07/0.1898, allocations: 4 kB / 0.7107 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of Templates: time 0.01241/0.2022, allocations: 7.131 MB / 0.7177 GB, free: 13.14 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)