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.001353/0.001353, allocations: 103.9 kB / 15.99 MB, free: 6.348 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.001212/0.001212, allocations: 192.2 kB / 16.91 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7093/0.7093, allocations: 115.3 MB / 406.1 MB, free: 6.32 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 63.91 kB / 493.2 MB, free: 0.5938 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4691/0.4706, allocations: 76.17 MB / 0.556 GB, free: 36.28 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Average): time 0.002489/0.4732, allocations: 1.585 MB / 0.5576 GB, free: 35.19 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002702/0.4735, allocations: 120.8 kB / 0.5577 GB, free: 35.11 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.582e-05/0.4735, allocations: 1.125 kB / 0.5577 GB, free: 35.11 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001116/0.4737, allocations: 4.562 kB / 0.5577 GB, free: 35.11 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 2.558e-05/0.4737, allocations: 11.12 kB / 0.5577 GB, free: 35.1 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002149/0.4739, allocations: 27.27 kB / 0.5577 GB, free: 35.09 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 8.29e-05/0.474, allocations: 49.95 kB / 0.5578 GB, free: 35.07 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.4741, allocations: 29.7 kB / 0.5578 GB, free: 35.06 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.728e-05/0.4742, allocations: 24.09 kB / 0.5578 GB, free: 35.05 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.622e-05/0.4742, allocations: 33.27 kB / 0.5578 GB, free: 35.04 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.533e-05/0.4743, allocations: 5 kB / 0.5579 GB, free: 35.04 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.303e-05/0.4743, allocations: 8.719 kB / 0.5579 GB, free: 35.04 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.69e-05/0.4744, allocations: 15.67 kB / 0.5579 GB, free: 35.03 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.476e-05/0.4744, allocations: 29.41 kB / 0.5579 GB, free: 35.01 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001122/0.4745, allocations: 60.42 kB / 0.558 GB, free: 34.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.4745, allocations: 1.062 kB / 0.558 GB, free: 34.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4745, allocations: 0 / 0.558 GB, free: 34.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.4745, allocations: 0 / 0.558 GB, free: 34.98 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.0004453/0.475, allocations: 381.5 kB / 0.5583 GB, free: 34.61 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.475, allocations: 10 kB / 0.5583 GB, free: 34.61 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.056e-05/0.4751, allocations: 32.84 kB / 0.5584 GB, free: 34.57 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.775e-05/0.4751, allocations: 10.67 kB / 0.5584 GB, free: 34.56 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001248/0.4752, allocations: 186 kB / 0.5586 GB, free: 34.35 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.2e-05/0.4753, allocations: 5.625 kB / 0.5586 GB, free: 34.35 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.412e-05/0.4753, allocations: 6.5 kB / 0.5586 GB, free: 34.35 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002723/0.4756, allocations: 82.36 kB / 0.5586 GB, free: 34.31 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.4756, allocations: 5.281 kB / 0.5587 GB, free: 34.3 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.4756, allocations: 4.75 kB / 0.5587 GB, free: 34.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.4756, allocations: 1.375 kB / 0.5587 GB, free: 34.3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003026/0.4759, allocations: 83.78 kB / 0.5587 GB, free: 34.29 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004626/0.4764, allocations: 320.8 kB / 0.559 GB, free: 34 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001978/0.4766, allocations: 66.38 kB / 0.5591 GB, free: 33.96 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001561/0.4768, allocations: 42.72 kB / 0.5591 GB, free: 33.95 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.988e-05/0.4768, allocations: 11.14 kB / 0.5592 GB, free: 33.94 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.669e-05/0.4768, allocations: 35.11 kB / 0.5592 GB, free: 33.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.123e-06/0.4768, allocations: 1.438 kB / 0.5592 GB, free: 33.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005635/0.4774, allocations: 141.6 kB / 0.5593 GB, free: 33.85 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.854e-05/0.4774, allocations: 56 kB / 0.5594 GB, free: 33.78 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.651e-05/0.4775, allocations: 117.8 kB / 0.5595 GB, free: 33.68 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.438e-06/0.4775, allocations: 25.7 kB / 0.5595 GB, free: 33.65 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.662e-05/0.4776, allocations: 96.66 kB / 0.5596 GB, free: 33.55 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.077e-05/0.4776, allocations: 9.922 kB / 0.5596 GB, free: 33.55 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.555e-05/0.4776, allocations: 18.69 kB / 0.5596 GB, free: 33.53 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.176e-05/0.4777, allocations: 319.9 kB / 0.5599 GB, free: 33.21 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/0.4779, allocations: 33.16 kB / 0.56 GB, free: 33.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/0.478, allocations: 34.11 kB / 0.56 GB, free: 33.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000281/0.4783, allocations: 77.31 kB / 0.5601 GB, free: 33.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.4783, allocations: 2.281 kB / 0.5601 GB, free: 33.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003266/0.4786, allocations: 108.2 kB / 0.5602 GB, free: 33.14 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.4787, allocations: 5.094 kB / 0.5602 GB, free: 33.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.4787, allocations: 0.5625 kB / 0.5602 GB, free: 33.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.4787, allocations: 1.125 kB / 0.5602 GB, free: 33.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.4788, allocations: 16.23 kB / 0.5602 GB, free: 33.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.4788, allocations: 1.781 kB / 0.5602 GB, free: 33.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.832e-05/0.4789, allocations: 15.88 kB / 0.5602 GB, free: 33.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.836e-05/0.4789, allocations: 2.75 kB / 0.5602 GB, free: 33.13 MB / 446.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.614e-05/0.479, allocations: 120.3 kB / 0.5603 GB, free: 33.01 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.487e-05/0.479, allocations: 3 kB / 0.5603 GB, free: 33.01 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003583/0.4794, allocations: 114.5 kB / 0.5605 GB, free: 32.96 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.4794, allocations: 0 / 0.5605 GB, free: 32.96 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.4794, allocations: 0 / 0.5605 GB, free: 32.96 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.4794, allocations: 2.984 kB / 0.5605 GB, free: 32.96 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001411/0.4796, allocations: 186 kB / 0.5606 GB, free: 32.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.4796, allocations: 0 / 0.5606 GB, free: 32.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.378e-05/0.4797, allocations: 16.98 kB / 0.5606 GB, free: 32.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.4797, allocations: 1.312 kB / 0.5607 GB, free: 32.75 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.425e-06/0.4797, allocations: 5.812 kB / 0.5607 GB, free: 32.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.4797, allocations: 0.7031 kB / 0.5607 GB, free: 32.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.4797, allocations: 1.344 kB / 0.5607 GB, free: 32.75 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003445/0.4801, allocations: 205.8 kB / 0.5609 GB, free: 32.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.014e-05/0.4801, allocations: 82.92 kB / 0.5609 GB, free: 32.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.461e-05/0.4801, allocations: 2.906 kB / 0.5609 GB, free: 32.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.4802, allocations: 11.78 kB / 0.5609 GB, free: 32.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.903e-05/0.4803, allocations: 4.703 kB / 0.561 GB, free: 32.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.4803, allocations: 5.406 kB / 0.561 GB, free: 32.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.456e-05/0.4803, allocations: 96.12 kB / 0.561 GB, free: 32.42 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4803, allocations: 0.7188 kB / 0.561 GB, free: 32.42 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002274/0.4806, allocations: 12.44 kB / 0.5611 GB, free: 32.41 MB / 446.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005369/0.4811, allocations: 0.7327 MB / 0.5618 GB, free: 31.75 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003711/0.4815, allocations: 84.45 kB / 0.5619 GB, free: 31.73 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4815, allocations: 0 / 0.5619 GB, free: 31.73 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001548/0.4817, allocations: 43.94 kB / 0.5619 GB, free: 31.72 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003367/0.482, allocations: 5.234 kB / 0.5619 GB, free: 31.72 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001553/0.4836, allocations: 1.438 MB / 0.5633 GB, free: 30.49 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001532/0.4837, allocations: 0.6918 MB / 0.564 GB, free: 29.79 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.331e-05/0.4838, allocations: 7.75 kB / 0.564 GB, free: 29.79 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.455e-05/0.4839, allocations: 17.08 kB / 0.564 GB, free: 29.78 MB / 446.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4839, allocations: 0 / 0.564 GB, free: 29.78 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01218/0.496, allocations: 1.606 MB / 0.5656 GB, free: 29.54 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001805/0.4963, allocations: 183.8 kB / 0.5658 GB, free: 29.29 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.689/2.185, allocations: 0 / 0.5658 GB, free: 29.29 MB / 446.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/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)