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.228/2.228, allocations: 390.3 MB / 402.8 MB, free: 6.703 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.00118/0.00118, allocations: 180.7 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.653/1.653, allocations: 221.3 MB / 0.7915 GB, free: 5.379 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.0008954/0.0008954, allocations: 95.84 kB / 0.9317 GB, free: 5.699 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.465e-05/3.467e-05, allocations: 0 / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3466/0.3467, allocations: 143 MB / 1.219 GB, free: 13.54 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 11.72/12.07, allocations: 4.189 GB / 5.408 GB, free: 309.4 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/12.07, allocations: 83.31 kB / 5.408 GB, free: 309.4 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 0.06659/12.14, allocations: 36.6 MB / 5.444 GB, free: 278.8 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.292e-06/12.14, allocations: 7.938 kB / 5.444 GB, free: 278.8 MB / 1.167 GB Notification: Performance of Transformations before backend: time 6.953e-06/12.14, allocations: 0 / 5.444 GB, free: 278.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.0002797/12.14, allocations: 342.9 kB / 5.444 GB, free: 278.4 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/12.14, allocations: 8.031 kB / 5.444 GB, free: 278.4 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001716/12.14, allocations: 11.98 kB / 5.444 GB, free: 278.4 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.024e-05/12.14, allocations: 163.6 kB / 5.444 GB, free: 278.2 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/12.14, allocations: 7.5 kB / 5.444 GB, free: 278.2 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.229e-05/12.14, allocations: 7.906 kB / 5.444 GB, free: 278.2 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001653/12.14, allocations: 56.94 kB / 5.444 GB, free: 278.1 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/12.14, allocations: 0 / 5.444 GB, free: 278.1 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/12.14, allocations: 4 kB / 5.444 GB, free: 278.1 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/12.14, allocations: 0 / 5.444 GB, free: 278.1 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.743e-05/12.14, allocations: 15.12 kB / 5.444 GB, free: 278.1 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001414/12.14, allocations: 168.7 kB / 5.445 GB, free: 277.9 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 7.597e-05/12.14, allocations: 53.64 kB / 5.445 GB, free: 277.9 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.429e-05/12.14, allocations: 16.73 kB / 5.445 GB, free: 277.9 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.171e-05/12.14, allocations: 0 / 5.445 GB, free: 277.9 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.009e-05/12.14, allocations: 30.56 kB / 5.445 GB, free: 277.8 MB / 1.167 GB Notification: Performance of pre-optimization done (n=7): time 8.11e-07/12.14, allocations: 3.938 kB / 5.445 GB, free: 277.8 MB / 1.167 GB Notification: Performance of matching and sorting (n=11): time 0.0006014/12.14, allocations: 369.8 kB / 5.445 GB, free: 277.4 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.361e-05/12.14, allocations: 55.41 kB / 5.445 GB, free: 277.4 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.073e-05/12.14, allocations: 85 kB / 5.445 GB, free: 277.3 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 1.236e-05/12.14, allocations: 29.08 kB / 5.445 GB, free: 277.2 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 1.559e-05/12.14, allocations: 84.12 kB / 5.445 GB, free: 277.2 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 3.275e-05/12.14, allocations: 38.59 kB / 5.445 GB, free: 277.1 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.777e-06/12.14, allocations: 0 / 5.445 GB, free: 277.1 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 5.581e-05/12.14, allocations: 318.7 kB / 5.446 GB, free: 276.8 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.821e-05/12.14, allocations: 19.5 kB / 5.446 GB, free: 276.8 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.132e-05/12.14, allocations: 32.66 kB / 5.446 GB, free: 276.8 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.729e-05/12.14, allocations: 26.97 kB / 5.446 GB, free: 276.7 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.12e-07/12.14, allocations: 0 / 5.446 GB, free: 276.7 MB / 1.167 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001026/12.14, allocations: 92.48 kB / 5.446 GB, free: 276.7 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/12.14, allocations: 11.95 kB / 5.446 GB, free: 276.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-06/12.14, allocations: 0 / 5.446 GB, free: 276.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/12.14, allocations: 0 / 5.446 GB, free: 276.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/12.14, allocations: 23.98 kB / 5.446 GB, free: 276.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/12.14, allocations: 7.938 kB / 5.446 GB, free: 276.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.907e-05/12.14, allocations: 3.938 kB / 5.446 GB, free: 276.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-06/12.14, allocations: 7.312 kB / 5.446 GB, free: 276.6 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 () * 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.677e-05/12.14, allocations: 108.4 kB / 5.446 GB, free: 276.5 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.097e-05/12.14, allocations: 3.906 kB / 5.446 GB, free: 276.5 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.225e-05/12.14, allocations: 15.84 kB / 5.446 GB, free: 276.5 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/12.14, allocations: 11.92 kB / 5.446 GB, free: 276.5 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/12.14, allocations: 0 / 5.446 GB, free: 276.5 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/12.14, allocations: 0 / 5.446 GB, free: 276.5 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.391e-05/12.14, allocations: 176.3 kB / 5.446 GB, free: 276.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/12.14, allocations: 0 / 5.446 GB, free: 276.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/12.14, allocations: 16 kB / 5.446 GB, free: 276.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/12.14, allocations: 0 / 5.446 GB, free: 276.2 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/12.14, allocations: 7.938 kB / 5.446 GB, free: 276.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/12.14, allocations: 7.953 kB / 5.446 GB, free: 276.2 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/12.14, allocations: 3.984 kB / 5.446 GB, free: 276.2 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001572/12.14, allocations: 130.5 kB / 5.446 GB, free: 276.1 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 5.04e-05/12.14, allocations: 89.14 kB / 5.446 GB, free: 276 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/12.14, allocations: 3.562 kB / 5.446 GB, free: 276 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.276e-05/12.14, allocations: 4 kB / 5.446 GB, free: 276 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.796e-05/12.14, allocations: 11.94 kB / 5.446 GB, free: 276 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.762e-06/12.14, allocations: 3.312 kB / 5.446 GB, free: 276 MB / 1.167 GB Notification: Performance of sorting global known variables: time 1.835e-05/12.14, allocations: 79.28 kB / 5.446 GB, free: 275.9 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.11e-07/12.14, allocations: 0 / 5.446 GB, free: 275.9 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.0002931/12.14, allocations: 49.3 kB / 5.446 GB, free: 275.9 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 () * 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.0005816/12.14, allocations: 0.569 MB / 5.447 GB, free: 275.3 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.0001152/12.14, allocations: 46.81 kB / 5.447 GB, free: 275.3 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/12.14, allocations: 4 kB / 5.447 GB, free: 275.3 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 3.022e-05/12.14, allocations: 35.42 kB / 5.447 GB, free: 275.2 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001264/12.14, allocations: 4 kB / 5.447 GB, free: 275.2 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004698/12.14, allocations: 281.9 kB / 5.447 GB, free: 275 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001263/12.14, allocations: 0.7003 MB / 5.448 GB, free: 274.2 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 6.624e-05/12.14, allocations: 8.672 kB / 5.448 GB, free: 274.2 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.935e-05/12.14, allocations: 11.44 kB / 5.448 GB, free: 274.2 MB / 1.167 GB Notification: Performance of SimCode: time 2.4e-07/12.14, allocations: 0 / 5.448 GB, free: 274.2 MB / 1.167 GB Notification: Performance of Templates: time 0.01088/12.15, allocations: 9.779 MB / 5.458 GB, free: 264.4 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