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.001251/0.001251, allocations: 106.5 kB / 16.4 MB, free: 6.5 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.001384/0.001384, allocations: 193.2 kB / 17.34 MB, free: 5.742 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.4/1.4, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7348/0.7348, allocations: 115.3 MB / 406.5 MB, free: 6.18 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 71.42 kB / 0.5572 GB, free: 32.52 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1444/0.1456, allocations: 76.18 MB / 0.6316 GB, free: 4.891 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Average): time 0.002753/0.1484, allocations: 1.533 MB / 0.6331 GB, free: 3.344 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003357/0.1488, allocations: 112.5 kB / 0.6332 GB, free: 3.23 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.701e-05/0.1488, allocations: 0 / 0.6332 GB, free: 3.23 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001291/0.149, allocations: 3.938 kB / 0.6332 GB, free: 3.227 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 3.442e-05/0.1491, allocations: 11.86 kB / 0.6332 GB, free: 3.215 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002607/0.1493, allocations: 27.97 kB / 0.6332 GB, free: 3.188 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001085/0.1494, allocations: 51.84 kB / 0.6333 GB, free: 3.137 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.1496, allocations: 31.97 kB / 0.6333 GB, free: 3.105 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.051e-05/0.1496, allocations: 23.92 kB / 0.6333 GB, free: 3.082 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.684e-05/0.1497, allocations: 31.84 kB / 0.6334 GB, free: 3.051 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.787e-05/0.1497, allocations: 4 kB / 0.6334 GB, free: 3.047 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.505e-05/0.1498, allocations: 8 kB / 0.6334 GB, free: 3.039 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 4.59e-05/0.1498, allocations: 19.92 kB / 0.6334 GB, free: 3.02 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 4.137e-05/0.1499, allocations: 31.86 kB / 0.6334 GB, free: 2.988 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001412/0.15, allocations: 59.8 kB / 0.6335 GB, free: 2.93 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.15, allocations: 0 / 0.6335 GB, free: 2.93 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1501, allocations: 0 / 0.6335 GB, free: 2.93 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.1501, allocations: 0 / 0.6335 GB, free: 2.93 MB / 478.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.0005536/0.1506, allocations: 378.9 kB / 0.6338 GB, free: 2.512 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.1507, allocations: 8.031 kB / 0.6339 GB, free: 2.504 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.531e-05/0.1507, allocations: 38.69 kB / 0.6339 GB, free: 2.457 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.175e-05/0.1508, allocations: 12.84 kB / 0.6339 GB, free: 2.445 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001579/0.1509, allocations: 184.2 kB / 0.6341 GB, free: 2.227 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.626e-06/0.1509, allocations: 4.375 kB / 0.6341 GB, free: 2.223 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.361e-05/0.151, allocations: 8.375 kB / 0.6341 GB, free: 2.215 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002759/0.1512, allocations: 82.14 kB / 0.6342 GB, free: 2.129 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.1513, allocations: 7.875 kB / 0.6342 GB, free: 2.121 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.1513, allocations: 8 kB / 0.6342 GB, free: 2.113 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.1513, allocations: 0 / 0.6342 GB, free: 2.113 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002882/0.1516, allocations: 79.91 kB / 0.6343 GB, free: 2.035 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005152/0.1521, allocations: 332.6 kB / 0.6346 GB, free: 1.66 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/0.1523, allocations: 62.53 kB / 0.6346 GB, free: 1.59 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001386/0.1525, allocations: 36.92 kB / 0.6347 GB, free: 1.551 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.342e-05/0.1525, allocations: 3.984 kB / 0.6347 GB, free: 1.547 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.1525, allocations: 34.56 kB / 0.6347 GB, free: 1.504 MB / 478.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.1525, allocations: 0 / 0.6347 GB, free: 1.504 MB / 478.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005023/0.153, allocations: 141.6 kB / 0.6348 GB, free: 1.359 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/0.1531, allocations: 51.41 kB / 0.6349 GB, free: 1.297 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.413e-05/0.1532, allocations: 109.8 kB / 0.635 GB, free: 1.18 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.1532, allocations: 25.7 kB / 0.635 GB, free: 1.148 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.966e-05/0.1533, allocations: 104 kB / 0.6351 GB, free: 1.043 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.879e-05/0.1533, allocations: 7.906 kB / 0.6351 GB, free: 1.035 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.454e-05/0.1533, allocations: 17.72 kB / 0.6351 GB, free: 1.012 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.1535, allocations: 322.8 kB / 0.6355 GB, free: 0.6875 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001388/0.1536, allocations: 27.97 kB / 0.6355 GB, free: 0.6602 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001294/0.1537, allocations: 36.14 kB / 0.6355 GB, free: 0.625 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002712/0.154, allocations: 80.86 kB / 0.6356 GB, free: 0.543 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.154, allocations: 4 kB / 0.6356 GB, free: 0.5391 MB / 478.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003154/0.1543, allocations: 109.5 kB / 0.6357 GB, free: 436 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.1544, allocations: 5.719 kB / 0.6357 GB, free: 432 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.1544, allocations: 11.94 kB / 0.6357 GB, free: 420 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.1544, allocations: 0 / 0.6357 GB, free: 420 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.1545, allocations: 11.98 kB / 0.6357 GB, free: 408 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.1546, allocations: 0 / 0.6357 GB, free: 408 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.606e-05/0.1546, allocations: 11.98 kB / 0.6357 GB, free: 396 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.234e-05/0.1547, allocations: 4 kB / 0.6357 GB, free: 392 kB / 478.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 9.934e-05/0.1548, allocations: 121.8 kB / 0.6359 GB, free: 260 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.668e-05/0.1548, allocations: 4 kB / 0.6359 GB, free: 256 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003845/0.1552, allocations: 113.5 kB / 0.636 GB, free: 128 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.1552, allocations: 0 / 0.636 GB, free: 128 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.1552, allocations: 0 / 0.636 GB, free: 128 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.1552, allocations: 3.984 kB / 0.636 GB, free: 124 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002183/0.1555, allocations: 193.4 kB / 0.6362 GB, free: 15.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.1555, allocations: 0 / 0.6362 GB, free: 15.88 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.833e-05/0.1556, allocations: 19.98 kB / 0.6362 GB, free: 15.86 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1556, allocations: 0 / 0.6362 GB, free: 15.86 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.1556, allocations: 0 / 0.6362 GB, free: 15.86 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1556, allocations: 0 / 0.6362 GB, free: 15.86 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1556, allocations: 4 kB / 0.6362 GB, free: 15.86 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003786/0.156, allocations: 203.4 kB / 0.6364 GB, free: 15.64 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.778e-05/0.156, allocations: 81.02 kB / 0.6365 GB, free: 15.55 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.614e-05/0.1561, allocations: 0 / 0.6365 GB, free: 15.55 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.1562, allocations: 11.98 kB / 0.6365 GB, free: 15.54 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.401e-05/0.1562, allocations: 11.92 kB / 0.6365 GB, free: 15.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.1563, allocations: 4 kB / 0.6365 GB, free: 15.52 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.43e-05/0.1563, allocations: 95.64 kB / 0.6366 GB, free: 15.43 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1563, allocations: 0 / 0.6366 GB, free: 15.43 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002409/0.1566, allocations: 15.94 kB / 0.6366 GB, free: 15.41 MB / 494.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.0007115/0.1573, allocations: 0.7319 MB / 0.6373 GB, free: 14.65 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000335/0.1576, allocations: 83.84 kB / 0.6374 GB, free: 14.57 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.1576, allocations: 4 kB / 0.6374 GB, free: 14.57 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001434/0.1578, allocations: 35.97 kB / 0.6374 GB, free: 14.53 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002948/0.1581, allocations: 7.938 kB / 0.6374 GB, free: 14.52 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001713/0.1598, allocations: 1.427 MB / 0.6388 GB, free: 13.02 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002448/0.1601, allocations: 0.6885 MB / 0.6395 GB, free: 12.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.739e-05/0.1601, allocations: 15.98 kB / 0.6395 GB, free: 12.29 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.059e-05/0.1602, allocations: 15.44 kB / 0.6395 GB, free: 12.27 MB / 494.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1602, allocations: 4 kB / 0.6395 GB, free: 12.27 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01817/0.1784, allocations: 1.847 MB / 0.6413 GB, free: 10.49 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.582/7.761, allocations: 12.86 kB / 0.6413 GB, free: 10.48 MB / 494.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)