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.331/2.331, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001063/0.001063, allocations: 186.9 kB / 498.1 MB, free: 5.754 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.585/1.585, allocations: 223.2 MB / 0.7948 GB, free: 18.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.0008937/0.0008937, allocations: 96.31 kB / 0.9346 GB, free: 7.223 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003569/0.000357, allocations: 8.906 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2205/0.2209, allocations: 142.4 MB / 1.223 GB, free: 89.49 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 9.584/9.805, allocations: 4.188 GB / 5.411 GB, free: 61.36 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002683/9.806, allocations: 88.98 kB / 5.411 GB, free: 61.27 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 0.07887/9.885, allocations: 36.67 MB / 5.447 GB, free: 24.16 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.783e-06/9.885, allocations: 4 kB / 5.447 GB, free: 24.16 MB / 1.167 GB Notification: Performance of Transformations before backend: time 4.658e-06/9.885, allocations: 0 / 5.447 GB, free: 24.16 MB / 1.167 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.0002888/9.885, allocations: 351.3 kB / 5.448 GB, free: 23.77 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/9.885, allocations: 12.03 kB / 5.448 GB, free: 23.75 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.496e-05/9.885, allocations: 34.56 kB / 5.448 GB, free: 23.71 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001616/9.885, allocations: 16.67 kB / 5.448 GB, free: 23.7 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.911e-05/9.885, allocations: 167 kB / 5.448 GB, free: 23.49 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.367e-06/9.885, allocations: 4 kB / 5.448 GB, free: 23.49 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.312e-05/9.885, allocations: 8 kB / 5.448 GB, free: 23.48 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/9.885, allocations: 53.62 kB / 5.448 GB, free: 23.42 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/9.885, allocations: 3.938 kB / 5.448 GB, free: 23.42 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/9.886, allocations: 3.938 kB / 5.448 GB, free: 23.41 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/9.886, allocations: 4 kB / 5.448 GB, free: 23.41 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.362e-05/9.886, allocations: 15.98 kB / 5.448 GB, free: 23.39 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001388/9.886, allocations: 161.7 kB / 5.448 GB, free: 23.19 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 7.766e-05/9.886, allocations: 50.56 kB / 5.448 GB, free: 23.13 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.07e-05/9.886, allocations: 3.984 kB / 5.448 GB, free: 23.12 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.715e-05/9.886, allocations: 30.56 kB / 5.448 GB, free: 23.09 MB / 1.167 GB Notification: Performance of pre-optimization done (n=7): time 8.72e-07/9.886, allocations: 4 kB / 5.448 GB, free: 23.08 MB / 1.167 GB Notification: Performance of matching and sorting (n=11): time 0.0006433/9.886, allocations: 374.7 kB / 5.449 GB, free: 22.66 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.151e-05/9.887, allocations: 55.41 kB / 5.449 GB, free: 22.6 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.594e-05/9.887, allocations: 89 kB / 5.449 GB, free: 22.5 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 1.12e-05/9.887, allocations: 29.7 kB / 5.449 GB, free: 22.47 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 1.354e-05/9.887, allocations: 80.14 kB / 5.449 GB, free: 22.39 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 2.921e-05/9.887, allocations: 35.45 kB / 5.449 GB, free: 22.35 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.099e-06/9.887, allocations: 11.94 kB / 5.449 GB, free: 22.34 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 5.043e-05/9.887, allocations: 314.8 kB / 5.449 GB, free: 22.02 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.775e-05/9.887, allocations: 20 kB / 5.449 GB, free: 22 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.79e-05/9.887, allocations: 33.83 kB / 5.449 GB, free: 21.96 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.989e-05/9.887, allocations: 32.05 kB / 5.449 GB, free: 21.93 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.41e-07/9.887, allocations: 0 / 5.449 GB, free: 21.93 MB / 1.167 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001046/9.887, allocations: 97.52 kB / 5.449 GB, free: 21.83 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/9.887, allocations: 7.953 kB / 5.449 GB, free: 21.82 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/9.887, allocations: 0 / 5.449 GB, free: 21.82 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/9.887, allocations: 4 kB / 5.449 GB, free: 21.82 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/9.887, allocations: 19.94 kB / 5.449 GB, free: 21.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.311e-06/9.887, allocations: 7.984 kB / 5.449 GB, free: 21.79 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.022e-05/9.887, allocations: 4 kB / 5.449 GB, free: 21.79 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.574e-06/9.887, allocations: 12 kB / 5.449 GB, free: 21.78 MB / 1.167 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 () * Number of clocked 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.577e-05/9.887, allocations: 111.7 kB / 5.449 GB, free: 21.66 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.151e-05/9.887, allocations: 4 kB / 5.449 GB, free: 21.66 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.959e-05/9.887, allocations: 15.92 kB / 5.449 GB, free: 21.64 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/9.887, allocations: 4 kB / 5.449 GB, free: 21.64 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/9.887, allocations: 0 / 5.449 GB, free: 21.64 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/9.887, allocations: 0 / 5.449 GB, free: 21.64 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.36e-05/9.887, allocations: 169.6 kB / 5.45 GB, free: 21.43 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/9.887, allocations: 0 / 5.45 GB, free: 21.43 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/9.888, allocations: 31.92 kB / 5.45 GB, free: 21.39 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/9.888, allocations: 0 / 5.45 GB, free: 21.39 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/9.888, allocations: 0 / 5.45 GB, free: 21.39 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/9.888, allocations: 7.953 kB / 5.45 GB, free: 21.39 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/9.888, allocations: 0 / 5.45 GB, free: 21.39 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000162/9.888, allocations: 140.4 kB / 5.45 GB, free: 21.23 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 5.51e-05/9.888, allocations: 85.14 kB / 5.45 GB, free: 21.13 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.347e-05/9.888, allocations: 4 kB / 5.45 GB, free: 21.13 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.621e-05/9.888, allocations: 8 kB / 5.45 GB, free: 21.12 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.065e-05/9.888, allocations: 11.94 kB / 5.45 GB, free: 21.11 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/9.888, allocations: 0 / 5.45 GB, free: 21.11 MB / 1.167 GB Notification: Performance of sorting global known variables: time 1.803e-05/9.888, allocations: 83.28 kB / 5.45 GB, free: 21.03 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.2e-07/9.888, allocations: 0 / 5.45 GB, free: 21.03 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.0003022/9.888, allocations: 51.98 kB / 5.45 GB, free: 20.98 MB / 1.167 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 () * Number of clocked 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.0008227/9.889, allocations: 1.136 MB / 5.451 GB, free: 19.81 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.0001224/9.889, allocations: 55.92 kB / 5.451 GB, free: 19.76 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/9.889, allocations: 4 kB / 5.451 GB, free: 19.75 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 2.98e-05/9.889, allocations: 31.92 kB / 5.451 GB, free: 19.72 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001289/9.889, allocations: 7.953 kB / 5.451 GB, free: 19.71 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007733/9.89, allocations: 0.826 MB / 5.452 GB, free: 18.83 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001149/9.89, allocations: 0.6936 MB / 5.453 GB, free: 18.11 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 6.55e-05/9.89, allocations: 8.672 kB / 5.453 GB, free: 18.1 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.358e-05/9.89, allocations: 15.5 kB / 5.453 GB, free: 18.09 MB / 1.167 GB Notification: Performance of SimCode: time 5.38e-06/9.89, allocations: 0 / 5.453 GB, free: 18.09 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01965/9.91, allocations: 10.84 MB / 5.463 GB, free: 7.375 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001508/9.91, allocations: 205.8 kB / 5.464 GB, free: 7.125 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.829/11.74, allocations: 0 / 5.464 GB, free: 7.125 MB / 1.167 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