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/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.568/2.568, allocations: 393.5 MB / 408.4 MB, free: 11.05 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.001377/0.001377, allocations: 183.9 kB / 0.4901 GB, free: 2.227 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.658/1.658, allocations: 223.1 MB / 0.7992 GB, free: 15.67 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.0008948/0.0008947, allocations: 108.1 kB / 0.9396 GB, free: 2.836 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003358/0.0003358, allocations: 11.75 kB / 1.09 GB, free: 213 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2562, allocations: 143 MB / 1.229 GB, free: 85.37 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1919/0.4482, allocations: 150.3 MB / 1.376 GB, free: 14.92 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002554/0.4485, allocations: 75.95 kB / 1.376 GB, free: 14.85 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.003867/0.4524, allocations: 1.134 MB / 1.377 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.764e-06/0.4524, allocations: 0 / 1.377 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.29e-05/0.4525, allocations: 4 kB / 1.377 GB, free: 13.7 MB / 0.8855 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.0005368/0.453, allocations: 383.1 kB / 1.378 GB, free: 13.28 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.4531, allocations: 12.56 kB / 1.378 GB, free: 13.27 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.39e-05/0.4531, allocations: 42.55 kB / 1.378 GB, free: 13.22 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.546e-05/0.4532, allocations: 0 / 1.378 GB, free: 13.22 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002133/0.4534, allocations: 190.8 kB / 1.378 GB, free: 12.99 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.715e-06/0.4534, allocations: 4 kB / 1.378 GB, free: 12.99 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.916e-05/0.4534, allocations: 8 kB / 1.378 GB, free: 12.98 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002853/0.4537, allocations: 101.6 kB / 1.378 GB, free: 12.88 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.4537, allocations: 0 / 1.378 GB, free: 12.88 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.4538, allocations: 0 / 1.378 GB, free: 12.88 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.4538, allocations: 4 kB / 1.378 GB, free: 12.87 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003256/0.4541, allocations: 95.92 kB / 1.378 GB, free: 12.78 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00062/0.4547, allocations: 344.6 kB / 1.378 GB, free: 12.39 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002168/0.455, allocations: 66.55 kB / 1.378 GB, free: 12.32 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 4.207e-05/0.455, allocations: 8.078 kB / 1.378 GB, free: 12.31 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.4551, allocations: 30.56 kB / 1.378 GB, free: 12.27 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=3): time 1.292e-06/0.4551, allocations: 4 kB / 1.378 GB, free: 12.27 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3): time 0.0006044/0.4557, allocations: 173.6 kB / 1.379 GB, free: 12.09 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/0.4557, allocations: 51.41 kB / 1.379 GB, free: 12.03 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.4559, allocations: 112.9 kB / 1.379 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.4559, allocations: 25.7 kB / 1.379 GB, free: 11.88 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.614e-05/0.4559, allocations: 92.05 kB / 1.379 GB, free: 11.79 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.423e-05/0.456, allocations: 11.83 kB / 1.379 GB, free: 11.77 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.264e-06/0.456, allocations: 4 kB / 1.379 GB, free: 11.77 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001446/0.4561, allocations: 314.8 kB / 1.379 GB, free: 11.45 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001551/0.4563, allocations: 47.95 kB / 1.379 GB, free: 11.41 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000144/0.4565, allocations: 47.91 kB / 1.379 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001521/0.4566, allocations: 47.89 kB / 1.379 GB, free: 11.31 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.4566, allocations: 0 / 1.379 GB, free: 11.31 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003543/0.457, allocations: 137.5 kB / 1.379 GB, free: 11.17 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.457, allocations: 4 kB / 1.379 GB, free: 11.17 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.457, allocations: 0 / 1.379 GB, free: 11.17 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.4571, allocations: 4 kB / 1.379 GB, free: 11.16 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001437/0.4572, allocations: 23.94 kB / 1.379 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.4572, allocations: 0 / 1.379 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.139e-05/0.4573, allocations: 15.98 kB / 1.379 GB, free: 11.12 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.205e-05/0.4573, allocations: 0 / 1.379 GB, free: 11.12 MB / 0.8855 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.0001155/0.4575, allocations: 122.7 kB / 1.38 GB, free: 11 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.422e-05/0.4575, allocations: 8.234 kB / 1.38 GB, free: 10.99 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004275/0.458, allocations: 137.4 kB / 1.38 GB, free: 10.85 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.458, allocations: 4 kB / 1.38 GB, free: 10.84 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.458, allocations: 3.953 kB / 1.38 GB, free: 10.84 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.458, allocations: 3.984 kB / 1.38 GB, free: 10.84 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002294/0.4582, allocations: 181.6 kB / 1.38 GB, free: 10.61 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.4583, allocations: 0 / 1.38 GB, free: 10.61 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.4584, allocations: 23.98 kB / 1.38 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.4584, allocations: 0 / 1.38 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.4584, allocations: 0 / 1.38 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.4584, allocations: 0 / 1.38 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/0.4584, allocations: 4 kB / 1.38 GB, free: 10.58 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004503/0.4589, allocations: 219.4 kB / 1.38 GB, free: 10.35 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.84e-05/0.459, allocations: 85.02 kB / 1.38 GB, free: 10.25 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/0.459, allocations: 0 / 1.38 GB, free: 10.25 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.4591, allocations: 19.98 kB / 1.38 GB, free: 10.23 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.02e-05/0.4592, allocations: 3.984 kB / 1.38 GB, free: 10.23 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.339e-05/0.4592, allocations: 15.94 kB / 1.38 GB, free: 10.21 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.93e-05/0.4592, allocations: 91.27 kB / 1.38 GB, free: 10.12 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4592, allocations: 0 / 1.38 GB, free: 10.12 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.000236/0.4595, allocations: 11.95 kB / 1.38 GB, free: 10.11 MB / 0.8855 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.0007471/0.4602, allocations: 0.7639 MB / 1.381 GB, free: 9.32 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003608/0.4606, allocations: 99.91 kB / 1.381 GB, free: 9.223 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.4606, allocations: 3.938 kB / 1.381 GB, free: 9.219 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001614/0.4608, allocations: 51.97 kB / 1.381 GB, free: 9.168 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001765/0.461, allocations: 8.719 kB / 1.381 GB, free: 9.16 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.4622, allocations: 0.5713 MB / 1.382 GB, free: 8.531 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003452/0.4626, allocations: 0.6965 MB / 1.383 GB, free: 7.809 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 6.236e-05/0.4626, allocations: 7.984 kB / 1.383 GB, free: 7.801 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.042e-05/0.4627, allocations: 15.44 kB / 1.383 GB, free: 7.785 MB / 0.8855 GB Notification: Performance of SimCode: time 3.31e-07/0.4627, allocations: 4 kB / 1.383 GB, free: 7.781 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01114/0.4738, allocations: 1.447 MB / 1.384 GB, free: 6.449 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002019/0.4741, allocations: 180.5 kB / 1.384 GB, free: 6.199 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.563/2.037, allocations: 1.25 kB / 1.384 GB, free: 6.199 MB / 0.8855 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) 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