Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_latest_Buildings_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.001463/0.001464, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.00176/0.001761, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.823/2.823, allocations: 223.2 MB / 239.9 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.628/4.628, allocations: 409.2 MB / 0.6838 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0005883/0.0005886, allocations: 8 kB / 0.8375 GB, free: 6.562 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.493/1.494, allocations: 146.8 MB / 0.9809 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002962/1.497, allocations: 1.241 MB / 0.9821 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0004621/1.497, allocations: 104.6 kB / 0.9822 GB, free: 4.941 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.003e-05/1.497, allocations: 0 / 0.9822 GB, free: 4.941 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002078/1.498, allocations: 15.91 kB / 0.9822 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.368e-05/1.498, allocations: 4 kB / 0.9822 GB, free: 4.922 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003605/1.498, allocations: 31.95 kB / 0.9822 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000124/1.498, allocations: 27.97 kB / 0.9822 GB, free: 4.863 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/1.498, allocations: 27.84 kB / 0.9823 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.878e-05/1.498, allocations: 15.98 kB / 0.9823 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001199/1.499, allocations: 31.83 kB / 0.9823 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.508e-05/1.499, allocations: 4 kB / 0.9823 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.944e-05/1.499, allocations: 4 kB / 0.9823 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.536e-05/1.499, allocations: 15.98 kB / 0.9823 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.898e-05/1.499, allocations: 29.64 kB / 0.9824 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000178/1.499, allocations: 35.94 kB / 0.9824 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/1.499, allocations: 4 kB / 0.9824 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of FrontEnd: time 5.761e-06/1.499, allocations: 0 / 0.9824 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.524e-06/1.499, allocations: 0 / 0.9824 GB, free: 4.688 MB / 0.7325 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.001074/1.5, allocations: 385.4 kB / 0.9828 GB, free: 4.266 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 7.976e-05/1.5, allocations: 12.03 kB / 0.9828 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.889e-05/1.5, allocations: 34.56 kB / 0.9828 GB, free: 4.211 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.767e-05/1.5, allocations: 7.906 kB / 0.9828 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004376/1.501, allocations: 187 kB / 0.983 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.944e-05/1.501, allocations: 7.875 kB / 0.983 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.7e-05/1.501, allocations: 7.953 kB / 0.983 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005056/1.501, allocations: 97.64 kB / 0.9831 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/1.502, allocations: 0 / 0.9831 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.083e-05/1.502, allocations: 4 kB / 0.9831 GB, free: 3.859 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/1.502, allocations: 0 / 0.9831 GB, free: 3.859 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005043/1.502, allocations: 103.9 kB / 0.9832 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009374/1.503, allocations: 344.6 kB / 0.9835 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000347/1.503, allocations: 66.53 kB / 0.9836 GB, free: 3.297 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 6.203e-05/1.503, allocations: 8 kB / 0.9836 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.053e-05/1.504, allocations: 34.59 kB / 0.9836 GB, free: 3.246 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.563e-06/1.504, allocations: 0 / 0.9836 GB, free: 3.246 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0009373/1.504, allocations: 169.6 kB / 0.9838 GB, free: 3.074 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.374e-05/1.505, allocations: 55.41 kB / 0.9839 GB, free: 3.008 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001579/1.505, allocations: 117.8 kB / 0.984 GB, free: 2.883 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.642e-05/1.505, allocations: 25.7 kB / 0.984 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/1.505, allocations: 88.14 kB / 0.9841 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.753e-05/1.505, allocations: 15.75 kB / 0.9841 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.402e-06/1.505, allocations: 0 / 0.9841 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002275/1.505, allocations: 330.8 kB / 0.9844 GB, free: 2.414 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002413/1.505, allocations: 39.97 kB / 0.9845 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002377/1.506, allocations: 51.89 kB / 0.9845 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002559/1.506, allocations: 47.95 kB / 0.9845 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/1.506, allocations: 0 / 0.9845 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005256/1.507, allocations: 121.6 kB / 0.9847 GB, free: 2.152 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.641e-05/1.507, allocations: 8 kB / 0.9847 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/1.507, allocations: 0 / 0.9847 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/1.507, allocations: 0 / 0.9847 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002084/1.507, allocations: 23.97 kB / 0.9847 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/1.507, allocations: 3.938 kB / 0.9847 GB, free: 2.117 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001377/1.507, allocations: 19.98 kB / 0.9847 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.287e-05/1.507, allocations: 0 / 0.9847 GB, free: 2.098 MB / 0.7325 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.0001531/1.507, allocations: 117.8 kB / 0.9848 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.331e-05/1.507, allocations: 12.22 kB / 0.9848 GB, free: 1.961 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006775/1.508, allocations: 137.4 kB / 0.985 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/1.508, allocations: 0 / 0.985 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.377e-06/1.508, allocations: 7.938 kB / 0.985 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/1.508, allocations: 0 / 0.985 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003577/1.508, allocations: 181.6 kB / 0.9852 GB, free: 1.582 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/1.508, allocations: 4 kB / 0.9852 GB, free: 1.578 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001555/1.509, allocations: 23.97 kB / 0.9852 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/1.509, allocations: 0 / 0.9852 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/1.509, allocations: 0 / 0.9852 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/1.509, allocations: 0 / 0.9852 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/1.509, allocations: 0 / 0.9852 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006527/1.509, allocations: 231.3 kB / 0.9854 GB, free: 1.312 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.974e-05/1.509, allocations: 81.11 kB / 0.9855 GB, free: 1.215 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.074e-05/1.509, allocations: 8 kB / 0.9855 GB, free: 1.207 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001873/1.51, allocations: 15.98 kB / 0.9855 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.977e-05/1.51, allocations: 3.984 kB / 0.9855 GB, free: 1.188 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.181e-05/1.51, allocations: 0 / 0.9855 GB, free: 1.188 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000103/1.51, allocations: 95.27 kB / 0.9856 GB, free: 1.094 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.91e-07/1.51, allocations: 4 kB / 0.9856 GB, free: 1.09 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004715/1.51, allocations: 15.91 kB / 0.9856 GB, free: 1.074 MB / 0.7325 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.00117/1.511, allocations: 0.7515 MB / 0.9863 GB, free: 300 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000623/1.512, allocations: 95.86 kB / 0.9864 GB, free: 204 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/1.512, allocations: 4 kB / 0.9864 GB, free: 200 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002718/1.512, allocations: 55.95 kB / 0.9865 GB, free: 144 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004126/1.513, allocations: 0.7656 kB / 0.9865 GB, free: 144 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002081/1.515, allocations: 0.5756 MB / 0.9871 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006554/1.516, allocations: 0.6887 MB / 0.9877 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 9.595e-05/1.516, allocations: 12.23 kB / 0.9877 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001351/1.516, allocations: 19.42 kB / 0.9878 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of SimCode: time 2.345e-06/1.516, allocations: 0 / 0.9878 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02387/1.54, allocations: 1.46 MB / 0.9892 GB, free: 13.43 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004523/1.54, allocations: 190.1 kB / 0.9894 GB, free: 13.18 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.894/4.435, allocations: 0 / 0.9894 GB, free: 13.18 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat does not exist to compare? outputFormat=mat