Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.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.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset") translateModel(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001666/0.001666, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00178/0.00178, allocations: 189.7 kB / 16.25 MB, free: 6.637 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.392/1.392, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002626/0.002626, allocations: 295.6 kB / 290.4 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.079/1.079, allocations: 178.6 MB / 0.507 GB, free: 4.746 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004393/0.004393, allocations: 102.7 kB / 0.6059 GB, free: 24.97 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1596/0.164, allocations: 89.15 MB / 0.693 GB, free: 4.742 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.005499/0.1696, allocations: 4.14 MB / 0.697 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002066/0.1717, allocations: 1.28 MB / 0.6983 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002599/0.1719, allocations: 23.88 kB / 0.6983 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002922/0.1722, allocations: 91.22 kB / 0.6984 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003241/0.1726, allocations: 158.8 kB / 0.6985 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000779/0.1733, allocations: 377.7 kB / 0.6989 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009503/0.1743, allocations: 0.9594 MB / 0.6998 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000631/0.1749, allocations: 454.4 kB / 0.7003 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003493/0.1753, allocations: 330.7 kB / 0.7006 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003529/0.1757, allocations: 338.4 kB / 0.7009 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001135/0.1758, allocations: 92 kB / 0.701 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001158/0.1759, allocations: 88 kB / 0.7011 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001563/0.1761, allocations: 179.4 kB / 0.7012 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003497/0.1764, allocations: 394 kB / 0.7016 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009844/0.1774, allocations: 1.036 MB / 0.7026 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1774, allocations: 0 / 0.7026 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.403e-06/0.1774, allocations: 4 kB / 0.7026 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.036e-05/0.1775, allocations: 0 / 0.7026 GB, free: 10.81 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001859/0.1793, allocations: 1.073 MB / 0.7037 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.1794, allocations: 8.031 kB / 0.7037 GB, free: 9.668 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000136/0.1795, allocations: 84 kB / 0.7038 GB, free: 9.586 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008326/0.1803, allocations: 0.5455 MB / 0.7043 GB, free: 9.008 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.024e-05/0.1804, allocations: 53.67 kB / 0.7043 GB, free: 8.957 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.499e-05/0.1805, allocations: 60.36 kB / 0.7044 GB, free: 8.898 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00118/0.1817, allocations: 0.6078 MB / 0.705 GB, free: 8.266 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.27e-05/0.1817, allocations: 3.906 kB / 0.705 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.691e-05/0.1818, allocations: 28 kB / 0.705 GB, free: 8.234 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.555e-05/0.1818, allocations: 16 kB / 0.705 GB, free: 8.219 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.1828, allocations: 457 kB / 0.7055 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002968/0.1858, allocations: 2.008 MB / 0.7074 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009417/0.1868, allocations: 449.5 kB / 0.7079 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000469/0.1873, allocations: 242 kB / 0.7081 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.82e-05/0.1873, allocations: 4.438 kB / 0.7081 GB, free: 5 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005966/0.1879, allocations: 265.2 kB / 0.7084 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 1.814e-06/0.1879, allocations: 0 / 0.7084 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001362/0.1893, allocations: 0.5883 MB / 0.7089 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.01e-05/0.1894, allocations: 59.84 kB / 0.709 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000506/0.1899, allocations: 438.1 kB / 0.7094 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.329e-05/0.1899, allocations: 37.7 kB / 0.7094 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002567/0.1902, allocations: 328.2 kB / 0.7098 GB, free: 3.262 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000148/0.1903, allocations: 165.6 kB / 0.7099 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001573/0.1905, allocations: 94.23 kB / 0.71 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001855/0.1907, allocations: 370.8 kB / 0.7104 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004005/0.1911, allocations: 165 kB / 0.7105 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004627/0.1916, allocations: 253.8 kB / 0.7108 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008515/0.1924, allocations: 452 kB / 0.7112 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1924, allocations: 0 / 0.7112 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001115/0.1936, allocations: 0.5662 MB / 0.7117 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.859e-05/0.1936, allocations: 37.64 kB / 0.7118 GB, free: 1.102 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.1936, allocations: 0 / 0.7118 GB, free: 1.102 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.1936, allocations: 4 kB / 0.7118 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005022/0.1941, allocations: 111.9 kB / 0.7119 GB, free: 0.9883 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.1942, allocations: 7.938 kB / 0.7119 GB, free: 0.9805 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003495/0.1945, allocations: 67.75 kB / 0.712 GB, free: 0.9141 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.91e-05/0.1946, allocations: 19.98 kB / 0.712 GB, free: 0.8945 MB / 0.4981 GB 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 0.0002592/0.1948, allocations: 210.6 kB / 0.7122 GB, free: 0.6797 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.911e-05/0.1949, allocations: 59.28 kB / 0.7122 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001374/0.1951, allocations: 65.58 kB / 0.7123 GB, free: 0.5586 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.1951, allocations: 4 kB / 0.7123 GB, free: 0.5547 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.1951, allocations: 8 kB / 0.7123 GB, free: 0.5469 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.1951, allocations: 0 / 0.7123 GB, free: 0.5469 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001842/0.1969, allocations: 1.174 MB / 0.7135 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.197, allocations: 0 / 0.7135 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004988/0.1975, allocations: 99.81 kB / 0.7135 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/0.1975, allocations: 4 kB / 0.7136 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.423e-05/0.1975, allocations: 15.94 kB / 0.7136 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.1975, allocations: 4 kB / 0.7136 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1975, allocations: 0 / 0.7136 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001426/0.199, allocations: 0.7601 MB / 0.7143 GB, free: 14.42 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001931/0.1992, allocations: 176.3 kB / 0.7145 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.545e-05/0.1992, allocations: 8.125 kB / 0.7145 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003276/0.1996, allocations: 31.97 kB / 0.7145 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.504e-05/0.1997, allocations: 36.39 kB / 0.7146 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-05/0.1997, allocations: 8 kB / 0.7146 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003572/0.2001, allocations: 310.9 kB / 0.7149 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.81e-07/0.2001, allocations: 4 kB / 0.7149 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004359/0.2005, allocations: 143.5 kB / 0.715 GB, free: 13.7 MB / 0.5137 GB 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.0001321/0.2007, allocations: 115.1 kB / 0.7151 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001152/0.2018, allocations: 0.4936 MB / 0.7156 GB, free: 13.06 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2018, allocations: 0 / 0.7156 GB, free: 13.06 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0004443/0.2023, allocations: 218.3 kB / 0.7158 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007586/0.2031, allocations: 152.5 kB / 0.7159 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002804/0.2059, allocations: 1.615 MB / 0.7175 GB, free: 11.07 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005388/0.2064, allocations: 0.886 MB / 0.7184 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002675/0.2067, allocations: 64.59 kB / 0.7184 GB, free: 10.1 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.2068, allocations: 39.44 kB / 0.7185 GB, free: 10.06 MB / 0.5137 GB Notification: Performance of SimCode: time 2.81e-07/0.2068, allocations: 0 / 0.7185 GB, free: 10.06 MB / 0.5137 GB Notification: Performance of Templates: time 0.0118/0.2186, allocations: 5.832 MB / 0.7242 GB, free: 4.309 MB / 0.5137 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)