Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_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.005423/0.005423, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001218/0.001218, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.249/1.249, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002378/0.002378, allocations: 290.5 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9026/0.9026, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001612, allocations: 97.23 kB / 0.681 GB, free: 8 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1592, allocations: 86.98 MB / 0.7659 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002851/0.1621, allocations: 1.532 MB / 0.7674 GB, free: 7.406 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.000309/0.1624, allocations: 104.6 kB / 0.7675 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.047e-05/0.1625, allocations: 3.938 kB / 0.7675 GB, free: 7.297 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001133/0.1626, allocations: 15.92 kB / 0.7675 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.51e-05/0.1627, allocations: 3.938 kB / 0.7675 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000214/0.1629, allocations: 27.91 kB / 0.7676 GB, free: 7.25 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.272e-05/0.163, allocations: 55.83 kB / 0.7676 GB, free: 7.195 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.1632, allocations: 36.19 kB / 0.7676 GB, free: 7.16 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 6.004e-05/0.1632, allocations: 23.91 kB / 0.7677 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.211e-05/0.1633, allocations: 27.86 kB / 0.7677 GB, free: 7.109 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.612e-05/0.1633, allocations: 11.94 kB / 0.7677 GB, free: 7.098 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 5.804e-05/0.1634, allocations: 11.98 kB / 0.7677 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.569e-05/0.1634, allocations: 19.92 kB / 0.7677 GB, free: 7.066 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.025e-05/0.1635, allocations: 19.88 kB / 0.7678 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001433/0.1636, allocations: 63.78 kB / 0.7678 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1636, allocations: 0 / 0.7678 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.383e-06/0.1636, allocations: 4 kB / 0.7678 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.042e-06/0.1636, allocations: 0 / 0.7678 GB, free: 6.98 MB / 0.5606 GB 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.0005269/0.1642, allocations: 379.2 kB / 0.7682 GB, free: 6.559 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.1642, allocations: 8.031 kB / 0.7682 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.766e-05/0.1643, allocations: 34.73 kB / 0.7682 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.556e-05/0.1643, allocations: 8.844 kB / 0.7682 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001688/0.1645, allocations: 184.2 kB / 0.7684 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.1645, allocations: 4.375 kB / 0.7684 GB, free: 6.277 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.456e-05/0.1645, allocations: 8.375 kB / 0.7684 GB, free: 6.27 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002724/0.1648, allocations: 86.2 kB / 0.7685 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.1648, allocations: 3.938 kB / 0.7685 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.1648, allocations: 3.984 kB / 0.7685 GB, free: 6.172 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.1648, allocations: 0 / 0.7685 GB, free: 6.172 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003058/0.1652, allocations: 83.92 kB / 0.7686 GB, free: 6.09 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000513/0.1657, allocations: 324.6 kB / 0.7689 GB, free: 5.723 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001975/0.1659, allocations: 58.62 kB / 0.769 GB, free: 5.656 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001556/0.1661, allocations: 52.84 kB / 0.769 GB, free: 5.602 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.702e-05/0.1661, allocations: 7.984 kB / 0.769 GB, free: 5.594 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/0.1661, allocations: 34.56 kB / 0.769 GB, free: 5.551 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 2.415e-06/0.1661, allocations: 3.984 kB / 0.769 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0005401/0.1667, allocations: 137.6 kB / 0.7692 GB, free: 5.406 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.1667, allocations: 51.41 kB / 0.7692 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.784e-05/0.1668, allocations: 117.8 kB / 0.7693 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.624e-05/0.1669, allocations: 29.7 kB / 0.7694 GB, free: 5.184 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.952e-05/0.1669, allocations: 92.05 kB / 0.7695 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.876e-05/0.1669, allocations: 7.812 kB / 0.7695 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.942e-05/0.167, allocations: 21.7 kB / 0.7695 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.695e-05/0.1671, allocations: 322.7 kB / 0.7698 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001481/0.1672, allocations: 39.89 kB / 0.7698 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001405/0.1674, allocations: 31.97 kB / 0.7699 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002711/0.1677, allocations: 80.72 kB / 0.7699 GB, free: 4.578 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1677, allocations: 0 / 0.7699 GB, free: 4.578 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003149/0.168, allocations: 101.6 kB / 0.77 GB, free: 4.473 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.168, allocations: 4 kB / 0.77 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.168, allocations: 0 / 0.77 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.168, allocations: 0 / 0.77 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001225/0.1682, allocations: 23.97 kB / 0.7701 GB, free: 4.445 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.026e-06/0.1682, allocations: 3.938 kB / 0.7701 GB, free: 4.441 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.527e-05/0.1683, allocations: 11.98 kB / 0.7701 GB, free: 4.43 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.1683, allocations: 0 / 0.7701 GB, free: 4.43 MB / 0.5606 GB 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.139e-05/0.1684, allocations: 122.4 kB / 0.7702 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.857e-05/0.1684, allocations: 7.906 kB / 0.7702 GB, free: 4.293 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003586/0.1687, allocations: 113.5 kB / 0.7703 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.1688, allocations: 0 / 0.7703 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.1688, allocations: 4 kB / 0.7703 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.1688, allocations: 0 / 0.7703 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001674/0.169, allocations: 181.6 kB / 0.7705 GB, free: 3.941 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.169, allocations: 0 / 0.7705 GB, free: 3.941 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.26e-05/0.1691, allocations: 15.98 kB / 0.7705 GB, free: 3.926 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.1691, allocations: 0 / 0.7705 GB, free: 3.926 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.1691, allocations: 4 kB / 0.7705 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/0.1691, allocations: 7.922 kB / 0.7705 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1691, allocations: 0 / 0.7705 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003471/0.1694, allocations: 195.4 kB / 0.7707 GB, free: 3.707 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.253e-05/0.1695, allocations: 85 kB / 0.7708 GB, free: 3.605 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.563e-05/0.1695, allocations: 8 kB / 0.7708 GB, free: 3.598 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.1696, allocations: 7.984 kB / 0.7708 GB, free: 3.59 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.881e-05/0.1697, allocations: 8.422 kB / 0.7708 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.652e-06/0.1697, allocations: 0 / 0.7708 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.199e-05/0.1697, allocations: 91.7 kB / 0.7709 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1697, allocations: 3.938 kB / 0.7709 GB, free: 3.488 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002206/0.17, allocations: 15.94 kB / 0.7709 GB, free: 3.473 MB / 0.5606 GB 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.0006339/0.1706, allocations: 0.7474 MB / 0.7716 GB, free: 2.699 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003404/0.1709, allocations: 79.92 kB / 0.7717 GB, free: 2.621 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.171, allocations: 0 / 0.7717 GB, free: 2.621 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001543/0.1711, allocations: 39.95 kB / 0.7718 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.1714, allocations: 15.42 kB / 0.7718 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001733/0.1731, allocations: 1.425 MB / 0.7732 GB, free: 1.066 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002362/0.1734, allocations: 0.6885 MB / 0.7738 GB, free: 360 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.659e-05/0.1734, allocations: 7.984 kB / 0.7738 GB, free: 352 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.109e-05/0.1735, allocations: 15.44 kB / 0.7739 GB, free: 336 kB / 0.5606 GB Notification: Performance of SimCode: time 3.51e-07/0.1735, allocations: 4 kB / 0.7739 GB, free: 332 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3181/0.4916, allocations: 1.816 MB / 0.7756 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.082/7.574, allocations: 7.812 kB / 0.7756 GB, free: 14.5 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1)