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.0008891/0.000889, allocations: 99.28 kB / 16.02 MB, free: 80 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.001257/0.001257, allocations: 187.8 kB / 16.92 MB, free: 6.75 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.399/1.399, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7169/0.7169, allocations: 115.5 MB / 407.6 MB, free: 2.684 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003455/0.0003454, allocations: 12.28 kB / 496 MB, free: 6.258 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.1621, allocations: 77.53 MB / 0.56 GB, free: 8.926 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Average): time 0.001909/0.164, allocations: 1.24 MB / 0.5613 GB, free: 7.672 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003708/0.1644, allocations: 120.4 kB / 0.5614 GB, free: 7.551 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.788e-05/0.1645, allocations: 0 / 0.5614 GB, free: 7.551 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001141/0.1646, allocations: 11.94 kB / 0.5614 GB, free: 7.539 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 3.336e-05/0.1647, allocations: 3.938 kB / 0.5614 GB, free: 7.535 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002193/0.1649, allocations: 23.97 kB / 0.5614 GB, free: 7.512 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001075/0.165, allocations: 51.83 kB / 0.5615 GB, free: 7.461 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.1651, allocations: 27.97 kB / 0.5615 GB, free: 7.434 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.305e-05/0.1652, allocations: 19.92 kB / 0.5615 GB, free: 7.414 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.656e-05/0.1653, allocations: 23.86 kB / 0.5615 GB, free: 7.391 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.813e-05/0.1653, allocations: 4 kB / 0.5615 GB, free: 7.387 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.162e-05/0.1654, allocations: 11.98 kB / 0.5615 GB, free: 7.375 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 4.306e-05/0.1654, allocations: 7.984 kB / 0.5616 GB, free: 7.367 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.735e-05/0.1655, allocations: 45.52 kB / 0.5616 GB, free: 7.316 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001265/0.1656, allocations: 59.78 kB / 0.5617 GB, free: 7.258 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1656, allocations: 4 kB / 0.5617 GB, free: 7.254 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.1656, allocations: 0 / 0.5617 GB, free: 7.254 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.699e-06/0.1656, allocations: 0 / 0.5617 GB, free: 7.254 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.0005703/0.1662, allocations: 379.6 kB / 0.562 GB, free: 6.832 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.1663, allocations: 8.031 kB / 0.562 GB, free: 6.824 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.838e-05/0.1663, allocations: 42.75 kB / 0.5621 GB, free: 6.773 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.723e-05/0.1663, allocations: 4.938 kB / 0.5621 GB, free: 6.77 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001781/0.1665, allocations: 188.1 kB / 0.5622 GB, free: 6.547 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.769e-06/0.1665, allocations: 4.375 kB / 0.5623 GB, free: 6.543 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.376e-05/0.1666, allocations: 8.312 kB / 0.5623 GB, free: 6.535 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003176/0.1669, allocations: 98.2 kB / 0.5624 GB, free: 6.434 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.647e-06/0.1669, allocations: 3.938 kB / 0.5624 GB, free: 6.43 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.929e-06/0.1669, allocations: 0 / 0.5624 GB, free: 6.43 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.1669, allocations: 0 / 0.5624 GB, free: 6.43 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000342/0.1673, allocations: 107.8 kB / 0.5625 GB, free: 6.324 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006013/0.1679, allocations: 340.7 kB / 0.5628 GB, free: 5.941 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002266/0.1681, allocations: 74.56 kB / 0.5629 GB, free: 5.859 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001789/0.1683, allocations: 52.92 kB / 0.5629 GB, free: 5.805 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.565e-05/0.1684, allocations: 3.938 kB / 0.5629 GB, free: 5.801 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.1684, allocations: 34.55 kB / 0.5629 GB, free: 5.758 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 3.998e-06/0.1684, allocations: 7.984 kB / 0.563 GB, free: 5.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0006134/0.169, allocations: 169.5 kB / 0.5631 GB, free: 5.578 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.861e-05/0.1691, allocations: 51.41 kB / 0.5632 GB, free: 5.516 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.164e-05/0.1692, allocations: 115 kB / 0.5633 GB, free: 5.395 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.1692, allocations: 25.7 kB / 0.5633 GB, free: 5.363 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.35e-05/0.1693, allocations: 100.1 kB / 0.5634 GB, free: 5.262 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.273e-05/0.1693, allocations: 19.75 kB / 0.5634 GB, free: 5.242 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.702e-05/0.1693, allocations: 9.719 kB / 0.5634 GB, free: 5.227 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.1694, allocations: 318.8 kB / 0.5637 GB, free: 4.906 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001797/0.1696, allocations: 47.95 kB / 0.5638 GB, free: 4.859 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001507/0.1698, allocations: 43.95 kB / 0.5638 GB, free: 4.816 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003072/0.1701, allocations: 96.78 kB / 0.5639 GB, free: 4.719 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1701, allocations: 0 / 0.5639 GB, free: 4.719 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003809/0.1705, allocations: 117.6 kB / 0.564 GB, free: 4.598 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.1705, allocations: 8 kB / 0.564 GB, free: 4.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.1705, allocations: 4 kB / 0.564 GB, free: 4.586 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.1706, allocations: 4 kB / 0.564 GB, free: 4.582 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.1707, allocations: 27.91 kB / 0.5641 GB, free: 4.555 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.1707, allocations: 0 / 0.5641 GB, free: 4.555 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.712e-05/0.1708, allocations: 19.98 kB / 0.5641 GB, free: 4.535 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.93e-05/0.1708, allocations: 0 / 0.5641 GB, free: 4.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.968e-05/0.1709, allocations: 121.8 kB / 0.5642 GB, free: 4.406 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.011e-05/0.171, allocations: 11.91 kB / 0.5642 GB, free: 4.395 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004063/0.1714, allocations: 129.5 kB / 0.5643 GB, free: 4.258 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.1714, allocations: 0 / 0.5643 GB, free: 4.258 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.289e-06/0.1714, allocations: 3.938 kB / 0.5643 GB, free: 4.254 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1714, allocations: 4 kB / 0.5643 GB, free: 4.25 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001872/0.1716, allocations: 177.6 kB / 0.5645 GB, free: 4.027 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1716, allocations: 0 / 0.5645 GB, free: 4.027 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.1717, allocations: 27.97 kB / 0.5645 GB, free: 4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.1717, allocations: 7.875 kB / 0.5645 GB, free: 3.992 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.1717, allocations: 0 / 0.5645 GB, free: 3.992 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.1717, allocations: 0 / 0.5645 GB, free: 3.992 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1718, allocations: 0 / 0.5645 GB, free: 3.992 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004331/0.1722, allocations: 227.3 kB / 0.5648 GB, free: 3.754 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.033e-05/0.1723, allocations: 77.11 kB / 0.5648 GB, free: 3.66 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.782e-05/0.1723, allocations: 4 kB / 0.5648 GB, free: 3.656 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.1724, allocations: 23.98 kB / 0.5649 GB, free: 3.633 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.796e-05/0.1725, allocations: 3.984 kB / 0.5649 GB, free: 3.629 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.967e-06/0.1725, allocations: 432 / 0.5649 GB, free: 3.629 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.645e-05/0.1726, allocations: 98.66 kB / 0.565 GB, free: 3.535 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1726, allocations: 0 / 0.565 GB, free: 3.535 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000243/0.1728, allocations: 19.78 kB / 0.565 GB, free: 3.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 (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.0007387/0.1735, allocations: 0.7593 MB / 0.5657 GB, free: 2.73 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003584/0.1739, allocations: 99.91 kB / 0.5658 GB, free: 2.633 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1739, allocations: 4 kB / 0.5658 GB, free: 2.629 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001704/0.1741, allocations: 55.89 kB / 0.5659 GB, free: 2.574 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.1744, allocations: 9.562 kB / 0.5659 GB, free: 2.566 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001888/0.1763, allocations: 1.482 MB / 0.5673 GB, free: 1.008 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002857/0.1766, allocations: 0.6888 MB / 0.568 GB, free: 300 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.665e-05/0.1767, allocations: 11.98 kB / 0.568 GB, free: 288 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.197e-05/0.1767, allocations: 15.42 kB / 0.568 GB, free: 272 kB / 430.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1767, allocations: 0 / 0.568 GB, free: 272 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1195/0.2962, allocations: 1.48 MB / 0.5695 GB, free: 14.91 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000234/0.2965, allocations: 189.1 kB / 0.5696 GB, free: 14.64 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.785/2.082, allocations: 0 / 0.5696 GB, free: 14.64 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)