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.000683/0.000683, allocations: 92 kB / 15.7 MB, free: 468 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.0007723/0.0007724, allocations: 178 kB / 16.58 MB, free: 6.402 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.186/1.186, allocations: 223.2 MB / 240.6 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6135/0.6135, allocations: 113.7 MB / 405.4 MB, free: 4.609 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002726/0.0002727, allocations: 17.3 kB / 493.1 MB, free: 8.566 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1168, allocations: 77.11 MB / 0.5569 GB, free: 11.66 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Average): time 0.001381/0.1182, allocations: 1.235 MB / 0.5581 GB, free: 10.42 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002602/0.1185, allocations: 104.6 kB / 0.5582 GB, free: 10.31 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.427e-05/0.1186, allocations: 0 / 0.5582 GB, free: 10.31 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 8.7e-05/0.1187, allocations: 15.92 kB / 0.5582 GB, free: 10.3 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 2.224e-05/0.1187, allocations: 7.922 kB / 0.5582 GB, free: 10.29 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000172/0.1189, allocations: 23.91 kB / 0.5582 GB, free: 10.27 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 7.393e-05/0.119, allocations: 43.84 kB / 0.5583 GB, free: 10.22 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.653e-05/0.1191, allocations: 23.98 kB / 0.5583 GB, free: 10.2 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.952e-05/0.1191, allocations: 19.92 kB / 0.5583 GB, free: 10.18 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.411e-05/0.1192, allocations: 23.91 kB / 0.5583 GB, free: 10.16 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.273e-05/0.1192, allocations: 4 kB / 0.5584 GB, free: 10.15 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.763e-05/0.1192, allocations: 7.984 kB / 0.5584 GB, free: 10.14 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.752e-05/0.1193, allocations: 11.98 kB / 0.5584 GB, free: 10.13 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.519e-05/0.1193, allocations: 33.64 kB / 0.5584 GB, free: 10.09 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 7.902e-05/0.1194, allocations: 39.94 kB / 0.5584 GB, free: 10.05 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.1194, allocations: 0 / 0.5584 GB, free: 10.05 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1194, allocations: 0 / 0.5584 GB, free: 10.05 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.1194, allocations: 4 kB / 0.5584 GB, free: 10.05 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.0004449/0.1199, allocations: 383.3 kB / 0.5588 GB, free: 9.629 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.1199, allocations: 8.031 kB / 0.5588 GB, free: 9.621 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.087e-05/0.1199, allocations: 30.56 kB / 0.5588 GB, free: 9.582 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.38e-05/0.12, allocations: 4 kB / 0.5589 GB, free: 9.578 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001421/0.1201, allocations: 194.8 kB / 0.559 GB, free: 9.348 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.356e-06/0.1201, allocations: 4 kB / 0.559 GB, free: 9.344 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.445e-05/0.1202, allocations: 11.95 kB / 0.5591 GB, free: 9.332 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002462/0.1204, allocations: 97.62 kB / 0.5591 GB, free: 9.23 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.1204, allocations: 3.938 kB / 0.5591 GB, free: 9.227 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.336e-06/0.1204, allocations: 4 kB / 0.5592 GB, free: 9.223 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.772e-06/0.1205, allocations: 7.984 kB / 0.5592 GB, free: 9.215 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002701/0.1207, allocations: 103.9 kB / 0.5593 GB, free: 9.113 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004499/0.1212, allocations: 336.7 kB / 0.5596 GB, free: 8.734 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000177/0.1214, allocations: 70.58 kB / 0.5596 GB, free: 8.656 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001334/0.1215, allocations: 52.91 kB / 0.5597 GB, free: 8.602 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.107e-05/0.1216, allocations: 0 / 0.5597 GB, free: 8.602 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.1216, allocations: 34.56 kB / 0.5597 GB, free: 8.559 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 8.82e-07/0.1216, allocations: 0 / 0.5597 GB, free: 8.559 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004999/0.1221, allocations: 169.6 kB / 0.5599 GB, free: 8.387 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.939e-05/0.1222, allocations: 55.39 kB / 0.5599 GB, free: 8.32 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.49e-05/0.1223, allocations: 113.8 kB / 0.5601 GB, free: 8.199 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.1223, allocations: 33.7 kB / 0.5601 GB, free: 8.16 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.043e-05/0.1224, allocations: 91.98 kB / 0.5602 GB, free: 8.066 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.313e-05/0.1224, allocations: 15.83 kB / 0.5602 GB, free: 8.051 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.369e-06/0.1224, allocations: 4 kB / 0.5602 GB, free: 8.047 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.1225, allocations: 318.8 kB / 0.5605 GB, free: 7.727 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001374/0.1227, allocations: 43.95 kB / 0.5605 GB, free: 7.684 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.1228, allocations: 43.97 kB / 0.5606 GB, free: 7.641 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001396/0.123, allocations: 43.95 kB / 0.5606 GB, free: 7.598 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.123, allocations: 8 kB / 0.5606 GB, free: 7.59 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003065/0.1233, allocations: 125.5 kB / 0.5608 GB, free: 7.461 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.1233, allocations: 7.984 kB / 0.5608 GB, free: 7.453 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.1233, allocations: 0 / 0.5608 GB, free: 7.453 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.1233, allocations: 4 kB / 0.5608 GB, free: 7.449 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.1235, allocations: 15.98 kB / 0.5608 GB, free: 7.434 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.1235, allocations: 4 kB / 0.5608 GB, free: 7.43 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.376e-05/0.1235, allocations: 19.98 kB / 0.5608 GB, free: 7.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.946e-05/0.1236, allocations: 0 / 0.5608 GB, free: 7.41 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 9.361e-05/0.1237, allocations: 125.7 kB / 0.5609 GB, free: 7.277 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.509e-05/0.1237, allocations: 0 / 0.5609 GB, free: 7.277 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003569/0.1241, allocations: 137.4 kB / 0.5611 GB, free: 7.133 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1241, allocations: 0 / 0.5611 GB, free: 7.133 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.1241, allocations: 0 / 0.5611 GB, free: 7.133 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.1241, allocations: 3.984 kB / 0.5611 GB, free: 7.129 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001715/0.1243, allocations: 177.6 kB / 0.5612 GB, free: 6.906 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.1243, allocations: 4 kB / 0.5612 GB, free: 6.902 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.999e-05/0.1244, allocations: 19.97 kB / 0.5612 GB, free: 6.883 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-06/0.1244, allocations: 4 kB / 0.5613 GB, free: 6.879 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.1244, allocations: 4 kB / 0.5613 GB, free: 6.875 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1244, allocations: 3.938 kB / 0.5613 GB, free: 6.871 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1244, allocations: 0 / 0.5613 GB, free: 6.871 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003282/0.1248, allocations: 227.7 kB / 0.5615 GB, free: 6.633 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.092e-05/0.1248, allocations: 88.98 kB / 0.5616 GB, free: 6.527 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.1248, allocations: 4 kB / 0.5616 GB, free: 6.523 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.692e-05/0.1249, allocations: 19.98 kB / 0.5616 GB, free: 6.504 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.667e-05/0.125, allocations: 7.984 kB / 0.5616 GB, free: 6.496 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.663e-06/0.125, allocations: 0 / 0.5616 GB, free: 6.496 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.616e-05/0.125, allocations: 92.25 kB / 0.5617 GB, free: 6.406 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.125, allocations: 4 kB / 0.5617 GB, free: 6.402 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002119/0.1252, allocations: 11.94 kB / 0.5617 GB, free: 6.391 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.0005646/0.1258, allocations: 0.7637 MB / 0.5624 GB, free: 5.602 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000293/0.1261, allocations: 95.92 kB / 0.5625 GB, free: 5.508 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1261, allocations: 0 / 0.5625 GB, free: 5.508 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001393/0.1263, allocations: 51.95 kB / 0.5626 GB, free: 5.457 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002482/0.1265, allocations: 11.72 kB / 0.5626 GB, free: 5.449 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009586/0.1275, allocations: 0.5725 MB / 0.5632 GB, free: 4.832 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002116/0.1277, allocations: 0.6965 MB / 0.5638 GB, free: 4.109 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.085e-05/0.1278, allocations: 11.98 kB / 0.5638 GB, free: 4.098 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.717e-05/0.1278, allocations: 11.44 kB / 0.5639 GB, free: 4.086 MB / 430.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1278, allocations: 0 / 0.5639 GB, free: 4.086 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01037/0.1382, allocations: 1.46 MB / 0.5653 GB, free: 2.75 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001549/0.1384, allocations: 173.9 kB / 0.5654 GB, free: 2.508 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.451/1.59, allocations: 0 / 0.5654 GB, free: 2.508 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: