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.714/0.714, allocations: 127.4 MB / 134.9 MB, free: 3.742 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001085/0.001085, allocations: 184.8 kB / 164.7 MB, free: 6.531 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.768/1.768, allocations: 205.2 MB / 399.5 MB, free: 5.879 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.0009045/0.0009044, allocations: 87.59 kB / 476.7 MB, free: 8.602 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 2.175e-05/2.168e-05, allocations: 4 kB / 0.5467 GB, free: 60.41 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1843/0.1843, allocations: 76.77 MB / 0.6216 GB, free: 15.57 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6592/0.8435, allocations: 102.3 MB / 0.7215 GB, free: 13.09 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002554/0.8439, allocations: 77.77 kB / 0.7216 GB, free: 13.04 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003434/0.8473, allocations: 1.126 MB / 0.7227 GB, free: 12.03 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.8473, allocations: 2.188 kB / 0.7227 GB, free: 12.03 MB / 490.7 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.8473, allocations: 4 kB / 0.7227 GB, free: 12.03 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.0004623/0.8478, allocations: 370.6 kB / 0.7231 GB, free: 11.62 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/0.8479, allocations: 8.031 kB / 0.7231 GB, free: 11.62 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.901e-05/0.8479, allocations: 11.86 kB / 0.7231 GB, free: 11.61 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001947/0.8481, allocations: 190.7 kB / 0.7233 GB, free: 11.38 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.8481, allocations: 0 / 0.7233 GB, free: 11.38 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.271e-05/0.8482, allocations: 7.938 kB / 0.7233 GB, free: 11.38 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001026/0.8483, allocations: 30.17 kB / 0.7233 GB, free: 11.36 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001164/0.8484, allocations: 61 kB / 0.7234 GB, free: 11.3 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.168e-06/0.8484, allocations: 0 / 0.7234 GB, free: 11.3 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.7e-05/0.8484, allocations: 7.969 kB / 0.7234 GB, free: 11.29 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.8484, allocations: 4 kB / 0.7234 GB, free: 11.29 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005529/0.849, allocations: 307.8 kB / 0.7237 GB, free: 10.97 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.489e-05/0.8491, allocations: 34.48 kB / 0.7237 GB, free: 10.93 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.038e-05/0.8491, allocations: 24.61 kB / 0.7237 GB, free: 10.91 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.276e-05/0.8492, allocations: 0 / 0.7237 GB, free: 10.91 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/0.8492, allocations: 30.56 kB / 0.7237 GB, free: 10.87 MB / 490.7 MB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.8492, allocations: 0 / 0.7237 GB, free: 10.87 MB / 490.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002555/0.8495, allocations: 64.91 kB / 0.7238 GB, free: 10.81 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.108e-05/0.8495, allocations: 51.41 kB / 0.7239 GB, free: 10.75 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.741e-05/0.8496, allocations: 99.28 kB / 0.724 GB, free: 10.65 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.8496, allocations: 29.7 kB / 0.724 GB, free: 10.61 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.086e-05/0.8497, allocations: 99.78 kB / 0.7241 GB, free: 10.52 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.263e-05/0.8497, allocations: 11.84 kB / 0.7241 GB, free: 10.51 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.549e-06/0.8497, allocations: 3.938 kB / 0.7241 GB, free: 10.5 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.8499, allocations: 318.7 kB / 0.7244 GB, free: 10.19 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.694e-05/0.8499, allocations: 11.81 kB / 0.7244 GB, free: 10.18 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.912e-05/0.8499, allocations: 7.875 kB / 0.7244 GB, free: 10.18 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.954e-05/0.85, allocations: 11.98 kB / 0.7244 GB, free: 10.16 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.85, allocations: 0.75 kB / 0.7244 GB, free: 10.16 MB / 490.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000106/0.8501, allocations: 57.28 kB / 0.7245 GB, free: 10.11 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.8501, allocations: 12 kB / 0.7245 GB, free: 10.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.8501, allocations: 0 / 0.7245 GB, free: 10.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.8502, allocations: 0 / 0.7245 GB, free: 10.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001435/0.8503, allocations: 23.94 kB / 0.7245 GB, free: 10.07 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.8503, allocations: 0 / 0.7245 GB, free: 10.07 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.098e-05/0.8504, allocations: 23.22 kB / 0.7245 GB, free: 10.05 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.24e-05/0.8505, allocations: 7.938 kB / 0.7245 GB, free: 10.05 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 7.567e-05/0.8505, allocations: 104.9 kB / 0.7246 GB, free: 9.938 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001184/0.8507, allocations: 65.22 kB / 0.7247 GB, free: 9.875 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.309e-05/0.8507, allocations: 4 kB / 0.7247 GB, free: 9.871 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001504/0.8509, allocations: 66.02 kB / 0.7248 GB, free: 9.805 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.8509, allocations: 0 / 0.7248 GB, free: 9.805 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.453e-06/0.8509, allocations: 3.984 kB / 0.7248 GB, free: 9.801 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.207e-06/0.8509, allocations: 4 kB / 0.7248 GB, free: 9.797 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001511/0.851, allocations: 153.5 kB / 0.7249 GB, free: 9.621 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.8511, allocations: 0 / 0.7249 GB, free: 9.621 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.8512, allocations: 23.97 kB / 0.725 GB, free: 9.598 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.8512, allocations: 3.938 kB / 0.725 GB, free: 9.594 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.8512, allocations: 2.938 kB / 0.725 GB, free: 9.594 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.8512, allocations: 4 kB / 0.725 GB, free: 9.59 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.8512, allocations: 3.953 kB / 0.725 GB, free: 9.586 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000165/0.8514, allocations: 155.2 kB / 0.7251 GB, free: 9.426 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.112e-05/0.8514, allocations: 85.09 kB / 0.7252 GB, free: 9.324 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.687e-05/0.8515, allocations: 0 / 0.7252 GB, free: 9.324 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.8516, allocations: 15.98 kB / 0.7252 GB, free: 9.309 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.434e-05/0.8516, allocations: 7.891 kB / 0.7252 GB, free: 9.305 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.106e-06/0.8516, allocations: 4 kB / 0.7252 GB, free: 9.301 MB / 490.7 MB Notification: Performance of sorting global known variables: time 4.998e-05/0.8517, allocations: 95.14 kB / 0.7253 GB, free: 9.211 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.8517, allocations: 0 / 0.7253 GB, free: 9.211 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002159/0.8519, allocations: 11.91 kB / 0.7253 GB, free: 9.199 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.0004923/0.8524, allocations: 0.6953 MB / 0.726 GB, free: 8.488 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 9.634e-05/0.8525, allocations: 23.75 kB / 0.726 GB, free: 8.473 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.8525, allocations: 4 kB / 0.726 GB, free: 8.469 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 3.625e-05/0.8526, allocations: 23.73 kB / 0.7261 GB, free: 8.453 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001907/0.8528, allocations: 8.922 kB / 0.7261 GB, free: 8.445 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000411/0.8532, allocations: 133.3 kB / 0.7262 GB, free: 8.281 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.8535, allocations: 0.6885 MB / 0.7269 GB, free: 7.566 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 4.541e-05/0.8536, allocations: 7.984 kB / 0.7269 GB, free: 7.559 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.397e-05/0.8536, allocations: 23.3 kB / 0.7269 GB, free: 7.539 MB / 490.7 MB Notification: Performance of SimCode: time 2.51e-07/0.8536, allocations: 0 / 0.7269 GB, free: 7.539 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02325/0.8769, allocations: 1.137 MB / 0.728 GB, free: 6.414 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002466/0.8772, allocations: 139 kB / 0.7281 GB, free: 6.219 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.654/2.531, allocations: 1.125 kB / 0.7281 GB, free: 6.219 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)