Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.305/2.305, allocations: 393.5 MB / 408.4 MB, free: 11.03 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.001115/0.001115, allocations: 179.9 kB / 0.4902 GB, free: 2.227 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.556/1.556, allocations: 223.1 MB / 0.7992 GB, free: 14.73 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.001025/0.001025, allocations: 98.94 kB / 0.9396 GB, free: 1.883 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004064/0.0004064, allocations: 7.719 kB / 1.09 GB, free: 216.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3338/0.3342, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 11.45/11.79, allocations: 4.189 GB / 5.418 GB, free: 336.3 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002559/11.79, allocations: 86.89 kB / 5.419 GB, free: 336.3 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 0.06689/11.86, allocations: 36.68 MB / 5.454 GB, free: 330 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.845e-06/11.86, allocations: 3.906 kB / 5.454 GB, free: 330 MB / 1.167 GB Notification: Performance of Transformations before backend: time 5.801e-06/11.86, allocations: 0 / 5.454 GB, free: 330 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.0002931/11.86, allocations: 357.3 kB / 5.455 GB, free: 329.7 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/11.86, allocations: 12.39 kB / 5.455 GB, free: 329.7 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001692/11.86, allocations: 10.67 kB / 5.455 GB, free: 329.7 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.499e-05/11.86, allocations: 163 kB / 5.455 GB, free: 329.5 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.317e-05/11.86, allocations: 3.906 kB / 5.455 GB, free: 329.5 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.601e-05/11.86, allocations: 18.75 kB / 5.455 GB, free: 329.4 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001145/11.86, allocations: 44.61 kB / 5.455 GB, free: 329.4 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/11.86, allocations: 3.906 kB / 5.455 GB, free: 329.4 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/11.86, allocations: 3.812 kB / 5.455 GB, free: 329.4 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/11.86, allocations: 0 / 5.455 GB, free: 329.4 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.545e-05/11.86, allocations: 15.55 kB / 5.455 GB, free: 329.4 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001374/11.86, allocations: 168 kB / 5.455 GB, free: 329.2 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 7.202e-05/11.86, allocations: 44.81 kB / 5.455 GB, free: 329.2 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.218e-05/11.86, allocations: 7.906 kB / 5.455 GB, free: 329.2 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.976e-05/11.86, allocations: 34 kB / 5.455 GB, free: 329.1 MB / 1.167 GB Notification: Performance of pre-optimization done (n=7): time 1.002e-06/11.86, allocations: 0 / 5.455 GB, free: 329.1 MB / 1.167 GB Notification: Performance of matching and sorting (n=11): time 0.0006408/11.86, allocations: 369.1 kB / 5.456 GB, free: 328.9 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.977e-05/11.86, allocations: 55.31 kB / 5.456 GB, free: 328.8 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.616e-05/11.86, allocations: 96.06 kB / 5.456 GB, free: 328.7 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/11.86, allocations: 25.7 kB / 5.456 GB, free: 328.7 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 1.779e-05/11.86, allocations: 83.52 kB / 5.456 GB, free: 328.6 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 3.3e-05/11.86, allocations: 42.45 kB / 5.456 GB, free: 328.6 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.458e-06/11.86, allocations: 3.562 kB / 5.456 GB, free: 328.6 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 5.462e-05/11.86, allocations: 314.2 kB / 5.456 GB, free: 328.3 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.929e-05/11.86, allocations: 21.83 kB / 5.456 GB, free: 328.3 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.735e-05/11.86, allocations: 35.08 kB / 5.456 GB, free: 328.3 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.921e-05/11.86, allocations: 31.47 kB / 5.456 GB, free: 328.2 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.42e-07/11.86, allocations: 0 / 5.456 GB, free: 328.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001078/11.86, allocations: 96.62 kB / 5.456 GB, free: 328.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/11.86, allocations: 7.859 kB / 5.456 GB, free: 328.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/11.86, allocations: 0 / 5.456 GB, free: 328.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/11.86, allocations: 0 / 5.456 GB, free: 328.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/11.86, allocations: 30.33 kB / 5.456 GB, free: 328.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/11.86, allocations: 0 / 5.456 GB, free: 328.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.189e-05/11.86, allocations: 11.03 kB / 5.456 GB, free: 328.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.141e-06/11.86, allocations: 0 / 5.456 GB, free: 328.2 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.901e-05/11.86, allocations: 118.1 kB / 5.456 GB, free: 328.1 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.446e-05/11.86, allocations: 14.73 kB / 5.456 GB, free: 328.1 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.424e-05/11.86, allocations: 11.17 kB / 5.457 GB, free: 328.1 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/11.86, allocations: 3.906 kB / 5.457 GB, free: 328.1 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/11.86, allocations: 0 / 5.457 GB, free: 328.1 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/11.86, allocations: 0 / 5.457 GB, free: 328.1 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.921e-05/11.86, allocations: 166.1 kB / 5.457 GB, free: 327.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/11.86, allocations: 0 / 5.457 GB, free: 327.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/11.86, allocations: 25.17 kB / 5.457 GB, free: 327.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/11.86, allocations: 5.531 kB / 5.457 GB, free: 327.9 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.837e-06/11.86, allocations: 1.375 kB / 5.457 GB, free: 327.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/11.86, allocations: 3.953 kB / 5.457 GB, free: 327.9 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/11.86, allocations: 1.594 kB / 5.457 GB, free: 327.9 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001941/11.86, allocations: 132.5 kB / 5.457 GB, free: 327.8 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 5.435e-05/11.86, allocations: 83.25 kB / 5.457 GB, free: 327.7 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.573e-05/11.86, allocations: 5 kB / 5.457 GB, free: 327.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.626e-05/11.86, allocations: 6.578 kB / 5.457 GB, free: 327.7 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.049e-05/11.86, allocations: 14.66 kB / 5.457 GB, free: 327.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.816e-06/11.86, allocations: 6.5 kB / 5.457 GB, free: 327.7 MB / 1.167 GB Notification: Performance of sorting global known variables: time 1.719e-05/11.86, allocations: 78.23 kB / 5.457 GB, free: 327.6 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.21e-07/11.86, allocations: 1.125 kB / 5.457 GB, free: 327.6 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.0003253/11.86, allocations: 48.78 kB / 5.457 GB, free: 327.6 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.0006199/11.86, allocations: 0.5631 MB / 5.458 GB, free: 327.3 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.00012/11.86, allocations: 61.25 kB / 5.458 GB, free: 327.3 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/11.86, allocations: 0 / 5.458 GB, free: 327.3 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 3.113e-05/11.86, allocations: 27.12 kB / 5.458 GB, free: 327.3 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001279/11.86, allocations: 11.12 kB / 5.458 GB, free: 327.3 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004848/11.86, allocations: 395.7 kB / 5.458 GB, free: 327 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001164/11.86, allocations: 0.6875 MB / 5.459 GB, free: 326.3 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 6.592e-05/11.86, allocations: 8.578 kB / 5.459 GB, free: 326.3 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.11e-05/11.86, allocations: 11.34 kB / 5.459 GB, free: 326.3 MB / 1.167 GB Notification: Performance of SimCode: time 9.72e-07/11.86, allocations: 0 / 5.459 GB, free: 326.3 MB / 1.167 GB Notification: Performance of Templates: time 0.00984/11.87, allocations: 8.034 MB / 5.467 GB, free: 325.5 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","../files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches