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 1.982/1.982, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.0009405/0.0009406, allocations: 172.9 kB / 487.4 MB, free: 5.059 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.366/1.366, allocations: 221.5 MB / 0.7824 GB, free: 0.9844 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.0009356/0.0009356, allocations: 95.62 kB / 0.9219 GB, free: 2.219 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.256e-05/1.26e-05, allocations: 0 / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2565, allocations: 142.3 MB / 1.206 GB, free: 43.99 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 8.818/9.075, allocations: 4.188 GB / 5.394 GB, free: 406.4 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001798/9.075, allocations: 84.7 kB / 5.394 GB, free: 406.3 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.06039/9.136, allocations: 35.96 MB / 5.429 GB, free: 369.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.182e-06/9.136, allocations: 0 / 5.429 GB, free: 369.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 6.132e-06/9.136, allocations: 0 / 5.429 GB, free: 369.9 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.0002203/9.136, allocations: 346.5 kB / 5.429 GB, free: 369.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/9.136, allocations: 8.031 kB / 5.429 GB, free: 369.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001492/9.136, allocations: 8.625 kB / 5.429 GB, free: 369.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.17e-05/9.136, allocations: 170.9 kB / 5.429 GB, free: 369.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.177e-06/9.136, allocations: 4 kB / 5.429 GB, free: 369.3 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.082e-05/9.136, allocations: 7.906 kB / 5.429 GB, free: 369.3 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.715e-05/9.136, allocations: 16 kB / 5.429 GB, free: 369.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.865e-05/9.136, allocations: 45.64 kB / 5.429 GB, free: 369.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/9.136, allocations: 0 / 5.429 GB, free: 369.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.838e-06/9.136, allocations: 0 / 5.429 GB, free: 369.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/9.136, allocations: 7.984 kB / 5.429 GB, free: 369.2 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001052/9.137, allocations: 138.2 kB / 5.43 GB, free: 369 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 5.703e-05/9.137, allocations: 42.64 kB / 5.43 GB, free: 369 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.146e-05/9.137, allocations: 20.8 kB / 5.43 GB, free: 369 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 1.176e-05/9.137, allocations: 4 kB / 5.43 GB, free: 369 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.52e-05/9.137, allocations: 30.56 kB / 5.43 GB, free: 368.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=7): time 9.82e-07/9.137, allocations: 0 / 5.43 GB, free: 368.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=11): time 0.0005035/9.137, allocations: 342 kB / 5.43 GB, free: 368.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.792e-05/9.137, allocations: 51.41 kB / 5.43 GB, free: 368.5 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.17e-05/9.137, allocations: 93 kB / 5.43 GB, free: 368.4 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/9.137, allocations: 25.7 kB / 5.43 GB, free: 368.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 1.199e-05/9.137, allocations: 80.14 kB / 5.43 GB, free: 368.3 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 2.839e-05/9.137, allocations: 35.45 kB / 5.43 GB, free: 368.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-06/9.137, allocations: 0 / 5.43 GB, free: 368.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 3.944e-05/9.137, allocations: 318.8 kB / 5.431 GB, free: 367.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.16e-05/9.137, allocations: 16 kB / 5.431 GB, free: 367.9 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.63e-05/9.137, allocations: 34.34 kB / 5.431 GB, free: 367.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.99e-05/9.137, allocations: 20.14 kB / 5.431 GB, free: 367.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.71e-07/9.137, allocations: 3.938 kB / 5.431 GB, free: 367.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=14) (initialization): time 8.856e-05/9.138, allocations: 89.91 kB / 5.431 GB, free: 367.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/9.138, allocations: 4 kB / 5.431 GB, free: 367.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.878e-06/9.138, allocations: 0 / 5.431 GB, free: 367.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/9.138, allocations: 0 / 5.431 GB, free: 367.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.964e-05/9.138, allocations: 27.94 kB / 5.431 GB, free: 367.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.988e-06/9.138, allocations: 80 / 5.431 GB, free: 367.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.016e-05/9.138, allocations: 3.938 kB / 5.431 GB, free: 367.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.114e-06/9.138, allocations: 15.98 kB / 5.431 GB, free: 367.7 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 4.089e-05/9.138, allocations: 101 kB / 5.431 GB, free: 367.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.269e-05/9.138, allocations: 4 kB / 5.431 GB, free: 367.6 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.77e-05/9.138, allocations: 12.41 kB / 5.431 GB, free: 367.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/9.138, allocations: 4 kB / 5.431 GB, free: 367.6 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/9.138, allocations: 3.953 kB / 5.431 GB, free: 367.6 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/9.138, allocations: 3.984 kB / 5.431 GB, free: 367.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.559e-05/9.138, allocations: 146.2 kB / 5.431 GB, free: 367.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/9.138, allocations: 0 / 5.431 GB, free: 367.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/9.138, allocations: 23.98 kB / 5.431 GB, free: 367.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/9.138, allocations: 4 kB / 5.431 GB, free: 367.4 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.602e-06/9.138, allocations: 0 / 5.431 GB, free: 367.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/9.138, allocations: 3.938 kB / 5.431 GB, free: 367.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/9.138, allocations: 0 / 5.431 GB, free: 367.3 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001346/9.138, allocations: 126 kB / 5.431 GB, free: 367.2 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 4.204e-05/9.138, allocations: 81.11 kB / 5.431 GB, free: 367.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.228e-05/9.138, allocations: 0 / 5.431 GB, free: 367.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.19e-05/9.138, allocations: 8.031 kB / 5.431 GB, free: 367.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.689e-05/9.138, allocations: 4 kB / 5.431 GB, free: 367.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/9.138, allocations: 7.938 kB / 5.431 GB, free: 367.1 MB / 1.151 GB Notification: Performance of sorting global known variables: time 1.396e-05/9.138, allocations: 83.27 kB / 5.431 GB, free: 367 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.31e-07/9.138, allocations: 0 / 5.431 GB, free: 367 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0002203/9.139, allocations: 32 kB / 5.431 GB, free: 367 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.0005446/9.139, allocations: 0.6741 MB / 5.432 GB, free: 366.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 8.853e-05/9.139, allocations: 40 kB / 5.432 GB, free: 366.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/9.139, allocations: 0 / 5.432 GB, free: 366.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 2.626e-05/9.139, allocations: 31.94 kB / 5.432 GB, free: 366.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001146/9.139, allocations: 1.031 kB / 5.432 GB, free: 366.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003686/9.14, allocations: 280.2 kB / 5.432 GB, free: 365.9 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.51e-05/9.14, allocations: 0.6933 MB / 5.433 GB, free: 365.2 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 6.405e-05/9.14, allocations: 12.66 kB / 5.433 GB, free: 365.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.788e-05/9.14, allocations: 15.38 kB / 5.433 GB, free: 365.2 MB / 1.151 GB Notification: Performance of SimCode: time 2.4e-07/9.14, allocations: 0 / 5.433 GB, free: 365.2 MB / 1.151 GB Notification: Performance of Templates: time 0.005275/9.145, allocations: 3.893 MB / 5.437 GB, free: 361.3 MB / 1.151 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