Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.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.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.327/2.327, allocations: 387.4 MB / 394.9 MB, free: 13.44 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.001254/0.001253, allocations: 176.9 kB / 487.4 MB, free: 5.074 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.499/1.499, allocations: 221.5 MB / 0.7824 GB, free: 0.9883 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 107.6 kB / 0.9219 GB, free: 2.223 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.666e-05/2.668e-05, allocations: 3.984 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2476/0.2476, allocations: 142.4 MB / 1.206 GB, free: 43.89 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 10.72/10.97, allocations: 4.188 GB / 5.394 GB, free: 293.4 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002535/10.97, allocations: 75.89 kB / 5.394 GB, free: 293.4 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.06424/11.03, allocations: 35.96 MB / 5.429 GB, free: 264.1 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.625e-06/11.03, allocations: 0 / 5.429 GB, free: 264.1 MB / 1.151 GB Notification: Performance of Transformations before backend: time 7.654e-06/11.03, allocations: 0 / 5.429 GB, free: 264.1 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.0003373/11.03, allocations: 345.5 kB / 5.429 GB, free: 263.7 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/11.03, allocations: 12.03 kB / 5.429 GB, free: 263.7 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000207/11.03, allocations: 12.72 kB / 5.429 GB, free: 263.7 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/11.03, allocations: 174.9 kB / 5.43 GB, free: 263.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/11.03, allocations: 0 / 5.43 GB, free: 263.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.325e-05/11.03, allocations: 4 kB / 5.43 GB, free: 263.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.462e-05/11.03, allocations: 15.69 kB / 5.43 GB, free: 263.5 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.48e-05/11.03, allocations: 57.42 kB / 5.43 GB, free: 263.4 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/11.03, allocations: 0 / 5.43 GB, free: 263.4 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/11.03, allocations: 0 / 5.43 GB, free: 263.4 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/11.03, allocations: 0 / 5.43 GB, free: 263.4 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001414/11.03, allocations: 137.7 kB / 5.43 GB, free: 263.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 7.321e-05/11.03, allocations: 38.14 kB / 5.43 GB, free: 263.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.29e-05/11.03, allocations: 16.42 kB / 5.43 GB, free: 263.2 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 1.267e-05/11.03, allocations: 0 / 5.43 GB, free: 263.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.837e-05/11.03, allocations: 42.48 kB / 5.43 GB, free: 263.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/11.03, allocations: 0 / 5.43 GB, free: 263.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=11): time 0.0006061/11.03, allocations: 340.1 kB / 5.43 GB, free: 262.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.053e-05/11.03, allocations: 55.41 kB / 5.43 GB, free: 262.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.628e-05/11.03, allocations: 88.62 kB / 5.43 GB, free: 262.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 1.05e-05/11.03, allocations: 25.7 kB / 5.43 GB, free: 262.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 1.664e-05/11.03, allocations: 84.12 kB / 5.43 GB, free: 262.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 3.318e-05/11.03, allocations: 30.78 kB / 5.43 GB, free: 262.5 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-06/11.03, allocations: 0 / 5.43 GB, free: 262.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 4.997e-05/11.03, allocations: 322.7 kB / 5.431 GB, free: 262.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.604e-05/11.03, allocations: 15.88 kB / 5.431 GB, free: 262.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.595e-05/11.03, allocations: 28.28 kB / 5.431 GB, free: 262.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.469e-05/11.03, allocations: 22.92 kB / 5.431 GB, free: 262.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.91e-07/11.03, allocations: 0 / 5.431 GB, free: 262.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001013/11.03, allocations: 84.3 kB / 5.431 GB, free: 262 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/11.03, allocations: 4 kB / 5.431 GB, free: 262 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/11.03, allocations: 0 / 5.431 GB, free: 262 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/11.03, allocations: 4 kB / 5.431 GB, free: 262 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/11.03, allocations: 23.94 kB / 5.431 GB, free: 262 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/11.03, allocations: 8.078 kB / 5.431 GB, free: 262 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.295e-05/11.03, allocations: 0 / 5.431 GB, free: 262 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.184e-06/11.03, allocations: 7.984 kB / 5.431 GB, free: 262 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.376e-05/11.03, allocations: 104.9 kB / 5.431 GB, free: 261.9 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.291e-05/11.03, allocations: 73.42 kB / 5.431 GB, free: 261.8 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.126e-05/11.03, allocations: 11.89 kB / 5.431 GB, free: 261.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.333e-05/11.03, allocations: 14.98 kB / 5.431 GB, free: 261.8 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/11.03, allocations: 3.984 kB / 5.431 GB, free: 261.8 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/11.03, allocations: 0 / 5.431 GB, free: 261.8 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/11.03, allocations: 4 kB / 5.431 GB, free: 261.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.548e-05/11.03, allocations: 142.1 kB / 5.431 GB, free: 261.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/11.03, allocations: 0 / 5.431 GB, free: 261.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001194/11.03, allocations: 31.92 kB / 5.431 GB, free: 261.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/11.03, allocations: 0 / 5.431 GB, free: 261.6 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-06/11.03, allocations: 3.062 kB / 5.431 GB, free: 261.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/11.03, allocations: 4 kB / 5.431 GB, free: 261.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/11.03, allocations: 3.953 kB / 5.431 GB, free: 261.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000152/11.03, allocations: 122.8 kB / 5.431 GB, free: 261.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 5.429e-05/11.03, allocations: 89.05 kB / 5.431 GB, free: 261.4 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/11.03, allocations: 0 / 5.431 GB, free: 261.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.539e-05/11.03, allocations: 4 kB / 5.431 GB, free: 261.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.26e-05/11.03, allocations: 11.94 kB / 5.432 GB, free: 261.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.134e-06/11.03, allocations: 3.438 kB / 5.432 GB, free: 261.3 MB / 1.151 GB Notification: Performance of sorting global known variables: time 1.713e-05/11.03, allocations: 79.28 kB / 5.432 GB, free: 261.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.51e-07/11.03, allocations: 0 / 5.432 GB, free: 261.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.000248/11.03, allocations: 38.36 kB / 5.432 GB, free: 261.2 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.0009242/11.03, allocations: 1.225 MB / 5.433 GB, free: 260 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0001074/11.03, allocations: 50.56 kB / 5.433 GB, free: 260 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/11.03, allocations: 0 / 5.433 GB, free: 260 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 2.688e-05/11.03, allocations: 19.19 kB / 5.433 GB, free: 260 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001351/11.03, allocations: 7.953 kB / 5.433 GB, free: 260 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005142/11.04, allocations: 321.6 kB / 5.433 GB, free: 259.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001153/11.04, allocations: 0.6923 MB / 5.434 GB, free: 258.9 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 6.856e-05/11.04, allocations: 12.66 kB / 5.434 GB, free: 258.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.549e-05/11.04, allocations: 15.12 kB / 5.434 GB, free: 258.9 MB / 1.151 GB Notification: Performance of SimCode: time 2.5e-07/11.04, allocations: 0 / 5.434 GB, free: 258.9 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/11.06, allocations: 5.725 MB / 5.439 GB, free: 253.1 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001502/11.06, allocations: 168.2 kB / 5.44 GB, free: 252.9 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.684/12.74, allocations: 0 / 5.44 GB, free: 252.9 MB / 1.151 GB (rm -f Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat does not exist to compare? outputFormat=mat