Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.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.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") translateModel(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008782/0.0008782, allocations: 99.86 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.0009181/0.0009181, allocations: 177.3 kB / 15.94 MB, free: 228 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.23/1.23, allocations: 223.2 MB / 239.9 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001819/0.001819, allocations: 254.9 kB / 291.2 MB, free: 1.898 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.782/0.782, allocations: 144.6 MB / 487 MB, free: 7.168 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004857/0.0004859, allocations: 12.19 kB / 0.5683 GB, free: 38.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1437, allocations: 83.08 MB / 0.6494 GB, free: 3.605 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.001688/0.1455, allocations: 1.491 MB / 0.6509 GB, free: 2.105 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007356/0.1462, allocations: 0.5099 MB / 0.6514 GB, free: 1.594 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.773e-05/0.1463, allocations: 0 / 0.6514 GB, free: 1.594 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.977e-05/0.1463, allocations: 11.86 kB / 0.6514 GB, free: 1.582 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000109/0.1465, allocations: 34.06 kB / 0.6514 GB, free: 1.551 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001588/0.1466, allocations: 47.95 kB / 0.6515 GB, free: 1.504 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001885/0.1468, allocations: 119.7 kB / 0.6516 GB, free: 1.387 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.1469, allocations: 38.36 kB / 0.6516 GB, free: 1.352 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.11e-05/0.147, allocations: 40.36 kB / 0.6517 GB, free: 1.312 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.632e-05/0.1471, allocations: 52.22 kB / 0.6517 GB, free: 1.262 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.81e-05/0.1471, allocations: 4.625 kB / 0.6517 GB, free: 1.258 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.496e-05/0.1471, allocations: 4 kB / 0.6517 GB, free: 1.254 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.384e-05/0.1472, allocations: 25.27 kB / 0.6517 GB, free: 1.23 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.874e-05/0.1472, allocations: 49.64 kB / 0.6518 GB, free: 1.176 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 9.682e-05/0.1473, allocations: 84.05 kB / 0.6519 GB, free: 1.094 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.943e-06/0.1473, allocations: 0 / 0.6519 GB, free: 1.094 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1473, allocations: 1.25 kB / 0.6519 GB, free: 1.094 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.449e-06/0.1473, allocations: 0 / 0.6519 GB, free: 1.094 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0005725/0.1479, allocations: 457.5 kB / 0.6523 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.952e-05/0.148, allocations: 8.031 kB / 0.6523 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.166e-05/0.148, allocations: 20.45 kB / 0.6523 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002059/0.1482, allocations: 230.6 kB / 0.6526 GB, free: 316 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.1482, allocations: 12.75 kB / 0.6526 GB, free: 304 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.712e-05/0.1483, allocations: 12 kB / 0.6526 GB, free: 292 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002606/0.1485, allocations: 151.2 kB / 0.6527 GB, free: 124 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.1486, allocations: 0 / 0.6527 GB, free: 124 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.548e-05/0.1486, allocations: 9.25 kB / 0.6527 GB, free: 116 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.1486, allocations: 7.938 kB / 0.6527 GB, free: 108 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002181/0.1488, allocations: 73.67 kB / 0.6528 GB, free: 36 kB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007833/0.1496, allocations: 0.7442 MB / 0.6535 GB, free: 15.23 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001349/0.1498, allocations: 58.67 kB / 0.6536 GB, free: 15.17 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.839e-05/0.1498, allocations: 0 / 0.6536 GB, free: 15.17 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002335/0.15, allocations: 132.6 kB / 0.6537 GB, free: 15.02 MB / 462.1 MB Notification: Performance of pre-optimization done (n=11): time 1.112e-06/0.15, allocations: 0 / 0.6537 GB, free: 15.02 MB / 462.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004353/0.1505, allocations: 189.5 kB / 0.6539 GB, free: 14.83 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.697e-05/0.1505, allocations: 128.5 kB / 0.654 GB, free: 14.67 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.1507, allocations: 204.8 kB / 0.6542 GB, free: 14.46 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.584e-05/0.1507, allocations: 25.7 kB / 0.6542 GB, free: 14.43 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.452e-05/0.1508, allocations: 131.8 kB / 0.6544 GB, free: 14.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.624e-05/0.1508, allocations: 27.61 kB / 0.6544 GB, free: 14.27 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.124e-06/0.1508, allocations: 5.719 kB / 0.6544 GB, free: 14.27 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.45e-05/0.1509, allocations: 334.8 kB / 0.6547 GB, free: 13.93 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.1511, allocations: 45.44 kB / 0.6548 GB, free: 13.89 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001605/0.1512, allocations: 149.4 kB / 0.6549 GB, free: 13.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001375/0.1514, allocations: 68.11 kB / 0.655 GB, free: 13.63 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1514, allocations: 0 / 0.655 GB, free: 13.63 MB / 462.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003547/0.1518, allocations: 213.1 kB / 0.6552 GB, free: 13.41 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.1518, allocations: 8 kB / 0.6552 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.1518, allocations: 4 kB / 0.6552 GB, free: 13.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.1518, allocations: 4.5 kB / 0.6552 GB, free: 13.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.1519, allocations: 43.92 kB / 0.6552 GB, free: 13.36 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.152, allocations: 11.92 kB / 0.6552 GB, free: 13.34 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001354/0.1521, allocations: 31.73 kB / 0.6553 GB, free: 13.31 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.309e-05/0.1521, allocations: 16 kB / 0.6553 GB, free: 13.3 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,sampleTrigger.y,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * 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 8.96e-05/0.1522, allocations: 133.7 kB / 0.6554 GB, free: 13.16 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.784e-05/0.1522, allocations: 19.81 kB / 0.6554 GB, free: 13.14 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.188e-05/0.1523, allocations: 25.39 kB / 0.6555 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.1523, allocations: 0 / 0.6555 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.1523, allocations: 0 / 0.6555 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.1523, allocations: 4 kB / 0.6555 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006639/0.153, allocations: 0.5213 MB / 0.656 GB, free: 12.53 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.153, allocations: 4 kB / 0.656 GB, free: 12.53 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001087/0.1531, allocations: 19.92 kB / 0.656 GB, free: 12.51 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.1531, allocations: 4 kB / 0.656 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.1531, allocations: 4 kB / 0.656 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.1532, allocations: 8 kB / 0.656 GB, free: 12.49 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1532, allocations: 0 / 0.656 GB, free: 12.49 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004596/0.1536, allocations: 413.2 kB / 0.6564 GB, free: 12.05 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.3e-05/0.1537, allocations: 100.8 kB / 0.6565 GB, free: 11.93 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.376e-05/0.1537, allocations: 7.938 kB / 0.6565 GB, free: 11.92 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001615/0.1539, allocations: 19.98 kB / 0.6565 GB, free: 11.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.46e-05/0.1539, allocations: 11.98 kB / 0.6565 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.066e-05/0.154, allocations: 11.98 kB / 0.6565 GB, free: 11.88 MB / 462.1 MB Notification: Performance of sorting global known variables: time 9.279e-05/0.1541, allocations: 136.6 kB / 0.6567 GB, free: 11.75 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1541, allocations: 0 / 0.6567 GB, free: 11.75 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0003064/0.1544, allocations: 28 kB / 0.6567 GB, free: 11.72 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001013/0.1545, allocations: 108.3 kB / 0.6568 GB, free: 11.61 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0002876/0.1548, allocations: 128.9 kB / 0.6569 GB, free: 11.48 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1548, allocations: 0 / 0.6569 GB, free: 11.48 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001355/0.1549, allocations: 51.91 kB / 0.657 GB, free: 11.43 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004069/0.1553, allocations: 68.98 kB / 0.657 GB, free: 11.36 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004982/0.1558, allocations: 394.5 kB / 0.6574 GB, free: 10.94 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002419/0.1561, allocations: 0.7284 MB / 0.6581 GB, free: 10.19 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 6.237e-05/0.1562, allocations: 17.92 kB / 0.6581 GB, free: 10.17 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.719e-05/0.1562, allocations: 19.44 kB / 0.6582 GB, free: 10.15 MB / 462.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1562, allocations: 0 / 0.6582 GB, free: 10.15 MB / 462.1 MB Notification: Performance of Templates: time 0.003807/0.16, allocations: 1.734 MB / 0.6599 GB, free: 8.438 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) Environment - environmentSimulation: