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.0008329/0.0008329, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.0008166/0.0008166, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.158/1.158, allocations: 223.2 MB / 239.9 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001645/0.001645, allocations: 270.8 kB / 291.3 MB, free: 1.922 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7168/0.7168, allocations: 144.6 MB / 487 MB, free: 7.172 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003562/0.0003562, allocations: 15.42 kB / 0.5683 GB, free: 38.27 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1198, allocations: 83.07 MB / 0.6494 GB, free: 3.594 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.003587/0.1235, allocations: 3.399 MB / 0.6527 GB, free: 184 kB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002099/0.1256, allocations: 1.238 MB / 0.6539 GB, free: 14.94 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004408/0.1261, allocations: 23.88 kB / 0.654 GB, free: 14.92 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.1262, allocations: 63.98 kB / 0.654 GB, free: 14.86 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005234/0.1267, allocations: 223.4 kB / 0.6542 GB, free: 14.64 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006205/0.1273, allocations: 312.7 kB / 0.6545 GB, free: 14.34 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006182/0.128, allocations: 0.5822 MB / 0.6551 GB, free: 13.76 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003679/0.1283, allocations: 301.4 kB / 0.6554 GB, free: 13.46 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002206/0.1286, allocations: 239.7 kB / 0.6556 GB, free: 13.22 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002215/0.1288, allocations: 238.6 kB / 0.6558 GB, free: 12.99 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.766e-05/0.1289, allocations: 20.59 kB / 0.6559 GB, free: 12.97 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.723e-05/0.1289, allocations: 24.53 kB / 0.6559 GB, free: 12.95 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 7.533e-05/0.129, allocations: 95.53 kB / 0.656 GB, free: 12.85 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001022/0.1291, allocations: 155.6 kB / 0.6561 GB, free: 12.7 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005528/0.1297, allocations: 0.8066 MB / 0.6569 GB, free: 11.89 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.1297, allocations: 0 / 0.6569 GB, free: 11.89 MB / 462.1 MB Notification: Performance of FrontEnd: time 7.82e-07/0.1297, allocations: 0 / 0.6569 GB, free: 11.89 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.1297, allocations: 0 / 0.6569 GB, free: 11.89 MB / 462.1 MB 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.001365/0.1311, allocations: 0.964 MB / 0.6579 GB, free: 10.87 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.978e-05/0.1311, allocations: 12.03 kB / 0.6579 GB, free: 10.86 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.1312, allocations: 83.56 kB / 0.658 GB, free: 10.78 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007015/0.1319, allocations: 0.5344 MB / 0.6585 GB, free: 10.2 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.781e-05/0.132, allocations: 41.31 kB / 0.6585 GB, free: 10.16 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.135e-05/0.1321, allocations: 64.58 kB / 0.6586 GB, free: 10.1 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009007/0.133, allocations: 0.5993 MB / 0.6592 GB, free: 9.484 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.133, allocations: 0 / 0.6592 GB, free: 9.484 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.787e-05/0.133, allocations: 24.91 kB / 0.6592 GB, free: 9.461 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.1331, allocations: 12 kB / 0.6592 GB, free: 9.449 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008543/0.1339, allocations: 472.8 kB / 0.6596 GB, free: 8.988 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002359/0.1363, allocations: 2.021 MB / 0.6616 GB, free: 6.902 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000792/0.1371, allocations: 458.9 kB / 0.6621 GB, free: 6.449 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.067e-05/0.1371, allocations: 4.438 kB / 0.6621 GB, free: 6.445 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004799/0.1376, allocations: 265.3 kB / 0.6623 GB, free: 6.176 MB / 462.1 MB Notification: Performance of pre-optimization done (n=49): time 3.036e-06/0.1376, allocations: 7.938 kB / 0.6623 GB, free: 6.168 MB / 462.1 MB Notification: Performance of matching and sorting (n=49): time 0.001119/0.1388, allocations: 0.5921 MB / 0.6629 GB, free: 5.574 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.415e-05/0.1388, allocations: 63.8 kB / 0.663 GB, free: 5.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004003/0.1392, allocations: 442 kB / 0.6634 GB, free: 5.059 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.086e-05/0.1392, allocations: 33.64 kB / 0.6634 GB, free: 5.02 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001927/0.1394, allocations: 321 kB / 0.6637 GB, free: 4.703 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.1396, allocations: 169.5 kB / 0.6639 GB, free: 4.535 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.189e-05/0.1396, allocations: 12 kB / 0.6639 GB, free: 4.523 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.1397, allocations: 366.8 kB / 0.6642 GB, free: 4.156 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000337/0.1401, allocations: 173 kB / 0.6644 GB, free: 3.988 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003666/0.1404, allocations: 253.8 kB / 0.6646 GB, free: 3.715 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003711/0.1408, allocations: 227.8 kB / 0.6649 GB, free: 3.488 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.1408, allocations: 0 / 0.6649 GB, free: 3.488 MB / 462.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008823/0.1417, allocations: 0.5663 MB / 0.6654 GB, free: 2.91 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.042e-05/0.1417, allocations: 33.7 kB / 0.6655 GB, free: 2.871 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.1418, allocations: 4 kB / 0.6655 GB, free: 2.867 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.1418, allocations: 4 kB / 0.6655 GB, free: 2.863 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004402/0.1422, allocations: 111.9 kB / 0.6656 GB, free: 2.754 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.1422, allocations: 11.89 kB / 0.6656 GB, free: 2.742 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003017/0.1425, allocations: 71.72 kB / 0.6656 GB, free: 2.672 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.33e-05/0.1426, allocations: 20 kB / 0.6657 GB, free: 2.652 MB / 462.1 MB 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.0002084/0.1428, allocations: 207.6 kB / 0.6659 GB, free: 2.441 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.313e-05/0.1429, allocations: 51.34 kB / 0.6659 GB, free: 2.391 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001015/0.143, allocations: 73.53 kB / 0.666 GB, free: 2.32 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.143, allocations: 4 kB / 0.666 GB, free: 2.316 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.143, allocations: 3.938 kB / 0.666 GB, free: 2.312 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/0.143, allocations: 7.938 kB / 0.666 GB, free: 2.305 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001474/0.1445, allocations: 1.181 MB / 0.6672 GB, free: 1.062 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.113e-06/0.1445, allocations: 0 / 0.6672 GB, free: 1.062 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004294/0.1449, allocations: 95.88 kB / 0.6672 GB, free: 0.9688 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.145, allocations: 4 kB / 0.6672 GB, free: 0.9648 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.742e-05/0.145, allocations: 15.94 kB / 0.6673 GB, free: 0.9492 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-06/0.145, allocations: 7.953 kB / 0.6673 GB, free: 0.9414 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.145, allocations: 0 / 0.6673 GB, free: 0.9414 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.1461, allocations: 0.7758 MB / 0.668 GB, free: 156 kB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000162/0.1463, allocations: 164.3 kB / 0.6682 GB, free: 15.97 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.814e-05/0.1464, allocations: 19.92 kB / 0.6682 GB, free: 15.95 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002758/0.1467, allocations: 31.98 kB / 0.6682 GB, free: 15.92 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.911e-05/0.1468, allocations: 40.33 kB / 0.6683 GB, free: 15.88 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.688e-05/0.1468, allocations: 16 kB / 0.6683 GB, free: 15.86 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002714/0.1471, allocations: 306.9 kB / 0.6686 GB, free: 15.57 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1471, allocations: 0 / 0.6686 GB, free: 15.57 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0003857/0.1475, allocations: 143.4 kB / 0.6687 GB, free: 15.43 MB / 478.1 MB 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.0001148/0.1476, allocations: 115.1 kB / 0.6688 GB, free: 15.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0007845/0.1484, allocations: 489 kB / 0.6693 GB, free: 14.81 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1484, allocations: 0 / 0.6693 GB, free: 14.81 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003652/0.1488, allocations: 226.8 kB / 0.6695 GB, free: 14.59 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005707/0.1493, allocations: 138.8 kB / 0.6696 GB, free: 14.46 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002289/0.1516, allocations: 1.61 MB / 0.6712 GB, free: 12.81 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003707/0.152, allocations: 0.9019 MB / 0.6721 GB, free: 11.88 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00022/0.1522, allocations: 64.58 kB / 0.6722 GB, free: 11.82 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.873e-05/0.1523, allocations: 39.44 kB / 0.6722 GB, free: 11.78 MB / 478.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1524, allocations: 4 kB / 0.6722 GB, free: 11.77 MB / 478.1 MB Notification: Performance of Templates: time 0.008696/0.1611, allocations: 5.343 MB / 0.6774 GB, free: 6.512 MB / 478.1 MB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: