Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.471/1.471, allocations: 249.5 MB / 257 MB, free: 6.938 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001027/0.001028, allocations: 184.8 kB / 316.3 MB, free: 3.223 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.668/1.668, allocations: 205.3 MB / 0.5671 GB, free: 15.87 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009262/0.0009262, allocations: 107.8 kB / 0.6714 GB, free: 4.973 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.499e-05/1.495e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2472, allocations: 106.3 MB / 0.8852 GB, free: 12.3 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 13.43/13.67, allocations: 4.605 GB / 5.491 GB, free: 81.62 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/13.67, allocations: 82.83 kB / 5.491 GB, free: 81.58 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.06547/13.74, allocations: 35.86 MB / 5.526 GB, free: 48.02 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.104e-06/13.74, allocations: 0 / 5.526 GB, free: 48.02 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.232e-06/13.74, allocations: 0 / 5.526 GB, free: 48.02 MB / 0.8698 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.0002613/13.74, allocations: 342.5 kB / 5.526 GB, free: 47.64 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/13.74, allocations: 8.031 kB / 5.526 GB, free: 47.64 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001606/13.74, allocations: 12 kB / 5.526 GB, free: 47.62 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.515e-05/13.74, allocations: 167 kB / 5.526 GB, free: 47.42 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/13.74, allocations: 4 kB / 5.526 GB, free: 47.42 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.385e-05/13.74, allocations: 0 / 5.526 GB, free: 47.42 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.047e-05/13.74, allocations: 16 kB / 5.526 GB, free: 47.4 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.196e-05/13.74, allocations: 49.62 kB / 5.526 GB, free: 47.35 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/13.74, allocations: 0 / 5.526 GB, free: 47.35 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/13.74, allocations: 0 / 5.526 GB, free: 47.35 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/13.74, allocations: 7.984 kB / 5.526 GB, free: 47.34 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001309/13.74, allocations: 146.1 kB / 5.526 GB, free: 47.16 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 6.653e-05/13.74, allocations: 42.52 kB / 5.526 GB, free: 47.11 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.705e-05/13.74, allocations: 12.86 kB / 5.526 GB, free: 47.09 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.444e-05/13.74, allocations: 7.938 kB / 5.526 GB, free: 47.09 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.087e-05/13.74, allocations: 30.56 kB / 5.527 GB, free: 47.05 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.002e-06/13.74, allocations: 0 / 5.527 GB, free: 47.05 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11): time 0.0006008/13.74, allocations: 338.4 kB / 5.527 GB, free: 46.66 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.239e-05/13.74, allocations: 51.41 kB / 5.527 GB, free: 46.6 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.402e-05/13.74, allocations: 85 kB / 5.527 GB, free: 46.51 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.374e-05/13.74, allocations: 29.7 kB / 5.527 GB, free: 46.48 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 2.065e-05/13.74, allocations: 80.14 kB / 5.527 GB, free: 46.39 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.328e-05/13.74, allocations: 43.3 kB / 5.527 GB, free: 46.35 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.368e-06/13.74, allocations: 128 / 5.527 GB, free: 46.35 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 5.365e-05/13.74, allocations: 322.8 kB / 5.527 GB, free: 46.03 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.561e-05/13.74, allocations: 16.06 kB / 5.527 GB, free: 46.01 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.939e-05/13.74, allocations: 29.72 kB / 5.527 GB, free: 45.98 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.287e-05/13.74, allocations: 23.92 kB / 5.527 GB, free: 45.95 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.91e-07/13.74, allocations: 4 kB / 5.528 GB, free: 45.95 MB / 0.8698 GB Notification: Performance of matching and sorting (n=14) (initialization): time 9.53e-05/13.74, allocations: 77.67 kB / 5.528 GB, free: 45.87 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/13.74, allocations: 8 kB / 5.528 GB, free: 45.86 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/13.74, allocations: 4 kB / 5.528 GB, free: 45.86 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/13.74, allocations: 4 kB / 5.528 GB, free: 45.85 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/13.74, allocations: 35.81 kB / 5.528 GB, free: 45.82 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/13.74, allocations: 480 / 5.528 GB, free: 45.82 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.06e-05/13.74, allocations: 3.938 kB / 5.528 GB, free: 45.81 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.153e-06/13.74, allocations: 4 kB / 5.528 GB, free: 45.81 MB / 0.8698 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.513e-05/13.74, allocations: 101 kB / 5.528 GB, free: 45.7 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.219e-05/13.74, allocations: 7.906 kB / 5.528 GB, free: 45.7 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.442e-05/13.74, allocations: 8.406 kB / 5.528 GB, free: 45.69 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/13.74, allocations: 4 kB / 5.528 GB, free: 45.69 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/13.74, allocations: 7.953 kB / 5.528 GB, free: 45.68 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/13.74, allocations: 3.984 kB / 5.528 GB, free: 45.68 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.071e-05/13.74, allocations: 146.2 kB / 5.528 GB, free: 45.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/13.74, allocations: 0 / 5.528 GB, free: 45.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000142/13.74, allocations: 23.92 kB / 5.528 GB, free: 45.47 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/13.74, allocations: 4 kB / 5.528 GB, free: 45.47 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/13.74, allocations: 0 / 5.528 GB, free: 45.47 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/13.74, allocations: 0 / 5.528 GB, free: 45.47 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/13.74, allocations: 0 / 5.528 GB, free: 45.47 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001633/13.74, allocations: 133 kB / 5.528 GB, free: 45.32 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.843e-05/13.74, allocations: 85.02 kB / 5.528 GB, free: 45.22 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.832e-05/13.74, allocations: 4.031 kB / 5.528 GB, free: 45.21 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.19e-05/13.74, allocations: 0 / 5.528 GB, free: 45.21 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.252e-05/13.74, allocations: 4 kB / 5.528 GB, free: 45.21 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-06/13.74, allocations: 7.984 kB / 5.528 GB, free: 45.2 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 1.888e-05/13.74, allocations: 75.28 kB / 5.528 GB, free: 45.13 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.4e-07/13.74, allocations: 0 / 5.528 GB, free: 45.13 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002485/13.74, allocations: 40.09 kB / 5.528 GB, free: 45.09 MB / 0.8698 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.0006527/13.74, allocations: 0.6699 MB / 5.529 GB, free: 44.42 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0001034/13.74, allocations: 40 kB / 5.529 GB, free: 44.38 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/13.74, allocations: 4 kB / 5.529 GB, free: 44.38 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 2.824e-05/13.74, allocations: 27.94 kB / 5.529 GB, free: 44.35 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001389/13.74, allocations: 6.578 kB / 5.529 GB, free: 44.34 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004266/13.74, allocations: 277.7 kB / 5.529 GB, free: 44.04 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000126/13.74, allocations: 0.6846 MB / 5.53 GB, free: 43.33 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 6.666e-05/13.74, allocations: 20.58 kB / 5.53 GB, free: 43.31 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.998e-05/13.74, allocations: 11.44 kB / 5.53 GB, free: 43.3 MB / 0.8698 GB Notification: Performance of SimCode: time 2.3e-07/13.74, allocations: 0 / 5.53 GB, free: 43.3 MB / 0.8698 GB Notification: Performance of Templates: time 0.006756/13.75, allocations: 3.875 MB / 5.534 GB, free: 39.43 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (rm -f Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","../files/Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches