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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001612/0.001612, allocations: 102.1 kB / 19.59 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001832/0.001832, allocations: 213.6 kB / 22.88 MB, free: 5.629 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.439/1.439, allocations: 230.5 MB / 256.5 MB, free: 8.062 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002574/0.002574, allocations: 280.9 kB / 313.2 MB, free: 2.855 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.256/1.256, allocations: 180.8 MB / 0.5376 GB, free: 12.91 MB / 382.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset") translateModel(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset") [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002905/0.002905, allocations: 101 kB / 0.7405 GB, free: 27.96 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1628/0.1657, allocations: 95.39 MB / 0.8337 GB, free: 8.016 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.00582/0.1716, allocations: 4.16 MB / 0.8377 GB, free: 3.836 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002802/0.1744, allocations: 1.375 MB / 0.8391 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005036/0.1749, allocations: 31.75 kB / 0.8391 GB, free: 2.422 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004051/0.1753, allocations: 134.7 kB / 0.8392 GB, free: 2.289 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004001/0.1757, allocations: 178.4 kB / 0.8394 GB, free: 2.113 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009726/0.1766, allocations: 419.1 kB / 0.8398 GB, free: 1.707 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001159/0.1778, allocations: 0.9515 MB / 0.8407 GB, free: 0.75 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005581/0.1784, allocations: 314.6 kB / 0.841 GB, free: 428 kB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004992/0.1789, allocations: 346.7 kB / 0.8414 GB, free: 80 kB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004122/0.1793, allocations: 334.4 kB / 0.8417 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.1794, allocations: 92 kB / 0.8418 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001169/0.1795, allocations: 92 kB / 0.8419 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001724/0.1797, allocations: 175.5 kB / 0.842 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003657/0.1801, allocations: 394 kB / 0.8424 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001191/0.1812, allocations: 1.07 MB / 0.8434 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.1813, allocations: 0 / 0.8434 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.693e-06/0.1813, allocations: 0 / 0.8434 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.029e-05/0.1813, allocations: 3.938 kB / 0.8435 GB, free: 13.93 MB / 0.5919 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.002158/0.1834, allocations: 1.08 MB / 0.8445 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.1835, allocations: 9.938 kB / 0.8445 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001456/0.1836, allocations: 88.38 kB / 0.8446 GB, free: 12.71 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001011/0.1846, allocations: 0.5038 MB / 0.8451 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.288e-05/0.1847, allocations: 49.62 kB / 0.8451 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000104/0.1848, allocations: 60.36 kB / 0.8452 GB, free: 12.08 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001201/0.186, allocations: 0.6542 MB / 0.8458 GB, free: 11.39 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.643e-05/0.186, allocations: 0 / 0.8458 GB, free: 11.39 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.969e-05/0.1861, allocations: 31.94 kB / 0.8459 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.085e-05/0.1861, allocations: 15.98 kB / 0.8459 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001085/0.1872, allocations: 453 kB / 0.8463 GB, free: 10.9 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003134/0.1903, allocations: 1.943 MB / 0.8482 GB, free: 8.887 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000989/0.1913, allocations: 421.7 kB / 0.8486 GB, free: 8.465 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004736/0.1918, allocations: 222.1 kB / 0.8488 GB, free: 8.246 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 3.808e-05/0.1918, allocations: 4.438 kB / 0.8488 GB, free: 8.242 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005793/0.1924, allocations: 265.2 kB / 0.8491 GB, free: 7.973 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=49): time 2.365e-06/0.1924, allocations: 4 kB / 0.8491 GB, free: 7.969 MB / 0.5919 GB Notification: Performance of matching and sorting (n=49): time 0.001426/0.1938, allocations: 0.5853 MB / 0.8497 GB, free: 7.375 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.793e-05/0.1939, allocations: 59.84 kB / 0.8497 GB, free: 7.305 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000545/0.1944, allocations: 449.9 kB / 0.8501 GB, free: 6.855 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.511e-05/0.1944, allocations: 37.7 kB / 0.8502 GB, free: 6.812 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002538/0.1947, allocations: 324.9 kB / 0.8505 GB, free: 6.492 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001449/0.1948, allocations: 174.5 kB / 0.8507 GB, free: 6.32 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001577/0.195, allocations: 94.3 kB / 0.8507 GB, free: 6.223 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001775/0.1952, allocations: 366.8 kB / 0.8511 GB, free: 5.855 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004361/0.1956, allocations: 194.9 kB / 0.8513 GB, free: 5.66 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004954/0.1961, allocations: 280.3 kB / 0.8515 GB, free: 5.352 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000888/0.197, allocations: 455 kB / 0.852 GB, free: 4.879 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.197, allocations: 0 / 0.852 GB, free: 4.879 MB / 0.5919 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001127/0.1981, allocations: 0.5905 MB / 0.8526 GB, free: 4.266 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.123e-05/0.1982, allocations: 39.67 kB / 0.8526 GB, free: 4.223 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.1982, allocations: 4 kB / 0.8526 GB, free: 4.219 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.1982, allocations: 4 kB / 0.8526 GB, free: 4.215 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005268/0.1987, allocations: 115.8 kB / 0.8527 GB, free: 4.102 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.1987, allocations: 8 kB / 0.8527 GB, free: 4.094 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003255/0.1991, allocations: 55.64 kB / 0.8528 GB, free: 4.039 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.981e-05/0.1991, allocations: 20 kB / 0.8528 GB, free: 4.02 MB / 0.5919 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 (conWitRes.trigger.y,conNoRes.trigger.y,TSet.T_start,$PRE.TSet.T_start,TSet.count,$PRE.TSet.count,$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.0002704/0.1994, allocations: 210.4 kB / 0.853 GB, free: 3.805 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.356e-05/0.1995, allocations: 63.56 kB / 0.8531 GB, free: 3.742 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001494/0.1996, allocations: 65.58 kB / 0.8531 GB, free: 3.68 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.1996, allocations: 4 kB / 0.8531 GB, free: 3.676 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.1996, allocations: 0 / 0.8531 GB, free: 3.676 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.1996, allocations: 3.984 kB / 0.8531 GB, free: 3.672 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001878/0.2015, allocations: 1.15 MB / 0.8542 GB, free: 2.465 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.2015, allocations: 7.938 kB / 0.8543 GB, free: 2.457 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004977/0.202, allocations: 91.89 kB / 0.8543 GB, free: 2.367 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.857e-06/0.202, allocations: 7.984 kB / 0.8544 GB, free: 2.359 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.239e-05/0.2021, allocations: 8 kB / 0.8544 GB, free: 2.352 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/0.2021, allocations: 0 / 0.8544 GB, free: 2.352 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.2021, allocations: 0 / 0.8544 GB, free: 2.352 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001441/0.2035, allocations: 0.7652 MB / 0.8551 GB, free: 1.578 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001902/0.2037, allocations: 95.58 kB / 0.8552 GB, free: 1.484 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.14e-05/0.2037, allocations: 11.94 kB / 0.8552 GB, free: 1.473 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003028/0.2041, allocations: 23.97 kB / 0.8552 GB, free: 1.449 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.2042, allocations: 44.31 kB / 0.8553 GB, free: 1.406 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.902e-05/0.2042, allocations: 11.98 kB / 0.8553 GB, free: 1.395 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003503/0.2045, allocations: 310.9 kB / 0.8556 GB, free: 1.094 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2045, allocations: 0 / 0.8556 GB, free: 1.094 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0004507/0.205, allocations: 143.6 kB / 0.8557 GB, free: 0.9531 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (conNoRes.conPID.I.y,plaNoRes.cap1.T,plaNoRes.cap.T,conWitRes.conPID.I.y,plaWitRes.cap1.T,plaWitRes.cap.T) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,TSet.count,TSet.T_start,conNoRes.trigger.y) * 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.0001351/0.2051, allocations: 123 kB / 0.8558 GB, free: 0.8281 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009957/0.2061, allocations: 486.3 kB / 0.8563 GB, free: 344 kB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.2061, allocations: 0 / 0.8563 GB, free: 344 kB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004426/0.2066, allocations: 202.4 kB / 0.8565 GB, free: 140 kB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007851/0.2073, allocations: 157.9 kB / 0.8566 GB, free: 15.98 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002706/0.21, allocations: 1.364 MB / 0.858 GB, free: 14.59 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002893/0.2103, allocations: 288.7 kB / 0.8583 GB, free: 14.28 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0002507/0.2106, allocations: 68.58 kB / 0.8583 GB, free: 14.21 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.2107, allocations: 43.42 kB / 0.8584 GB, free: 14.17 MB / 0.6075 GB Notification: Performance of SimCode: time 6.81e-07/0.2107, allocations: 0 / 0.8584 GB, free: 14.17 MB / 0.6075 GB Notification: Performance of Templates: time 0.01259/0.2233, allocations: 6.331 MB / 0.8645 GB, free: 7.93 MB / 0.6075 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.makefile [Timeout 660] (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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.247739440994337] Failed to read output from testmodel.py, exit status != 0: 0.23115645800135098 0.24755442400000002 0.063059882 Calling exit ...