Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.628/2.628, allocations: 390.3 MB / 405.3 MB, free: 13.46 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001923/0.001923, allocations: 183.3 kB / 498.1 MB, free: 5.734 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.514/1.514, allocations: 223.2 MB / 0.7948 GB, free: 17.92 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 100.1 kB / 0.9346 GB, free: 6.215 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004039/0.0004038, allocations: 10.38 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2697/0.2702, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1748/0.445, allocations: 149.5 MB / 1.369 GB, free: 12.55 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002449/0.4453, allocations: 67.97 kB / 1.369 GB, free: 12.48 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003536/0.4488, allocations: 1.132 MB / 1.37 GB, free: 11.34 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.903e-06/0.4489, allocations: 7.938 kB / 1.37 GB, free: 11.33 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.116e-05/0.4489, allocations: 4 kB / 1.37 GB, free: 11.33 MB / 0.8698 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.0004898/0.4494, allocations: 383 kB / 1.37 GB, free: 10.91 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.4494, allocations: 12.03 kB / 1.37 GB, free: 10.89 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.165e-05/0.4495, allocations: 42.55 kB / 1.37 GB, free: 10.84 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.995e-05/0.4495, allocations: 7.906 kB / 1.37 GB, free: 10.84 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001754/0.4497, allocations: 175 kB / 1.371 GB, free: 10.62 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.4497, allocations: 4 kB / 1.371 GB, free: 10.62 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.794e-05/0.4498, allocations: 11.94 kB / 1.371 GB, free: 10.61 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000295/0.4501, allocations: 105.6 kB / 1.371 GB, free: 10.5 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.4501, allocations: 0 / 1.371 GB, free: 10.5 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.4501, allocations: 0 / 1.371 GB, free: 10.5 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.4501, allocations: 0 / 1.371 GB, free: 10.5 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000319/0.4504, allocations: 99.92 kB / 1.371 GB, free: 10.4 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005389/0.451, allocations: 344.6 kB / 1.371 GB, free: 10.02 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000205/0.4512, allocations: 62.64 kB / 1.371 GB, free: 9.945 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.507e-05/0.4512, allocations: 11.98 kB / 1.371 GB, free: 9.934 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.4513, allocations: 34.56 kB / 1.371 GB, free: 9.891 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 1.392e-06/0.4513, allocations: 0 / 1.371 GB, free: 9.891 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3): time 0.0005724/0.4519, allocations: 173.5 kB / 1.371 GB, free: 9.715 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.569e-05/0.4519, allocations: 59.41 kB / 1.372 GB, free: 9.645 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.067e-05/0.452, allocations: 104.9 kB / 1.372 GB, free: 9.535 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.452, allocations: 33.7 kB / 1.372 GB, free: 9.496 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.194e-05/0.4521, allocations: 92.11 kB / 1.372 GB, free: 9.402 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.81e-05/0.4521, allocations: 11.81 kB / 1.372 GB, free: 9.391 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-06/0.4521, allocations: 0 / 1.372 GB, free: 9.391 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 9.159e-05/0.4522, allocations: 314.8 kB / 1.372 GB, free: 9.074 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001589/0.4524, allocations: 47.95 kB / 1.372 GB, free: 9.027 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000155/0.4525, allocations: 39.97 kB / 1.372 GB, free: 8.988 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001453/0.4527, allocations: 47.95 kB / 1.372 GB, free: 8.941 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.4527, allocations: 0 / 1.372 GB, free: 8.941 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003497/0.4531, allocations: 133.5 kB / 1.372 GB, free: 8.805 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.4531, allocations: 4 kB / 1.372 GB, free: 8.801 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.4531, allocations: 0 / 1.372 GB, free: 8.801 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.4531, allocations: 4 kB / 1.372 GB, free: 8.797 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001457/0.4533, allocations: 23.94 kB / 1.372 GB, free: 8.773 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.4533, allocations: 4 kB / 1.372 GB, free: 8.77 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.322e-05/0.4534, allocations: 19.92 kB / 1.372 GB, free: 8.75 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.275e-05/0.4534, allocations: 0 / 1.372 GB, free: 8.75 MB / 0.8698 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 9.555e-05/0.4535, allocations: 121.8 kB / 1.372 GB, free: 8.621 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.837e-05/0.4536, allocations: 3.906 kB / 1.372 GB, free: 8.617 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004233/0.454, allocations: 137.5 kB / 1.373 GB, free: 8.473 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.454, allocations: 384 / 1.373 GB, free: 8.473 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.454, allocations: 7.891 kB / 1.373 GB, free: 8.465 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.454, allocations: 3.938 kB / 1.373 GB, free: 8.461 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001859/0.4542, allocations: 177.6 kB / 1.373 GB, free: 8.238 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.4542, allocations: 7.984 kB / 1.373 GB, free: 8.23 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001167/0.4544, allocations: 15.98 kB / 1.373 GB, free: 8.215 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.4544, allocations: 8 kB / 1.373 GB, free: 8.207 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.4544, allocations: 0 / 1.373 GB, free: 8.207 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.043e-06/0.4544, allocations: 0 / 1.373 GB, free: 8.207 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4544, allocations: 0 / 1.373 GB, free: 8.207 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000394/0.4548, allocations: 227.3 kB / 1.373 GB, free: 7.969 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.464e-05/0.4548, allocations: 77.11 kB / 1.373 GB, free: 7.875 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.421e-05/0.4549, allocations: 0 / 1.373 GB, free: 7.875 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.455, allocations: 23.97 kB / 1.373 GB, free: 7.852 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.935e-05/0.455, allocations: 7.938 kB / 1.373 GB, free: 7.844 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.455, allocations: 4 kB / 1.373 GB, free: 7.84 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.624e-05/0.4551, allocations: 95.64 kB / 1.373 GB, free: 7.746 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4551, allocations: 3.938 kB / 1.373 GB, free: 7.742 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.000224/0.4553, allocations: 19.95 kB / 1.373 GB, free: 7.723 MB / 0.8698 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.0006896/0.456, allocations: 0.759 MB / 1.374 GB, free: 6.938 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003996/0.4565, allocations: 95.91 kB / 1.374 GB, free: 6.844 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.4565, allocations: 0 / 1.374 GB, free: 6.844 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001719/0.4566, allocations: 51.91 kB / 1.374 GB, free: 6.793 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001634/0.4568, allocations: 11.98 kB / 1.374 GB, free: 6.781 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001113/0.4579, allocations: 0.5691 MB / 1.375 GB, free: 6.16 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002458/0.4582, allocations: 0.7042 MB / 1.375 GB, free: 5.43 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 4.719e-05/0.4583, allocations: 7.984 kB / 1.375 GB, free: 5.422 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.962e-05/0.4583, allocations: 15.44 kB / 1.375 GB, free: 5.406 MB / 0.8698 GB Notification: Performance of SimCode: time 4.51e-07/0.4583, allocations: 0 / 1.375 GB, free: 5.406 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01312/0.4714, allocations: 1.456 MB / 1.377 GB, free: 4.062 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001929/0.4717, allocations: 166.8 kB / 1.377 GB, free: 3.824 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.531/2.003, allocations: 0 / 1.377 GB, free: 3.824 MB / 0.8698 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.Average_res.mat does not exist to compare? outputFormat=mat