Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.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.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average") translateModel(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008667/0.0008667, allocations: 100.2 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.0009205/0.0009205, 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.216/1.216, 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.001658/0.001658, allocations: 262.9 kB / 291.2 MB, free: 1.926 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.7481/0.7481, allocations: 144.6 MB / 487 MB, free: 7.145 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003903/0.0003903, allocations: 15.62 kB / 0.5683 GB, free: 38.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1308, allocations: 83.08 MB / 0.6494 GB, free: 3.551 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.00141/0.1323, allocations: 1.233 MB / 0.6506 GB, free: 2.309 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002447/0.1325, allocations: 107.8 kB / 0.6507 GB, free: 2.203 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.258e-05/0.1326, allocations: 0.875 kB / 0.6507 GB, free: 2.203 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000112/0.1327, allocations: 7.938 kB / 0.6507 GB, free: 2.195 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 2.543e-05/0.1327, allocations: 13.83 kB / 0.6508 GB, free: 2.184 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001874/0.1329, allocations: 27.89 kB / 0.6508 GB, free: 2.156 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 7.897e-05/0.133, allocations: 31.97 kB / 0.6508 GB, free: 2.125 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.519e-05/0.1331, allocations: 24.28 kB / 0.6508 GB, free: 2.105 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.699e-05/0.1332, allocations: 19.91 kB / 0.6509 GB, free: 2.086 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.662e-05/0.1332, allocations: 23.91 kB / 0.6509 GB, free: 2.062 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.349e-05/0.1333, allocations: 4 kB / 0.6509 GB, free: 2.059 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.342e-05/0.1333, allocations: 8 kB / 0.6509 GB, free: 2.051 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.68e-05/0.1333, allocations: 11.92 kB / 0.6509 GB, free: 2.039 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.791e-05/0.1334, allocations: 33.7 kB / 0.6509 GB, free: 2 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 7.74e-05/0.1334, allocations: 39.92 kB / 0.651 GB, free: 1.961 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.1335, allocations: 4.531 kB / 0.651 GB, free: 1.957 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1335, allocations: 0 / 0.651 GB, free: 1.957 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.377e-06/0.1335, allocations: 0.6562 kB / 0.651 GB, free: 1.957 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004433/0.1339, allocations: 377.8 kB / 0.6513 GB, free: 1.543 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.997e-05/0.134, allocations: 8.594 kB / 0.6513 GB, free: 1.535 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.02e-05/0.134, allocations: 8.625 kB / 0.6514 GB, free: 1.527 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.1341, allocations: 186.9 kB / 0.6515 GB, free: 1.305 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.867e-06/0.1342, allocations: 5.094 kB / 0.6515 GB, free: 1.301 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.571e-05/0.1342, allocations: 8 kB / 0.6515 GB, free: 1.293 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002546/0.1344, allocations: 95.64 kB / 0.6516 GB, free: 1.195 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.1345, allocations: 2.438 kB / 0.6516 GB, free: 1.195 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.1345, allocations: 4 kB / 0.6516 GB, free: 1.191 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.1345, allocations: 3.938 kB / 0.6516 GB, free: 1.188 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002983/0.1348, allocations: 99.06 kB / 0.6517 GB, free: 1.094 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004748/0.1353, allocations: 348.1 kB / 0.6521 GB, free: 0.707 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001866/0.1355, allocations: 66.16 kB / 0.6521 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.154e-05/0.1355, allocations: 4 kB / 0.6521 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.125e-05/0.1355, allocations: 39.81 kB / 0.6522 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.293e-06/0.1355, allocations: 0 / 0.6522 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005272/0.1361, allocations: 168.5 kB / 0.6523 GB, free: 432 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.713e-05/0.1361, allocations: 51.41 kB / 0.6524 GB, free: 368 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.365e-05/0.1362, allocations: 125.8 kB / 0.6525 GB, free: 232 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.268e-05/0.1362, allocations: 26.48 kB / 0.6525 GB, free: 200 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.426e-05/0.1363, allocations: 89.77 kB / 0.6526 GB, free: 108 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.985e-05/0.1363, allocations: 15.84 kB / 0.6526 GB, free: 92 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.328e-06/0.1363, allocations: 0 / 0.6526 GB, free: 92 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.996e-05/0.1364, allocations: 314.8 kB / 0.6529 GB, free: 15.77 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001472/0.1366, allocations: 46.73 kB / 0.653 GB, free: 15.73 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.1367, allocations: 43.03 kB / 0.653 GB, free: 15.69 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001417/0.1369, allocations: 53.02 kB / 0.6531 GB, free: 15.64 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1369, allocations: 4 kB / 0.6531 GB, free: 15.64 MB / 462.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003124/0.1372, allocations: 121.8 kB / 0.6532 GB, free: 15.51 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.1372, allocations: 11.88 kB / 0.6532 GB, free: 15.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.1372, allocations: 4 kB / 0.6532 GB, free: 15.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.1372, allocations: 0 / 0.6532 GB, free: 15.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.1374, allocations: 23.97 kB / 0.6532 GB, free: 15.47 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.1374, allocations: 0 / 0.6532 GB, free: 15.47 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.742e-05/0.1375, allocations: 23.98 kB / 0.6532 GB, free: 15.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.1375, allocations: 3.984 kB / 0.6533 GB, free: 15.45 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 6.436e-05/0.1376, allocations: 117.8 kB / 0.6534 GB, free: 15.32 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.37e-05/0.1376, allocations: 7.906 kB / 0.6534 GB, free: 15.31 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003649/0.138, allocations: 133.5 kB / 0.6535 GB, free: 15.17 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.138, allocations: 0 / 0.6535 GB, free: 15.17 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.138, allocations: 0 / 0.6535 GB, free: 15.17 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.138, allocations: 0 / 0.6535 GB, free: 15.17 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001532/0.1381, allocations: 185.6 kB / 0.6537 GB, free: 14.94 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1381, allocations: 7.938 kB / 0.6537 GB, free: 14.93 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.211e-05/0.1382, allocations: 19.97 kB / 0.6537 GB, free: 14.91 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1383, allocations: 4 kB / 0.6537 GB, free: 14.91 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.412e-06/0.1383, allocations: 0 / 0.6537 GB, free: 14.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.1383, allocations: 0 / 0.6537 GB, free: 14.91 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1383, allocations: 0 / 0.6537 GB, free: 14.91 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003484/0.1386, allocations: 227.4 kB / 0.6539 GB, free: 14.67 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.875e-05/0.1387, allocations: 84.95 kB / 0.654 GB, free: 14.57 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.372e-05/0.1387, allocations: 0 / 0.654 GB, free: 14.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.1388, allocations: 15.98 kB / 0.654 GB, free: 14.55 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.803e-05/0.1388, allocations: 7.984 kB / 0.654 GB, free: 14.55 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.571e-06/0.1388, allocations: 0 / 0.654 GB, free: 14.55 MB / 462.1 MB Notification: Performance of sorting global known variables: time 4.54e-05/0.1389, allocations: 95.7 kB / 0.6541 GB, free: 14.45 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1389, allocations: 0 / 0.6541 GB, free: 14.45 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002153/0.1391, allocations: 16 kB / 0.6541 GB, free: 14.44 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0001056/0.1392, allocations: 99.19 kB / 0.6542 GB, free: 14.33 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0003317/0.1396, allocations: 95.92 kB / 0.6543 GB, free: 14.24 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1396, allocations: 0 / 0.6543 GB, free: 14.24 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001531/0.1397, allocations: 59.89 kB / 0.6544 GB, free: 14.18 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001724/0.1399, allocations: 8.281 kB / 0.6544 GB, free: 14.17 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002651/0.1402, allocations: 160.8 kB / 0.6545 GB, free: 13.98 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002066/0.1404, allocations: 0.7004 MB / 0.6552 GB, free: 13.26 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 3.624e-05/0.1405, allocations: 7.984 kB / 0.6552 GB, free: 13.25 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.131e-05/0.1405, allocations: 11.44 kB / 0.6552 GB, free: 13.24 MB / 462.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1405, allocations: 0 / 0.6552 GB, free: 13.24 MB / 462.1 MB Notification: Performance of Templates: time 0.002394/0.1429, allocations: 0.6102 MB / 0.6558 GB, free: 12.63 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1) Environment - environmentSimulation: