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: translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.hAirSym.|der.hAirCod.",fileNamePrefix="Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.hAirSym.|der.hAirCod.",fileNamePrefix="Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") 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: 390.3 MB / 405.3 MB, free: 13.42 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.001076/0.001076, allocations: 188.3 kB / 498.1 MB, free: 5.684 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.709/1.709, allocations: 223.2 MB / 0.7948 GB, free: 18.84 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.00119/0.00119, allocations: 108.1 kB / 0.9346 GB, free: 7.109 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005781/0.000578, allocations: 9.125 kB / 1.084 GB, free: 213 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.331/0.3316, allocations: 142.3 MB / 1.223 GB, free: 89.56 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 11.33/11.66, allocations: 4.188 GB / 5.411 GB, free: 340 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002699/11.66, allocations: 82.52 kB / 5.411 GB, free: 340 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 0.07388/11.73, allocations: 36.7 MB / 5.447 GB, free: 333.8 MB / 1.167 GB Notification: Performance of FrontEnd: time 3.015e-06/11.73, allocations: 0 / 5.447 GB, free: 333.8 MB / 1.167 GB Notification: Performance of Transformations before backend: time 1.026e-05/11.73, allocations: 3.906 kB / 5.447 GB, free: 333.8 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.0004009/11.73, allocations: 349.4 kB / 5.448 GB, free: 333.4 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/11.73, allocations: 7.812 kB / 5.448 GB, free: 333.4 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001995/11.73, allocations: 16.25 kB / 5.448 GB, free: 333.4 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/11.73, allocations: 174.2 kB / 5.448 GB, free: 333.2 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/11.73, allocations: 7.406 kB / 5.448 GB, free: 333.2 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.644e-05/11.73, allocations: 3.906 kB / 5.448 GB, free: 333.2 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001463/11.73, allocations: 51.12 kB / 5.448 GB, free: 333.2 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/11.73, allocations: 0 / 5.448 GB, free: 333.2 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.441e-05/11.73, allocations: 7.844 kB / 5.448 GB, free: 333.2 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/11.73, allocations: 0 / 5.448 GB, free: 333.2 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.561e-05/11.74, allocations: 14.53 kB / 5.448 GB, free: 333.2 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000184/11.74, allocations: 171 kB / 5.448 GB, free: 333 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 8.393e-05/11.74, allocations: 48.77 kB / 5.448 GB, free: 332.9 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.329e-05/11.74, allocations: 3.938 kB / 5.448 GB, free: 332.9 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/11.74, allocations: 30.56 kB / 5.448 GB, free: 332.9 MB / 1.167 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/11.74, allocations: 0 / 5.448 GB, free: 332.9 MB / 1.167 GB Notification: Performance of matching and sorting (n=11): time 0.0007707/11.74, allocations: 377.8 kB / 5.448 GB, free: 332.6 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/11.74, allocations: 55.31 kB / 5.448 GB, free: 332.6 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.242e-05/11.74, allocations: 96.17 kB / 5.449 GB, free: 332.5 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/11.74, allocations: 25.7 kB / 5.449 GB, free: 332.4 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 2.221e-05/11.74, allocations: 80.14 kB / 5.449 GB, free: 332.4 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 4.402e-05/11.74, allocations: 42.19 kB / 5.449 GB, free: 332.3 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.049e-06/11.74, allocations: 0 / 5.449 GB, free: 332.3 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 7.213e-05/11.74, allocations: 314.4 kB / 5.449 GB, free: 332 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.322e-05/11.74, allocations: 22.88 kB / 5.449 GB, free: 332 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.357e-05/11.74, allocations: 34.66 kB / 5.449 GB, free: 332 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.53e-05/11.74, allocations: 23.38 kB / 5.449 GB, free: 332 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/11.74, allocations: 7.906 kB / 5.449 GB, free: 332 MB / 1.167 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001235/11.74, allocations: 91.05 kB / 5.449 GB, free: 332 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/11.74, allocations: 15.7 kB / 5.449 GB, free: 331.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/11.74, allocations: 3.188 kB / 5.449 GB, free: 331.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/11.74, allocations: 0 / 5.449 GB, free: 331.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001144/11.74, allocations: 19.53 kB / 5.449 GB, free: 331.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/11.74, allocations: 4 kB / 5.449 GB, free: 331.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.632e-05/11.74, allocations: 10.5 kB / 5.449 GB, free: 331.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/11.74, allocations: 80 / 5.449 GB, free: 331.9 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 7.658e-05/11.74, allocations: 121.3 kB / 5.449 GB, free: 331.8 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.686e-05/11.74, allocations: 3.906 kB / 5.449 GB, free: 331.8 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.315e-05/11.74, allocations: 15.67 kB / 5.449 GB, free: 331.8 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/11.74, allocations: 0 / 5.449 GB, free: 331.8 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/11.74, allocations: 0 / 5.449 GB, free: 331.8 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/11.74, allocations: 7.812 kB / 5.449 GB, free: 331.8 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001257/11.74, allocations: 170.4 kB / 5.45 GB, free: 331.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/11.74, allocations: 0 / 5.45 GB, free: 331.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001216/11.74, allocations: 25.92 kB / 5.45 GB, free: 331.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/11.74, allocations: 0 / 5.45 GB, free: 331.6 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/11.74, allocations: 0 / 5.45 GB, free: 331.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.943e-06/11.74, allocations: 11.84 kB / 5.45 GB, free: 331.6 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/11.74, allocations: 0 / 5.45 GB, free: 331.6 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002265/11.74, allocations: 132.8 kB / 5.45 GB, free: 331.5 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 7.56e-05/11.74, allocations: 88.53 kB / 5.45 GB, free: 331.4 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.688e-05/11.74, allocations: 3.906 kB / 5.45 GB, free: 331.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.266e-05/11.74, allocations: 3.812 kB / 5.45 GB, free: 331.4 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.478e-05/11.74, allocations: 11.09 kB / 5.45 GB, free: 331.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.518e-06/11.74, allocations: 3.906 kB / 5.45 GB, free: 331.4 MB / 1.167 GB Notification: Performance of sorting global known variables: time 2.787e-05/11.74, allocations: 79.16 kB / 5.45 GB, free: 331.4 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.1e-07/11.74, allocations: 0 / 5.45 GB, free: 331.4 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.0003869/11.74, allocations: 48.47 kB / 5.45 GB, free: 331.4 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.0009282/11.74, allocations: 0.569 MB / 5.451 GB, free: 331.1 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.0001481/11.74, allocations: 48.83 kB / 5.451 GB, free: 331.1 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/11.74, allocations: 7.844 kB / 5.451 GB, free: 331.1 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 3.773e-05/11.74, allocations: 34.48 kB / 5.451 GB, free: 331.1 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001748/11.74, allocations: 5.172 kB / 5.451 GB, free: 331.1 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006451/11.74, allocations: 387.1 kB / 5.451 GB, free: 330.8 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001919/11.74, allocations: 0.6916 MB / 5.452 GB, free: 330.1 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 7.611e-05/11.74, allocations: 8.578 kB / 5.452 GB, free: 330.1 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.399e-05/11.74, allocations: 11.34 kB / 5.452 GB, free: 330 MB / 1.167 GB Notification: Performance of SimCode: time 2.71e-07/11.74, allocations: 0 / 5.452 GB, free: 330 MB / 1.167 GB Notification: Performance of Templates: time 0.01238/11.75, allocations: 8.04 MB / 5.46 GB, free: 329.2 MB / 1.167 GB make -j1 -f Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (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 & ./Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","../files/Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches