Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.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.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",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.643/2.643, allocations: 390.5 MB / 398 MB, free: 10.96 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.001714/0.001714, allocations: 183.8 kB / 491.2 MB, free: 1.562 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.769/1.769, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.001023/0.001023, allocations: 95.83 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.803e-05/1.805e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.2875, allocations: 143 MB / 1.212 GB, free: 39.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 9.575/9.862, allocations: 4.189 GB / 5.401 GB, free: 253.3 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002368/9.863, allocations: 79.95 kB / 5.401 GB, free: 253.3 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.0647/9.927, allocations: 35.96 MB / 5.436 GB, free: 224 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.694e-06/9.928, allocations: 0 / 5.436 GB, free: 224 MB / 1.151 GB Notification: Performance of Transformations before backend: time 8.846e-06/9.928, allocations: 6.375 kB / 5.436 GB, free: 224 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003196/9.928, allocations: 342.3 kB / 5.436 GB, free: 223.6 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/9.928, allocations: 11.97 kB / 5.436 GB, free: 223.6 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001994/9.928, allocations: 12.78 kB / 5.436 GB, free: 223.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.249e-05/9.928, allocations: 167 kB / 5.437 GB, free: 223.4 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/9.928, allocations: 0 / 5.437 GB, free: 223.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.904e-05/9.928, allocations: 7.906 kB / 5.437 GB, free: 223.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.464e-05/9.928, allocations: 19.77 kB / 5.437 GB, free: 223.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.183e-05/9.929, allocations: 49.61 kB / 5.437 GB, free: 223.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/9.929, allocations: 0 / 5.437 GB, free: 223.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/9.929, allocations: 0 / 5.437 GB, free: 223.3 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.012e-06/9.929, allocations: 4 kB / 5.437 GB, free: 223.3 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001628/9.929, allocations: 150 kB / 5.437 GB, free: 223.1 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 7.404e-05/9.929, allocations: 38.02 kB / 5.437 GB, free: 223.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.401e-05/9.929, allocations: 12.86 kB / 5.437 GB, free: 223.1 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 1.436e-05/9.929, allocations: 0 / 5.437 GB, free: 223.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/9.929, allocations: 42.31 kB / 5.437 GB, free: 223 MB / 1.151 GB Notification: Performance of pre-optimization done (n=7): time 7.81e-07/9.929, allocations: 3.938 kB / 5.437 GB, free: 223 MB / 1.151 GB Notification: Performance of matching and sorting (n=11): time 0.0006248/9.93, allocations: 334.2 kB / 5.437 GB, free: 222.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.827e-05/9.93, allocations: 55.41 kB / 5.437 GB, free: 222.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.015e-05/9.93, allocations: 85 kB / 5.437 GB, free: 222.5 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 1.094e-05/9.93, allocations: 25.7 kB / 5.437 GB, free: 222.5 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 1.492e-05/9.93, allocations: 83.58 kB / 5.438 GB, free: 222.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 3.588e-05/9.93, allocations: 38.89 kB / 5.438 GB, free: 222.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.218e-06/9.93, allocations: 128 / 5.438 GB, free: 222.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 4.521e-05/9.93, allocations: 322.6 kB / 5.438 GB, free: 222 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.528e-05/9.93, allocations: 11.44 kB / 5.438 GB, free: 222 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.688e-05/9.93, allocations: 37.64 kB / 5.438 GB, free: 222 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.402e-05/9.93, allocations: 19.78 kB / 5.438 GB, free: 222 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/9.93, allocations: 0 / 5.438 GB, free: 222 MB / 1.151 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001069/9.93, allocations: 81.38 kB / 5.438 GB, free: 221.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/9.93, allocations: 4 kB / 5.438 GB, free: 221.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/9.93, allocations: 4 kB / 5.438 GB, free: 221.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/9.93, allocations: 7.953 kB / 5.438 GB, free: 221.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/9.93, allocations: 23.98 kB / 5.438 GB, free: 221.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/9.93, allocations: 0 / 5.438 GB, free: 221.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.165e-05/9.93, allocations: 3.938 kB / 5.438 GB, free: 221.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.163e-06/9.93, allocations: 4 kB / 5.438 GB, free: 221.9 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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 5.463e-05/9.93, allocations: 104.9 kB / 5.438 GB, free: 221.7 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.69e-05/9.93, allocations: 69.16 kB / 5.438 GB, free: 221.7 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.115e-05/9.93, allocations: 7.953 kB / 5.438 GB, free: 221.7 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.4e-05/9.93, allocations: 15.02 kB / 5.438 GB, free: 221.7 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/9.93, allocations: 4 kB / 5.438 GB, free: 221.7 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/9.93, allocations: 4 kB / 5.438 GB, free: 221.7 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/9.93, allocations: 7.922 kB / 5.438 GB, free: 221.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.498e-05/9.931, allocations: 145.2 kB / 5.438 GB, free: 221.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/9.931, allocations: 0 / 5.438 GB, free: 221.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001191/9.931, allocations: 23.92 kB / 5.438 GB, free: 221.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/9.931, allocations: 0 / 5.438 GB, free: 221.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/9.931, allocations: 4 kB / 5.438 GB, free: 221.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/9.931, allocations: 3.953 kB / 5.438 GB, free: 221.4 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/9.931, allocations: 480 / 5.438 GB, free: 221.4 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001596/9.931, allocations: 128 kB / 5.439 GB, free: 221.3 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 5.628e-05/9.931, allocations: 85.05 kB / 5.439 GB, free: 221.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.543e-05/9.931, allocations: 4 kB / 5.439 GB, free: 221.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.353e-05/9.931, allocations: 0 / 5.439 GB, free: 221.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.058e-05/9.931, allocations: 11.94 kB / 5.439 GB, free: 221.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.256e-06/9.931, allocations: 4 kB / 5.439 GB, free: 221.2 MB / 1.151 GB Notification: Performance of sorting global known variables: time 1.719e-05/9.931, allocations: 79.09 kB / 5.439 GB, free: 221.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.3e-07/9.931, allocations: 4.094 kB / 5.439 GB, free: 221.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0002702/9.931, allocations: 37.98 kB / 5.439 GB, free: 221.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,hSteSym,hAirSym) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0009561/9.932, allocations: 1.225 MB / 5.44 GB, free: 219.9 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0001083/9.932, allocations: 47.69 kB / 5.44 GB, free: 219.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/9.932, allocations: 0 / 5.44 GB, free: 219.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 3.112e-05/9.933, allocations: 30.5 kB / 5.44 GB, free: 219.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001469/9.933, allocations: 7.953 kB / 5.44 GB, free: 219.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005475/9.933, allocations: 312.8 kB / 5.44 GB, free: 219.5 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001178/9.933, allocations: 0.6923 MB / 5.441 GB, free: 218.8 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 6.897e-05/9.933, allocations: 12.66 kB / 5.441 GB, free: 218.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.586e-05/9.933, allocations: 18.94 kB / 5.441 GB, free: 218.7 MB / 1.151 GB Notification: Performance of SimCode: time 2.5e-07/9.933, allocations: 0 / 5.441 GB, free: 218.7 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02996/9.963, allocations: 5.731 MB / 5.447 GB, free: 213 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002/9.964, allocations: 167.4 kB / 5.447 GB, free: 212.8 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.624/11.59, allocations: 0 / 5.447 GB, free: 212.8 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat does not exist to compare? outputFormat=mat