Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.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 Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.456/1.456, allocations: 287.4 MB / 302.6 MB, free: 8.191 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009457/0.0009457, allocations: 179.7 kB / 371.1 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.202/1.202, allocations: 205.4 MB / 0.6298 GB, free: 10.61 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007498/0.0007498, allocations: 101.3 kB / 0.7431 GB, free: 6.59 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003894/0.0003895, allocations: 10.47 kB / 0.8662 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.153, allocations: 115.3 MB / 0.9787 GB, free: 28.11 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.002863/0.1559, allocations: 3.536 MB / 0.9822 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001869/0.1578, allocations: 1.287 MB / 0.9834 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004469/0.1582, allocations: 27.88 kB / 0.9835 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002457/0.1585, allocations: 83.22 kB / 0.9835 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002981/0.1588, allocations: 138.8 kB / 0.9837 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006473/0.1595, allocations: 289.2 kB / 0.9839 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.00051/0.16, allocations: 0.8423 MB / 0.9848 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004135/0.1604, allocations: 426.3 kB / 0.9852 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001681/0.1606, allocations: 222.8 kB / 0.9854 GB, free: 21.23 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001743/0.1608, allocations: 246.6 kB / 0.9856 GB, free: 20.99 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.002e-05/0.1608, allocations: 24 kB / 0.9856 GB, free: 20.96 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.897e-05/0.1609, allocations: 24 kB / 0.9857 GB, free: 20.94 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.93e-05/0.1609, allocations: 99.48 kB / 0.9858 GB, free: 20.84 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.681e-05/0.161, allocations: 153.3 kB / 0.9859 GB, free: 20.69 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004135/0.1614, allocations: 0.8025 MB / 0.9867 GB, free: 19.88 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1615, allocations: 0 / 0.9867 GB, free: 19.88 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.492e-06/0.1615, allocations: 0 / 0.9867 GB, free: 19.88 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.765e-06/0.1615, allocations: 4 kB / 0.9867 GB, free: 19.88 MB / 0.6198 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.00117/0.1626, allocations: 0.9485 MB / 0.9876 GB, free: 18.88 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.1627, allocations: 8.031 kB / 0.9876 GB, free: 18.87 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.891e-05/0.1628, allocations: 102.7 kB / 0.9877 GB, free: 18.76 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.607e-05/0.1629, allocations: 83.91 kB / 0.9878 GB, free: 18.68 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005847/0.1635, allocations: 0.5533 MB / 0.9883 GB, free: 18.09 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.737e-05/0.1635, allocations: 49.67 kB / 0.9884 GB, free: 18.04 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.901e-05/0.1636, allocations: 64.31 kB / 0.9885 GB, free: 17.97 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007942/0.1644, allocations: 0.6154 MB / 0.9891 GB, free: 17.33 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.1644, allocations: 4 kB / 0.9891 GB, free: 17.33 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.827e-05/0.1644, allocations: 20 kB / 0.9891 GB, free: 17.31 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.1645, allocations: 16 kB / 0.9891 GB, free: 17.29 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007756/0.1652, allocations: 465 kB / 0.9895 GB, free: 16.84 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001928/0.1672, allocations: 2.02 MB / 0.9915 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007174/0.1679, allocations: 453.7 kB / 0.9919 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000345/0.1683, allocations: 250 kB / 0.9922 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-05/0.1683, allocations: 4.438 kB / 0.9922 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004285/0.1687, allocations: 269.3 kB / 0.9924 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=49): time 1.743e-06/0.1687, allocations: 0 / 0.9924 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of matching and sorting (n=49): time 0.0009812/0.1697, allocations: 0.5999 MB / 0.993 GB, free: 13.16 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.787e-05/0.1698, allocations: 63.78 kB / 0.9931 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003197/0.1701, allocations: 438 kB / 0.9935 GB, free: 12.65 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.1701, allocations: 33.7 kB / 0.9935 GB, free: 12.61 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001272/0.1703, allocations: 324.3 kB / 0.9939 GB, free: 12.29 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 7.243e-05/0.1703, allocations: 161.7 kB / 0.994 GB, free: 12.13 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.848e-05/0.1704, allocations: 8 kB / 0.994 GB, free: 12.12 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.063e-05/0.1704, allocations: 370.8 kB / 0.9944 GB, free: 11.75 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003089/0.1707, allocations: 169 kB / 0.9945 GB, free: 11.59 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003266/0.1711, allocations: 249.8 kB / 0.9948 GB, free: 11.32 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006247/0.1717, allocations: 472 kB / 0.9952 GB, free: 10.82 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.1717, allocations: 0 / 0.9952 GB, free: 10.82 MB / 0.6198 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007817/0.1725, allocations: 0.5702 MB / 0.9958 GB, free: 10.24 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.1725, allocations: 41.69 kB / 0.9958 GB, free: 10.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.1725, allocations: 0 / 0.9958 GB, free: 10.2 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.1726, allocations: 4 kB / 0.9958 GB, free: 10.19 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004006/0.173, allocations: 115.8 kB / 0.9959 GB, free: 10.08 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.173, allocations: 4 kB / 0.9959 GB, free: 10.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002733/0.1733, allocations: 71.66 kB / 0.996 GB, free: 10 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.829e-05/0.1733, allocations: 20 kB / 0.996 GB, free: 9.984 MB / 0.6198 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 ($whenCondition2,$whenCondition1,conWitRes.trigger.y,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001701/0.1735, allocations: 207 kB / 0.9962 GB, free: 9.773 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.668e-05/0.1735, allocations: 67.2 kB / 0.9963 GB, free: 9.707 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.497e-05/0.1736, allocations: 57.59 kB / 0.9963 GB, free: 9.648 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.1736, allocations: 8 kB / 0.9963 GB, free: 9.641 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.1736, allocations: 0 / 0.9963 GB, free: 9.641 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1737, allocations: 3.984 kB / 0.9963 GB, free: 9.637 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001232/0.1749, allocations: 1.193 MB / 0.9975 GB, free: 8.391 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1749, allocations: 0 / 0.9975 GB, free: 8.391 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004051/0.1753, allocations: 103.8 kB / 0.9976 GB, free: 8.289 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1753, allocations: 0 / 0.9976 GB, free: 8.289 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.596e-05/0.1754, allocations: 12 kB / 0.9976 GB, free: 8.277 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.1754, allocations: 0 / 0.9976 GB, free: 8.277 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1754, allocations: 0 / 0.9976 GB, free: 8.277 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001005/0.1764, allocations: 0.7835 MB / 0.9984 GB, free: 7.477 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.1765, allocations: 172.3 kB / 0.9986 GB, free: 7.289 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.389e-05/0.1766, allocations: 8 kB / 0.9986 GB, free: 7.281 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002609/0.1768, allocations: 36.09 kB / 0.9986 GB, free: 7.246 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.081e-05/0.1769, allocations: 36.38 kB / 0.9986 GB, free: 7.211 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.093e-05/0.1769, allocations: 16 kB / 0.9986 GB, free: 7.195 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002176/0.1772, allocations: 310.9 kB / 0.9989 GB, free: 6.895 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1772, allocations: 0 / 0.9989 GB, free: 6.895 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003094/0.1775, allocations: 139.5 kB / 0.9991 GB, free: 6.758 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00114/0.1786, allocations: 1.328 MB / 1 GB, free: 5.402 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006976/0.1793, allocations: 493.1 kB / 1.001 GB, free: 4.91 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.614e-06/0.1794, allocations: 0 / 1.001 GB, free: 4.91 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003297/0.1797, allocations: 222.9 kB / 1.001 GB, free: 4.695 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005892/0.1803, allocations: 140 kB / 1.001 GB, free: 4.562 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004347/0.1846, allocations: 3.576 MB / 1.005 GB, free: 0.9023 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002418/0.1849, allocations: 0.8941 MB / 1.006 GB, free: 15.98 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0002527/0.1852, allocations: 68.58 kB / 1.006 GB, free: 15.91 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002635/0.1854, allocations: 223.4 kB / 1.006 GB, free: 15.7 MB / 0.6355 GB Notification: Performance of SimCode: time 2.2e-07/0.1854, allocations: 0 / 1.006 GB, free: 15.7 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1352/0.3207, allocations: 10.67 MB / 1.016 GB, free: 5.238 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001747/0.3209, allocations: 188.8 kB / 1.016 GB, free: 5 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.136/2.457, allocations: 0 / 1.016 GB, free: 5 MB / 0.6355 GB (rm -f Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)