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.474/2.474, allocations: 387.1 MB / 399.7 MB, free: 9.473 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.001234/0.001234, allocations: 172.9 kB / 492.3 MB, free: 0.6172 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.758/1.758, allocations: 221.3 MB / 0.7871 GB, free: 12.95 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.00142/0.00142, allocations: 95.92 kB / 0.9267 GB, free: 14.01 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.701e-05/4.703e-05, allocations: 0 / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4575/0.4576, allocations: 142.3 MB / 1.212 GB, free: 38.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 10.4/10.85, allocations: 4.188 GB / 5.401 GB, free: 258.1 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002662/10.85, allocations: 80.94 kB / 5.401 GB, free: 258.1 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.06624/10.92, allocations: 36.6 MB / 5.437 GB, free: 227.5 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.654e-06/10.92, allocations: 0 / 5.437 GB, free: 227.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 6.803e-06/10.92, allocations: 0 / 5.437 GB, free: 227.5 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.000269/10.92, allocations: 346.1 kB / 5.437 GB, free: 227.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/10.92, allocations: 16.02 kB / 5.437 GB, free: 227.1 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.127e-05/10.92, allocations: 33.88 kB / 5.437 GB, free: 227.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001624/10.92, allocations: 8.781 kB / 5.437 GB, free: 227.1 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.396e-05/10.92, allocations: 174.8 kB / 5.437 GB, free: 226.9 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/10.92, allocations: 4 kB / 5.437 GB, free: 226.9 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.839e-05/10.92, allocations: 3.625 kB / 5.437 GB, free: 226.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001499/10.92, allocations: 60.83 kB / 5.437 GB, free: 226.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/10.92, allocations: 4 kB / 5.437 GB, free: 226.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/10.92, allocations: 4 kB / 5.437 GB, free: 226.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/10.92, allocations: 0 / 5.437 GB, free: 226.8 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.259e-05/10.92, allocations: 11.98 kB / 5.437 GB, free: 226.8 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001759/10.92, allocations: 160.9 kB / 5.437 GB, free: 226.6 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 8.19e-05/10.92, allocations: 49.58 kB / 5.438 GB, free: 226.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.77e-05/10.92, allocations: 20.28 kB / 5.438 GB, free: 226.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 1.224e-05/10.92, allocations: 0 / 5.438 GB, free: 226.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.863e-05/10.92, allocations: 42.11 kB / 5.438 GB, free: 226.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=7): time 1.443e-06/10.92, allocations: 4 kB / 5.438 GB, free: 226.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=11): time 0.0006215/10.92, allocations: 360.7 kB / 5.438 GB, free: 226.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.759e-05/10.92, allocations: 59.39 kB / 5.438 GB, free: 226 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.822e-05/10.92, allocations: 89 kB / 5.438 GB, free: 225.9 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 1.233e-05/10.92, allocations: 29.14 kB / 5.438 GB, free: 225.9 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 1.347e-05/10.92, allocations: 80.14 kB / 5.438 GB, free: 225.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 3.357e-05/10.92, allocations: 42.95 kB / 5.438 GB, free: 225.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.707e-06/10.92, allocations: 0 / 5.438 GB, free: 225.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 4.538e-05/10.92, allocations: 314.3 kB / 5.439 GB, free: 225.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.703e-05/10.92, allocations: 15.44 kB / 5.439 GB, free: 225.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.032e-05/10.92, allocations: 41.27 kB / 5.439 GB, free: 225.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.059e-05/10.92, allocations: 26.98 kB / 5.439 GB, free: 225.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/10.92, allocations: 0 / 5.439 GB, free: 225.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000105/10.92, allocations: 95.77 kB / 5.439 GB, free: 225.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/10.92, allocations: 11.95 kB / 5.439 GB, free: 225.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/10.92, allocations: 0 / 5.439 GB, free: 225.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/10.92, allocations: 0 / 5.439 GB, free: 225.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/10.92, allocations: 23.94 kB / 5.439 GB, free: 225.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/10.92, allocations: 0 / 5.439 GB, free: 225.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.09e-05/10.92, allocations: 3.984 kB / 5.439 GB, free: 225.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.26e-05/10.92, allocations: 7.438 kB / 5.439 GB, free: 225.3 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 6.747e-05/10.92, allocations: 114.3 kB / 5.439 GB, free: 225.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.871e-05/10.92, allocations: 0 / 5.439 GB, free: 225.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.504e-05/10.92, allocations: 15.86 kB / 5.439 GB, free: 225.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/10.92, allocations: 0 / 5.439 GB, free: 225.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/10.92, allocations: 0 / 5.439 GB, free: 225.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/10.92, allocations: 0 / 5.439 GB, free: 225.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.726e-05/10.92, allocations: 179 kB / 5.439 GB, free: 224.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/10.92, allocations: 0 / 5.439 GB, free: 224.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001152/10.92, allocations: 27.86 kB / 5.439 GB, free: 224.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/10.92, allocations: 0 / 5.439 GB, free: 224.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.998e-06/10.92, allocations: 10.56 kB / 5.439 GB, free: 224.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/10.92, allocations: 3.953 kB / 5.439 GB, free: 224.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/10.92, allocations: 0 / 5.439 GB, free: 224.9 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001645/10.92, allocations: 126 kB / 5.439 GB, free: 224.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 5.001e-05/10.92, allocations: 81.11 kB / 5.439 GB, free: 224.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.384e-05/10.92, allocations: 0 / 5.439 GB, free: 224.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.564e-05/10.92, allocations: 11.97 kB / 5.439 GB, free: 224.7 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.702e-05/10.92, allocations: 11.98 kB / 5.439 GB, free: 224.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/10.92, allocations: 11.98 kB / 5.439 GB, free: 224.7 MB / 1.151 GB Notification: Performance of sorting global known variables: time 1.62e-05/10.92, allocations: 79.28 kB / 5.439 GB, free: 224.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 5.61e-07/10.92, allocations: 0 / 5.439 GB, free: 224.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0002985/10.92, allocations: 57.36 kB / 5.439 GB, free: 224.5 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.001107/10.93, allocations: 1.125 MB / 5.441 GB, free: 223.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0001399/10.93, allocations: 59.75 kB / 5.441 GB, free: 223.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/10.93, allocations: 0 / 5.441 GB, free: 223.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 3.809e-05/10.93, allocations: 31.81 kB / 5.441 GB, free: 223.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001515/10.93, allocations: 17.77 kB / 5.441 GB, free: 223.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006728/10.93, allocations: 328.8 kB / 5.441 GB, free: 223 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001675/10.93, allocations: 0.6887 MB / 5.442 GB, free: 222.3 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 8.591e-05/10.93, allocations: 8.672 kB / 5.442 GB, free: 222.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.258e-05/10.93, allocations: 18.8 kB / 5.442 GB, free: 222.3 MB / 1.151 GB Notification: Performance of SimCode: time 4.71e-07/10.93, allocations: 0 / 5.442 GB, free: 222.3 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02479/10.95, allocations: 12.65 MB / 5.454 GB, free: 209.7 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001551/10.95, allocations: 175.8 kB / 5.454 GB, free: 209.5 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.892/12.84, allocations: 3.938 kB / 5.454 GB, free: 209.5 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