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.005072/0.005072, allocations: 101.1 kB / 15.88 MB, free: 6.312 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.001272/0.001272, allocations: 194.4 kB / 16.79 MB, free: 6.242 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.302/1.302, allocations: 222.9 MB / 240.5 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.679/0.679, allocations: 115.3 MB / 406 MB, free: 2.773 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 69.61 kB / 493 MB, free: 6.703 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1377, allocations: 76.18 MB / 0.5558 GB, free: 10.73 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Average): time 0.002371/0.1401, allocations: 1.587 MB / 0.5574 GB, free: 9.121 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002614/0.1404, allocations: 112.5 kB / 0.5575 GB, free: 9.008 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.879e-05/0.1404, allocations: 0 / 0.5575 GB, free: 9.008 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 7.985e-05/0.1405, allocations: 3.938 kB / 0.5575 GB, free: 9.004 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 2.079e-05/0.1405, allocations: 11.94 kB / 0.5575 GB, free: 8.992 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001347/0.1407, allocations: 19.97 kB / 0.5575 GB, free: 8.973 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 7.607e-05/0.1407, allocations: 59.78 kB / 0.5576 GB, free: 8.914 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.679e-05/0.1408, allocations: 31.95 kB / 0.5576 GB, free: 8.883 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.857e-05/0.1409, allocations: 19.92 kB / 0.5576 GB, free: 8.863 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.819e-05/0.1409, allocations: 31.84 kB / 0.5577 GB, free: 8.832 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.277e-05/0.141, allocations: 0 / 0.5577 GB, free: 8.832 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.83e-05/0.141, allocations: 12 kB / 0.5577 GB, free: 8.82 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.243e-05/0.1411, allocations: 15.92 kB / 0.5577 GB, free: 8.805 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.016e-05/0.1411, allocations: 19.86 kB / 0.5577 GB, free: 8.785 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 9.173e-05/0.1412, allocations: 59.8 kB / 0.5578 GB, free: 8.727 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.1412, allocations: 0 / 0.5578 GB, free: 8.727 MB / 430.1 MB Notification: Performance of FrontEnd: time 5.81e-07/0.1412, allocations: 0 / 0.5578 GB, free: 8.727 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.615e-06/0.1412, allocations: 0 / 0.5578 GB, free: 8.727 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.0004277/0.1416, allocations: 383.6 kB / 0.5581 GB, free: 8.301 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.9e-05/0.1417, allocations: 8.031 kB / 0.5581 GB, free: 8.293 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.532e-05/0.1417, allocations: 38.69 kB / 0.5582 GB, free: 8.246 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.121e-05/0.1417, allocations: 8.844 kB / 0.5582 GB, free: 8.238 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.1419, allocations: 192.1 kB / 0.5584 GB, free: 8.012 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.503e-06/0.1419, allocations: 384 / 0.5584 GB, free: 8.012 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.023e-05/0.1419, allocations: 4.375 kB / 0.5584 GB, free: 8.008 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002478/0.1422, allocations: 94.19 kB / 0.5585 GB, free: 7.91 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.1422, allocations: 7.875 kB / 0.5585 GB, free: 7.902 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.104e-06/0.1422, allocations: 0 / 0.5585 GB, free: 7.902 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.206e-06/0.1422, allocations: 0 / 0.5585 GB, free: 7.902 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003054/0.1425, allocations: 79.92 kB / 0.5586 GB, free: 7.824 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004639/0.143, allocations: 336.6 kB / 0.5589 GB, free: 7.445 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001795/0.1432, allocations: 58.53 kB / 0.5589 GB, free: 7.379 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001386/0.1433, allocations: 36.92 kB / 0.559 GB, free: 7.34 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.8e-05/0.1434, allocations: 8 kB / 0.559 GB, free: 7.332 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.1434, allocations: 30.56 kB / 0.559 GB, free: 7.293 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.1434, allocations: 0 / 0.559 GB, free: 7.293 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004915/0.1439, allocations: 141.6 kB / 0.5591 GB, free: 7.148 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.659e-05/0.1439, allocations: 55.41 kB / 0.5592 GB, free: 7.082 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.49e-05/0.144, allocations: 113.8 kB / 0.5593 GB, free: 6.961 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.228e-05/0.144, allocations: 25.7 kB / 0.5593 GB, free: 6.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.705e-05/0.1441, allocations: 99.97 kB / 0.5594 GB, free: 6.828 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.474e-05/0.1441, allocations: 7.906 kB / 0.5594 GB, free: 6.82 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.17e-05/0.1441, allocations: 13.72 kB / 0.5594 GB, free: 6.801 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.33e-05/0.1442, allocations: 322.8 kB / 0.5597 GB, free: 6.477 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001477/0.1444, allocations: 35.95 kB / 0.5598 GB, free: 6.441 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001386/0.1445, allocations: 39.89 kB / 0.5598 GB, free: 6.402 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002746/0.1448, allocations: 72.78 kB / 0.5599 GB, free: 6.328 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.1448, allocations: 4 kB / 0.5599 GB, free: 6.324 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003157/0.1452, allocations: 109.5 kB / 0.56 GB, free: 6.211 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.828e-06/0.1452, allocations: 4 kB / 0.56 GB, free: 6.207 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-06/0.1452, allocations: 0 / 0.56 GB, free: 6.207 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.887e-06/0.1452, allocations: 3.984 kB / 0.56 GB, free: 6.203 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.1453, allocations: 15.98 kB / 0.56 GB, free: 6.188 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.637e-06/0.1453, allocations: 7.938 kB / 0.56 GB, free: 6.18 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.465e-05/0.1454, allocations: 11.98 kB / 0.56 GB, free: 6.168 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.291e-05/0.1454, allocations: 0 / 0.56 GB, free: 6.168 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 7.536e-05/0.1455, allocations: 121.8 kB / 0.5602 GB, free: 6.039 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.649e-05/0.1455, allocations: 4 kB / 0.5602 GB, free: 6.035 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003522/0.1459, allocations: 113.8 kB / 0.5603 GB, free: 5.914 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.1459, allocations: 4.047 kB / 0.5603 GB, free: 5.91 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/0.1459, allocations: 3.984 kB / 0.5603 GB, free: 5.906 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-06/0.1459, allocations: 0 / 0.5603 GB, free: 5.906 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001531/0.1461, allocations: 181.5 kB / 0.5604 GB, free: 5.68 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1461, allocations: 0 / 0.5604 GB, free: 5.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.1462, allocations: 19.97 kB / 0.5605 GB, free: 5.66 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-06/0.1462, allocations: 0 / 0.5605 GB, free: 5.66 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.408e-06/0.1462, allocations: 4 kB / 0.5605 GB, free: 5.656 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.1462, allocations: 4 kB / 0.5605 GB, free: 5.652 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1462, allocations: 0 / 0.5605 GB, free: 5.652 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000336/0.1466, allocations: 195.4 kB / 0.5607 GB, free: 5.445 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.191e-05/0.1466, allocations: 85.02 kB / 0.5607 GB, free: 5.344 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.352e-05/0.1466, allocations: 4 kB / 0.5607 GB, free: 5.34 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.1467, allocations: 11.98 kB / 0.5608 GB, free: 5.328 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.581e-05/0.1468, allocations: 11.92 kB / 0.5608 GB, free: 5.316 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.121e-06/0.1468, allocations: 0 / 0.5608 GB, free: 5.316 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.377e-05/0.1468, allocations: 93.45 kB / 0.5609 GB, free: 5.227 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1469, allocations: 0 / 0.5609 GB, free: 5.227 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002215/0.1471, allocations: 23.88 kB / 0.5609 GB, free: 5.203 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.0005983/0.1477, allocations: 0.7358 MB / 0.5616 GB, free: 4.441 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000314/0.148, allocations: 79.86 kB / 0.5617 GB, free: 4.363 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.148, allocations: 0 / 0.5617 GB, free: 4.363 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001451/0.1482, allocations: 39.95 kB / 0.5617 GB, free: 4.324 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002368/0.1484, allocations: 7.938 kB / 0.5617 GB, free: 4.316 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001578/0.15, allocations: 1.43 MB / 0.5631 GB, free: 2.809 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002186/0.1502, allocations: 0.6887 MB / 0.5638 GB, free: 2.094 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.995e-05/0.1503, allocations: 11.98 kB / 0.5638 GB, free: 2.082 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.731e-05/0.1503, allocations: 19.44 kB / 0.5638 GB, free: 2.062 MB / 430.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1503, allocations: 0 / 0.5638 GB, free: 2.062 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3838/0.5342, allocations: 1.545 MB / 0.5653 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002817/0.5345, allocations: 189.5 kB / 0.5655 GB, free: 368 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.028/2.562, allocations: 3.938 kB / 0.5655 GB, free: 364 kB / 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/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)