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/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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/BuildSysPro 3.5.0/package.mo): time 0.7704/0.7704, allocations: 127.3 MB / 139.8 MB, free: 15.46 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001211/0.001211, allocations: 176.8 kB / 169.7 MB, free: 1.75 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.703/1.703, allocations: 205.1 MB / 404.5 MB, free: 1.582 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009583/0.0009583, allocations: 82.09 kB / 481.8 MB, free: 4.242 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 6.137e-05/6.155e-05, allocations: 4 kB / 0.5533 GB, free: 54.74 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.1814, allocations: 76.75 MB / 0.6282 GB, free: 9.934 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6647/0.8462, allocations: 102.7 MB / 0.7286 GB, free: 10.71 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002494/0.8465, allocations: 73.39 kB / 0.7286 GB, free: 10.68 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003469/0.85, allocations: 1.123 MB / 0.7297 GB, free: 9.656 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.85, allocations: 4 kB / 0.7297 GB, free: 9.652 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.434e-05/0.85, allocations: 4 kB / 0.7297 GB, free: 9.648 MB / 490.7 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.0004796/0.8505, allocations: 374.2 kB / 0.7301 GB, free: 9.25 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/0.8506, allocations: 12.03 kB / 0.7301 GB, free: 9.238 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.199e-05/0.8506, allocations: 42.44 kB / 0.7301 GB, free: 9.188 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.317e-05/0.8507, allocations: 11.86 kB / 0.7301 GB, free: 9.176 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002076/0.8509, allocations: 188.6 kB / 0.7303 GB, free: 8.957 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.8509, allocations: 7.625 kB / 0.7303 GB, free: 8.953 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.175e-05/0.8509, allocations: 0 / 0.7303 GB, free: 8.953 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001531/0.8511, allocations: 63.92 kB / 0.7304 GB, free: 8.895 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.8511, allocations: 0 / 0.7304 GB, free: 8.895 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.8511, allocations: 7.688 kB / 0.7304 GB, free: 8.891 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.8511, allocations: 0 / 0.7304 GB, free: 8.891 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.953e-05/0.8512, allocations: 38.92 kB / 0.7304 GB, free: 8.859 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005546/0.8518, allocations: 340.9 kB / 0.7308 GB, free: 8.504 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.76e-05/0.8519, allocations: 37.58 kB / 0.7308 GB, free: 8.465 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.991e-05/0.8519, allocations: 22.84 kB / 0.7308 GB, free: 8.445 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.256e-05/0.852, allocations: 3.953 kB / 0.7308 GB, free: 8.441 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.852, allocations: 34.56 kB / 0.7309 GB, free: 8.398 MB / 490.7 MB Notification: Performance of pre-optimization done (n=3): time 1.153e-06/0.852, allocations: 0 / 0.7309 GB, free: 8.398 MB / 490.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002027/0.8522, allocations: 55.53 kB / 0.7309 GB, free: 8.348 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.986e-05/0.8523, allocations: 55.34 kB / 0.731 GB, free: 8.281 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.521e-05/0.8524, allocations: 108.7 kB / 0.7311 GB, free: 8.172 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.8524, allocations: 29.45 kB / 0.7311 GB, free: 8.141 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.187e-05/0.8525, allocations: 91.36 kB / 0.7312 GB, free: 8.051 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.853e-05/0.8525, allocations: 7.844 kB / 0.7312 GB, free: 8.043 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.909e-06/0.8525, allocations: 2.75 kB / 0.7312 GB, free: 8.043 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.8527, allocations: 318.8 kB / 0.7315 GB, free: 7.723 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.906e-05/0.8527, allocations: 9.938 kB / 0.7315 GB, free: 7.719 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.285e-05/0.8527, allocations: 11.25 kB / 0.7315 GB, free: 7.711 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.242e-05/0.8528, allocations: 15.3 kB / 0.7315 GB, free: 7.699 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.8528, allocations: 4 kB / 0.7315 GB, free: 7.695 MB / 490.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 9.879e-05/0.8529, allocations: 56.97 kB / 0.7316 GB, free: 7.641 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.8529, allocations: 7.953 kB / 0.7316 GB, free: 7.633 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.8529, allocations: 4 kB / 0.7316 GB, free: 7.629 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.853, allocations: 0 / 0.7316 GB, free: 7.629 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001508/0.8531, allocations: 23.92 kB / 0.7316 GB, free: 7.605 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.305e-06/0.8531, allocations: 0 / 0.7316 GB, free: 7.605 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.971e-05/0.8532, allocations: 31.47 kB / 0.7317 GB, free: 7.578 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.003e-05/0.8532, allocations: 0 / 0.7317 GB, free: 7.578 MB / 490.7 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 () * 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 8.564e-05/0.8534, allocations: 104.9 kB / 0.7318 GB, free: 7.469 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.674e-05/0.8534, allocations: 7.906 kB / 0.7318 GB, free: 7.461 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001722/0.8536, allocations: 68.47 kB / 0.7318 GB, free: 7.395 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.8536, allocations: 4 kB / 0.7318 GB, free: 7.391 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.8536, allocations: 0 / 0.7318 GB, free: 7.391 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.8536, allocations: 4 kB / 0.7318 GB, free: 7.387 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002131/0.8538, allocations: 179.3 kB / 0.732 GB, free: 7.172 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.8538, allocations: 0 / 0.732 GB, free: 7.172 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/0.8539, allocations: 23.92 kB / 0.732 GB, free: 7.148 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.854, allocations: 0 / 0.732 GB, free: 7.148 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.854, allocations: 3.984 kB / 0.732 GB, free: 7.145 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.854, allocations: 3.953 kB / 0.732 GB, free: 7.141 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.854, allocations: 0 / 0.732 GB, free: 7.141 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001722/0.8542, allocations: 156.2 kB / 0.7322 GB, free: 6.984 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.629e-05/0.8542, allocations: 89.05 kB / 0.7323 GB, free: 6.879 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.8543, allocations: 0 / 0.7323 GB, free: 6.879 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.8544, allocations: 15.98 kB / 0.7323 GB, free: 6.863 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.17e-05/0.8544, allocations: 7.938 kB / 0.7323 GB, free: 6.855 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.8545, allocations: 4 kB / 0.7323 GB, free: 6.852 MB / 490.7 MB Notification: Performance of sorting global known variables: time 5.667e-05/0.8545, allocations: 98.92 kB / 0.7324 GB, free: 6.762 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8545, allocations: 0 / 0.7324 GB, free: 6.762 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002031/0.8547, allocations: 8 kB / 0.7324 GB, free: 6.754 MB / 490.7 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 () * 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.0005888/0.8553, allocations: 0.6946 MB / 0.7331 GB, free: 6.043 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001329/0.8555, allocations: 37.17 kB / 0.7331 GB, free: 6.016 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.8555, allocations: 0 / 0.7331 GB, free: 6.016 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 4.181e-05/0.8555, allocations: 22.12 kB / 0.7331 GB, free: 6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002023/0.8557, allocations: 3.953 kB / 0.7331 GB, free: 5.996 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005223/0.8563, allocations: 132.9 kB / 0.7333 GB, free: 5.836 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003861/0.8567, allocations: 0.6932 MB / 0.7339 GB, free: 5.117 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 5.196e-05/0.8567, allocations: 12.69 kB / 0.734 GB, free: 5.105 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.807e-05/0.8568, allocations: 18 kB / 0.734 GB, free: 5.094 MB / 490.7 MB Notification: Performance of SimCode: time 2.21e-07/0.8568, allocations: 0 / 0.734 GB, free: 5.094 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01347/0.8703, allocations: 1.477 MB / 0.7354 GB, free: 3.73 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002327/0.8706, allocations: 154.5 kB / 0.7356 GB, free: 3.504 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.653/2.524, allocations: 4 kB / 0.7356 GB, free: 3.5 MB / 490.7 MB (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)