Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="IBPSA_latest_IBPSA_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.001367/0.001367, allocations: 97.28 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001691/0.001691, allocations: 180 kB / 16.57 MB, free: 6.859 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.115/2.115, allocations: 223.2 MB / 240.5 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7023/0.7023, allocations: 113.7 MB / 405.3 MB, free: 4.699 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002905/0.0002906, allocations: 8 kB / 493 MB, free: 8.621 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1194, allocations: 77.11 MB / 0.5567 GB, free: 11.71 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Average): time 0.0012/0.1207, allocations: 1.231 MB / 0.5579 GB, free: 10.48 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002094/0.1209, allocations: 112.5 kB / 0.558 GB, free: 10.36 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.962e-05/0.1209, allocations: 0 / 0.558 GB, free: 10.36 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 8.39e-05/0.121, allocations: 7.922 kB / 0.558 GB, free: 10.36 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 1.946e-05/0.1211, allocations: 11.98 kB / 0.558 GB, free: 10.34 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001375/0.1212, allocations: 23.91 kB / 0.5581 GB, free: 10.32 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 5.837e-05/0.1213, allocations: 31.95 kB / 0.5581 GB, free: 10.29 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.583e-05/0.1213, allocations: 19.98 kB / 0.5581 GB, free: 10.27 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.234e-05/0.1214, allocations: 19.92 kB / 0.5581 GB, free: 10.25 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.958e-05/0.1214, allocations: 23.91 kB / 0.5582 GB, free: 10.23 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.162e-05/0.1215, allocations: 4 kB / 0.5582 GB, free: 10.22 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.915e-05/0.1215, allocations: 7.984 kB / 0.5582 GB, free: 10.21 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.407e-05/0.1215, allocations: 15.92 kB / 0.5582 GB, free: 10.2 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.31e-05/0.1216, allocations: 29.7 kB / 0.5582 GB, free: 10.16 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 6.413e-05/0.1216, allocations: 35.88 kB / 0.5582 GB, free: 10.13 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.1216, allocations: 4 kB / 0.5583 GB, free: 10.12 MB / 430.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1217, allocations: 7.938 kB / 0.5583 GB, free: 10.12 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.775e-06/0.1217, allocations: 0 / 0.5583 GB, free: 10.12 MB / 430.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.000382/0.122, allocations: 377.1 kB / 0.5586 GB, free: 9.703 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.867e-05/0.1221, allocations: 12.03 kB / 0.5586 GB, free: 9.691 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.614e-05/0.1221, allocations: 30.56 kB / 0.5587 GB, free: 9.652 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.113e-05/0.1221, allocations: 15.98 kB / 0.5587 GB, free: 9.637 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.1223, allocations: 178.9 kB / 0.5588 GB, free: 9.422 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.694e-06/0.1223, allocations: 4 kB / 0.5588 GB, free: 9.418 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.258e-05/0.1223, allocations: 7.953 kB / 0.5589 GB, free: 9.41 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002391/0.1225, allocations: 97.58 kB / 0.5589 GB, free: 9.309 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.22e-06/0.1226, allocations: 4 kB / 0.559 GB, free: 9.305 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-06/0.1226, allocations: 0 / 0.559 GB, free: 9.305 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.276e-06/0.1226, allocations: 0 / 0.559 GB, free: 9.305 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002935/0.1229, allocations: 107.9 kB / 0.5591 GB, free: 9.199 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004313/0.1233, allocations: 340.6 kB / 0.5594 GB, free: 8.816 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001789/0.1235, allocations: 66.53 kB / 0.5594 GB, free: 8.742 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.1235, allocations: 8 kB / 0.5595 GB, free: 8.734 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.626e-05/0.1236, allocations: 30.56 kB / 0.5595 GB, free: 8.695 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.1236, allocations: 3.938 kB / 0.5595 GB, free: 8.691 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004909/0.1241, allocations: 169.7 kB / 0.5596 GB, free: 8.52 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.431e-05/0.1241, allocations: 59.34 kB / 0.5597 GB, free: 8.449 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.457e-05/0.1242, allocations: 119.7 kB / 0.5598 GB, free: 8.324 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.012e-05/0.1242, allocations: 25.7 kB / 0.5598 GB, free: 8.293 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.624e-05/0.1242, allocations: 99.98 kB / 0.5599 GB, free: 8.191 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.346e-05/0.1242, allocations: 7.891 kB / 0.5599 GB, free: 8.184 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.306e-06/0.1243, allocations: 0 / 0.5599 GB, free: 8.184 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.744e-05/0.1243, allocations: 322.8 kB / 0.5603 GB, free: 7.859 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.1245, allocations: 47.95 kB / 0.5603 GB, free: 7.812 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.1246, allocations: 39.97 kB / 0.5603 GB, free: 7.773 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001346/0.1248, allocations: 47.95 kB / 0.5604 GB, free: 7.727 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.1248, allocations: 0 / 0.5604 GB, free: 7.727 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003057/0.1251, allocations: 125.8 kB / 0.5605 GB, free: 7.598 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.09e-05/0.1251, allocations: 8 kB / 0.5605 GB, free: 7.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-06/0.1251, allocations: 3.984 kB / 0.5605 GB, free: 7.586 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.556e-06/0.1251, allocations: 4.031 kB / 0.5605 GB, free: 7.582 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.1252, allocations: 23.98 kB / 0.5605 GB, free: 7.559 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.1252, allocations: 3.984 kB / 0.5605 GB, free: 7.555 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.428e-05/0.1253, allocations: 19.98 kB / 0.5606 GB, free: 7.535 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.253e-05/0.1253, allocations: 0 / 0.5606 GB, free: 7.535 MB / 430.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.225e-05/0.1254, allocations: 117.8 kB / 0.5607 GB, free: 7.41 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.233e-05/0.1254, allocations: 8 kB / 0.5607 GB, free: 7.402 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003405/0.1258, allocations: 137.4 kB / 0.5608 GB, free: 7.258 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.1258, allocations: 0 / 0.5608 GB, free: 7.258 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.1258, allocations: 7.938 kB / 0.5608 GB, free: 7.25 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1258, allocations: 0 / 0.5608 GB, free: 7.25 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001384/0.126, allocations: 177.6 kB / 0.561 GB, free: 7.027 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.126, allocations: 0 / 0.561 GB, free: 7.027 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.216e-05/0.1261, allocations: 23.97 kB / 0.561 GB, free: 7.004 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.1261, allocations: 4 kB / 0.561 GB, free: 7 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.1261, allocations: 0 / 0.561 GB, free: 7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.1261, allocations: 7.938 kB / 0.561 GB, free: 6.992 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1261, allocations: 0 / 0.561 GB, free: 6.992 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003323/0.1264, allocations: 223.4 kB / 0.5612 GB, free: 6.758 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.82e-05/0.1265, allocations: 81.02 kB / 0.5613 GB, free: 6.66 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.172e-05/0.1265, allocations: 4 kB / 0.5613 GB, free: 6.656 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.1266, allocations: 23.98 kB / 0.5613 GB, free: 6.633 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.835e-05/0.1266, allocations: 3.984 kB / 0.5613 GB, free: 6.629 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.471e-06/0.1266, allocations: 0 / 0.5613 GB, free: 6.629 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.859e-05/0.1267, allocations: 95.09 kB / 0.5614 GB, free: 6.539 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1267, allocations: 7.938 kB / 0.5614 GB, free: 6.531 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002043/0.1269, allocations: 15.94 kB / 0.5615 GB, free: 6.516 MB / 430.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.0005439/0.1274, allocations: 0.7637 MB / 0.5622 GB, free: 5.727 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003033/0.1278, allocations: 95.92 kB / 0.5623 GB, free: 5.633 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.112e-06/0.1278, allocations: 0 / 0.5623 GB, free: 5.633 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001474/0.1279, allocations: 55.89 kB / 0.5624 GB, free: 5.578 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001521/0.1281, allocations: 4 kB / 0.5624 GB, free: 5.574 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008985/0.129, allocations: 0.5615 MB / 0.5629 GB, free: 4.965 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000172/0.1292, allocations: 0.7004 MB / 0.5636 GB, free: 4.238 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.222e-05/0.1292, allocations: 4 kB / 0.5636 GB, free: 4.234 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.238e-05/0.1292, allocations: 19.42 kB / 0.5636 GB, free: 4.215 MB / 430.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1292, allocations: 0 / 0.5636 GB, free: 4.215 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4547/0.584, allocations: 1.454 MB / 0.565 GB, free: 2.883 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003104/0.5844, allocations: 174.2 kB / 0.5652 GB, free: 2.637 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.843/3.428, allocations: 3.938 kB / 0.5652 GB, free: 2.633 MB / 430.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_Average.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Average.pipe 2>&1) Environment - environmentSimulation: