Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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(BuildSysPro.IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="BuildSysPro_BuildSysPro_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.0008408/0.0008408, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0008339/0.000834, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 223.2 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 0.9845/0.9845, allocations: 143.4 MB / 434.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003096/0.0003096, allocations: 8 kB / 0.5161 GB, free: 11.18 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1668/0.1671, allocations: 83.41 MB / 0.5975 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Average): time 0.001747/0.1689, allocations: 1.245 MB / 0.5988 GB, free: 6.445 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002899/0.1692, allocations: 104.6 kB / 0.5989 GB, free: 6.34 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.718e-05/0.1693, allocations: 0 / 0.5989 GB, free: 6.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 9.547e-05/0.1694, allocations: 7.922 kB / 0.5989 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.264e-05/0.1694, allocations: 7.938 kB / 0.5989 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000192/0.1696, allocations: 23.97 kB / 0.5989 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.037e-05/0.1697, allocations: 43.84 kB / 0.5989 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.734e-05/0.1698, allocations: 31.91 kB / 0.599 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.328e-05/0.1699, allocations: 15.98 kB / 0.599 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.248e-05/0.1699, allocations: 23.86 kB / 0.599 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.284e-05/0.17, allocations: 0 / 0.599 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.083e-05/0.17, allocations: 11.98 kB / 0.599 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.961e-05/0.17, allocations: 11.98 kB / 0.599 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.976e-05/0.1701, allocations: 37.64 kB / 0.5991 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 9.033e-05/0.1702, allocations: 43.86 kB / 0.5991 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.1702, allocations: 0 / 0.5991 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.824e-06/0.1702, allocations: 0 / 0.5991 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.947e-06/0.1702, allocations: 4 kB / 0.5991 GB, free: 6.074 MB / 0.4981 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.0005576/0.1708, allocations: 379.4 kB / 0.5995 GB, free: 5.656 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.591e-05/0.1708, allocations: 12.03 kB / 0.5995 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.092e-05/0.1709, allocations: 34.56 kB / 0.5995 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.116e-05/0.1709, allocations: 11.86 kB / 0.5995 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003317/0.1713, allocations: 179 kB / 0.5997 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.045e-05/0.1713, allocations: 3.938 kB / 0.5997 GB, free: 5.371 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.955e-05/0.1713, allocations: 8 kB / 0.5997 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003006/0.1716, allocations: 105.6 kB / 0.5998 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.1716, allocations: 0 / 0.5998 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-06/0.1716, allocations: 0 / 0.5998 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.1717, allocations: 3.984 kB / 0.5998 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002905/0.1719, allocations: 103.9 kB / 0.5999 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005252/0.1725, allocations: 340.6 kB / 0.6002 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001886/0.1727, allocations: 70.53 kB / 0.6003 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000147/0.1728, allocations: 52.95 kB / 0.6004 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.406e-05/0.1729, allocations: 0 / 0.6004 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.1729, allocations: 42.45 kB / 0.6004 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 7.92e-07/0.1729, allocations: 0 / 0.6004 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0005225/0.1735, allocations: 173.6 kB / 0.6006 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.069e-05/0.1735, allocations: 51.41 kB / 0.6006 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.1736, allocations: 113.8 kB / 0.6007 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.1736, allocations: 29.7 kB / 0.6007 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.037e-05/0.1737, allocations: 99.97 kB / 0.6008 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.955e-05/0.1737, allocations: 3.906 kB / 0.6008 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.074e-06/0.1738, allocations: 4 kB / 0.6008 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.1739, allocations: 314.8 kB / 0.6011 GB, free: 3.762 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000141/0.174, allocations: 51.89 kB / 0.6012 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001236/0.1742, allocations: 39.97 kB / 0.6012 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001342/0.1743, allocations: 47.95 kB / 0.6013 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1743, allocations: 0 / 0.6013 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000322/0.1746, allocations: 133.5 kB / 0.6014 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.1747, allocations: 7.953 kB / 0.6014 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.1747, allocations: 0 / 0.6014 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.1747, allocations: 0 / 0.6014 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.1748, allocations: 23.98 kB / 0.6014 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.1748, allocations: 3.984 kB / 0.6014 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.071e-05/0.1749, allocations: 15.98 kB / 0.6015 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.224e-05/0.1749, allocations: 4 kB / 0.6015 GB, free: 3.434 MB / 0.4981 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001048/0.175, allocations: 117.8 kB / 0.6016 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.621e-05/0.1751, allocations: 3.906 kB / 0.6016 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003726/0.1755, allocations: 145.4 kB / 0.6017 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.1755, allocations: 3.984 kB / 0.6017 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1755, allocations: 0 / 0.6017 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1755, allocations: 3.938 kB / 0.6017 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001837/0.1757, allocations: 177.6 kB / 0.6019 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.1757, allocations: 0 / 0.6019 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.188e-05/0.1758, allocations: 19.98 kB / 0.6019 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.1758, allocations: 0 / 0.6019 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.1758, allocations: 7.938 kB / 0.6019 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.1758, allocations: 11.95 kB / 0.6019 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1758, allocations: 0 / 0.6019 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003649/0.1762, allocations: 215.8 kB / 0.6021 GB, free: 2.652 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.232e-05/0.1762, allocations: 85.06 kB / 0.6022 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.847e-05/0.1763, allocations: 7.984 kB / 0.6022 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.1764, allocations: 19.98 kB / 0.6022 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.384e-05/0.1764, allocations: 11.94 kB / 0.6023 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.1764, allocations: 4 kB / 0.6023 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.092e-05/0.1765, allocations: 91.27 kB / 0.6023 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1765, allocations: 0 / 0.6023 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002235/0.1767, allocations: 11.94 kB / 0.6024 GB, free: 2.406 MB / 0.4981 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 (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.0007335/0.1775, allocations: 0.7631 MB / 0.6031 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000351/0.1778, allocations: 99.91 kB / 0.6032 GB, free: 1.52 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.1779, allocations: 0 / 0.6032 GB, free: 1.52 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001529/0.178, allocations: 43.97 kB / 0.6032 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003054/0.1783, allocations: 15.94 kB / 0.6033 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001112/0.1795, allocations: 0.5731 MB / 0.6038 GB, free: 0.8398 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.1798, allocations: 0.6934 MB / 0.6045 GB, free: 124 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.352e-05/0.1798, allocations: 7.984 kB / 0.6045 GB, free: 116 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.578e-05/0.1799, allocations: 11.44 kB / 0.6045 GB, free: 104 kB / 0.4981 GB Notification: Performance of SimCode: time 4.8e-07/0.1799, allocations: 0 / 0.6045 GB, free: 104 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3111/0.4909, allocations: 1.481 MB / 0.606 GB, free: 40.14 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000145/0.4911, allocations: 182.8 kB / 0.6061 GB, free: 39.91 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.683/2.174, allocations: 3.906 kB / 0.6061 GB, free: 39.91 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Average.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe 2>&1) Environment - environmentSimulation: