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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001464/0.001471, 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.001656/0.001656, 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.512/1.512, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00175/0.00175, allocations: 255.1 kB / 291.2 MB, free: 1.895 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 1.005/1.005, allocations: 144.6 MB / 487 MB, free: 7.184 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004185/0.0004184, allocations: 17.5 kB / 0.5684 GB, free: 38.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1421, allocations: 83.09 MB / 0.6495 GB, free: 3.512 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.001558/0.1437, allocations: 1.228 MB / 0.6507 GB, free: 2.273 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002619/0.144, allocations: 111.7 kB / 0.6508 GB, free: 2.164 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.83e-05/0.144, allocations: 1.812 kB / 0.6508 GB, free: 2.164 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.1442, allocations: 11.92 kB / 0.6509 GB, free: 2.152 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 1.997e-05/0.1442, allocations: 3.984 kB / 0.6509 GB, free: 2.148 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001643/0.1444, allocations: 23.92 kB / 0.6509 GB, free: 2.125 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.707e-05/0.1444, allocations: 36.5 kB / 0.6509 GB, free: 2.09 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.601e-05/0.1445, allocations: 30.31 kB / 0.6509 GB, free: 2.062 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.445e-05/0.1446, allocations: 15.98 kB / 0.651 GB, free: 2.047 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.519e-05/0.1447, allocations: 23.86 kB / 0.651 GB, free: 2.023 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.171e-05/0.1447, allocations: 0.875 kB / 0.651 GB, free: 2.023 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.313e-05/0.1447, allocations: 7.984 kB / 0.651 GB, free: 2.016 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.068e-05/0.1448, allocations: 16.53 kB / 0.651 GB, free: 2 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.913e-05/0.1448, allocations: 33.64 kB / 0.651 GB, free: 1.961 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 7.083e-05/0.1449, allocations: 32.53 kB / 0.6511 GB, free: 1.93 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.1449, allocations: 1.5 kB / 0.6511 GB, free: 1.93 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1449, allocations: 0 / 0.6511 GB, free: 1.93 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.567e-06/0.1449, allocations: 0 / 0.6511 GB, free: 1.93 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.0004732/0.1454, allocations: 381.5 kB / 0.6514 GB, free: 1.512 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.1454, allocations: 9.062 kB / 0.6514 GB, free: 1.504 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.558e-05/0.1455, allocations: 42.5 kB / 0.6515 GB, free: 1.453 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.282e-05/0.1455, allocations: 7.906 kB / 0.6515 GB, free: 1.445 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001796/0.1457, allocations: 180.5 kB / 0.6517 GB, free: 1.23 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.978e-06/0.1457, allocations: 7.938 kB / 0.6517 GB, free: 1.223 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.305e-05/0.1457, allocations: 7.984 kB / 0.6517 GB, free: 1.215 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00026/0.146, allocations: 92.17 kB / 0.6518 GB, free: 1.121 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.146, allocations: 7.938 kB / 0.6518 GB, free: 1.113 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.146, allocations: 0.5938 kB / 0.6518 GB, free: 1.113 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-06/0.146, allocations: 0.5312 kB / 0.6518 GB, free: 1.113 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003453/0.1464, allocations: 100.6 kB / 0.6519 GB, free: 1.02 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005069/0.1469, allocations: 345.1 kB / 0.6522 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002042/0.1471, allocations: 72.69 kB / 0.6523 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/0.1471, allocations: 0 / 0.6523 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.1472, allocations: 43.38 kB / 0.6523 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 8.71e-07/0.1472, allocations: 0 / 0.6523 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005334/0.1477, allocations: 164.8 kB / 0.6525 GB, free: 356 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.116e-05/0.1477, allocations: 55.36 kB / 0.6525 GB, free: 288 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.164e-05/0.1478, allocations: 125.8 kB / 0.6526 GB, free: 152 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.1479, allocations: 26.8 kB / 0.6527 GB, free: 120 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.206e-05/0.1479, allocations: 92.03 kB / 0.6528 GB, free: 24 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.761e-05/0.1479, allocations: 15.84 kB / 0.6528 GB, free: 8 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.751e-06/0.148, allocations: 4 kB / 0.6528 GB, free: 4 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.1481, allocations: 314.8 kB / 0.6531 GB, free: 15.69 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001875/0.1483, allocations: 39.97 kB / 0.6531 GB, free: 15.65 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.1485, allocations: 51.94 kB / 0.6532 GB, free: 15.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001435/0.1486, allocations: 47.91 kB / 0.6532 GB, free: 15.55 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.1486, allocations: 7.938 kB / 0.6532 GB, free: 15.54 MB / 462.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003698/0.149, allocations: 129.5 kB / 0.6533 GB, free: 15.41 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.149, allocations: 4 kB / 0.6533 GB, free: 15.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.149, allocations: 0 / 0.6533 GB, free: 15.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.317e-06/0.149, allocations: 4 kB / 0.6533 GB, free: 15.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001185/0.1492, allocations: 23.97 kB / 0.6534 GB, free: 15.38 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.1492, allocations: 4 kB / 0.6534 GB, free: 15.38 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.116e-05/0.1493, allocations: 23.94 kB / 0.6534 GB, free: 15.35 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.692e-05/0.1493, allocations: 0 / 0.6534 GB, free: 15.35 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 7.11e-05/0.1494, allocations: 113.8 kB / 0.6535 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.326e-05/0.1494, allocations: 3.906 kB / 0.6535 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003633/0.1498, allocations: 141.4 kB / 0.6536 GB, free: 15.08 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.1498, allocations: 0 / 0.6536 GB, free: 15.08 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1498, allocations: 0 / 0.6536 GB, free: 15.08 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.1498, allocations: 0 / 0.6536 GB, free: 15.08 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001613/0.15, allocations: 185.6 kB / 0.6538 GB, free: 14.85 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.15, allocations: 4 kB / 0.6538 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.917e-05/0.1501, allocations: 15.98 kB / 0.6538 GB, free: 14.83 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.1501, allocations: 4 kB / 0.6538 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.652e-06/0.1501, allocations: 0 / 0.6538 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.1501, allocations: 3.984 kB / 0.6538 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1501, allocations: 3.938 kB / 0.6539 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000353/0.1504, allocations: 227.4 kB / 0.6541 GB, free: 14.58 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.809e-05/0.1505, allocations: 85 kB / 0.6541 GB, free: 14.48 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.1505, allocations: 0 / 0.6541 GB, free: 14.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.1506, allocations: 15.98 kB / 0.6542 GB, free: 14.46 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.483e-05/0.1507, allocations: 4 kB / 0.6542 GB, free: 14.46 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-06/0.1507, allocations: 0 / 0.6542 GB, free: 14.46 MB / 462.1 MB Notification: Performance of sorting global known variables: time 4.295e-05/0.1507, allocations: 95.27 kB / 0.6543 GB, free: 14.36 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1507, allocations: 0 / 0.6543 GB, free: 14.36 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002132/0.1509, allocations: 12 kB / 0.6543 GB, free: 14.35 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.000618/0.1516, allocations: 0.7592 MB / 0.655 GB, free: 13.57 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0003255/0.1519, allocations: 103.8 kB / 0.6551 GB, free: 13.46 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.1519, allocations: 0 / 0.6551 GB, free: 13.46 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001551/0.1521, allocations: 56.33 kB / 0.6552 GB, free: 13.41 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001729/0.1523, allocations: 4 kB / 0.6552 GB, free: 13.41 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001021/0.1533, allocations: 0.5653 MB / 0.6557 GB, free: 12.79 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002471/0.1536, allocations: 0.7005 MB / 0.6564 GB, free: 12.06 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 3.875e-05/0.1536, allocations: 8.078 kB / 0.6564 GB, free: 12.05 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.339e-05/0.1536, allocations: 11.44 kB / 0.6564 GB, free: 12.04 MB / 462.1 MB Notification: Performance of SimCode: time 2e-07/0.1536, allocations: 0 / 0.6564 GB, free: 12.04 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2108/0.3645, allocations: 1.471 MB / 0.6579 GB, free: 10.7 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002658/0.3648, allocations: 178.5 kB / 0.658 GB, free: 10.46 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.883/2.248, allocations: 2.25 kB / 0.658 GB, free: 10.46 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1) Environment - environmentSimulation: