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.548/1.548, allocations: 249.3 MB / 261.8 MB, free: 5.949 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.0009971/0.0009971, allocations: 180.8 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.567/1.567, allocations: 205.1 MB / 0.572 GB, free: 10.65 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.0009253/0.0009256, allocations: 94.45 kB / 0.6764 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.257e-05/3.266e-05, allocations: 4 kB / 0.7879 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.2454, allocations: 106.3 MB / 0.8918 GB, free: 6.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 13.22/13.46, allocations: 4.605 GB / 5.497 GB, free: 23.11 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003951/13.46, allocations: 83.94 kB / 5.497 GB, free: 23.02 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.6882/14.15, allocations: 36.49 MB / 5.533 GB, free: 299 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.385e-06/14.15, allocations: 1.312 kB / 5.533 GB, free: 299 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 5.15e-06/14.15, allocations: 0 / 5.533 GB, free: 299 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.0002781/14.15, allocations: 347.8 kB / 5.533 GB, free: 298.6 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/14.15, allocations: 9.984 kB / 5.533 GB, free: 298.6 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001697/14.15, allocations: 8.906 kB / 5.533 GB, free: 298.6 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8e-05/14.15, allocations: 163.9 kB / 5.533 GB, free: 298.4 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/14.15, allocations: 7.219 kB / 5.533 GB, free: 298.4 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.546e-05/14.15, allocations: 3.188 kB / 5.533 GB, free: 298.4 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001166/14.15, allocations: 50.8 kB / 5.533 GB, free: 298.4 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/14.15, allocations: 1.375 kB / 5.533 GB, free: 298.4 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/14.15, allocations: 1.156 kB / 5.533 GB, free: 298.4 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/14.15, allocations: 6.281 kB / 5.533 GB, free: 298.4 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.546e-05/14.15, allocations: 19.8 kB / 5.533 GB, free: 298.4 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001509/14.15, allocations: 172.7 kB / 5.533 GB, free: 298.2 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 8.624e-05/14.15, allocations: 43.86 kB / 5.533 GB, free: 298.2 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.242e-05/14.15, allocations: 16.83 kB / 5.533 GB, free: 298.2 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.449e-05/14.15, allocations: 1.75 kB / 5.533 GB, free: 298.2 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.074e-05/14.15, allocations: 35.75 kB / 5.533 GB, free: 298.1 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.022e-06/14.15, allocations: 0 / 5.533 GB, free: 298.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11): time 0.0006969/14.15, allocations: 364.2 kB / 5.534 GB, free: 297.9 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.221e-05/14.15, allocations: 52.59 kB / 5.534 GB, free: 297.8 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.666e-05/14.15, allocations: 97.81 kB / 5.534 GB, free: 297.7 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.292e-05/14.15, allocations: 26.86 kB / 5.534 GB, free: 297.7 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 2.079e-05/14.15, allocations: 81.2 kB / 5.534 GB, free: 297.6 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 4.213e-05/14.15, allocations: 45.64 kB / 5.534 GB, free: 297.6 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.218e-06/14.15, allocations: 0.9688 kB / 5.534 GB, free: 297.6 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 5.942e-05/14.15, allocations: 323.9 kB / 5.534 GB, free: 297.2 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.396e-05/14.15, allocations: 16.03 kB / 5.534 GB, free: 297.2 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.791e-05/14.15, allocations: 32.95 kB / 5.534 GB, free: 297.2 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.817e-05/14.15, allocations: 24.77 kB / 5.535 GB, free: 297.2 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/14.15, allocations: 0.9062 kB / 5.535 GB, free: 297.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001308/14.15, allocations: 94.92 kB / 5.535 GB, free: 297.2 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/14.15, allocations: 5.688 kB / 5.535 GB, free: 297.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/14.15, allocations: 4.594 kB / 5.535 GB, free: 297.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/14.15, allocations: 1.25 kB / 5.535 GB, free: 297.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/14.15, allocations: 24.52 kB / 5.535 GB, free: 297.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/14.15, allocations: 4.5 kB / 5.535 GB, free: 297.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.346e-05/14.15, allocations: 4.5 kB / 5.535 GB, free: 297.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-06/14.15, allocations: 2.781 kB / 5.535 GB, free: 297.2 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.789e-05/14.15, allocations: 111.7 kB / 5.535 GB, free: 297.1 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.374e-05/14.15, allocations: 8.875 kB / 5.535 GB, free: 297.1 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.736e-05/14.16, allocations: 12.34 kB / 5.535 GB, free: 297.1 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/14.16, allocations: 2.922 kB / 5.535 GB, free: 297.1 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/14.16, allocations: 0 / 5.535 GB, free: 297.1 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/14.16, allocations: 4.5 kB / 5.535 GB, free: 297.1 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001007/14.16, allocations: 172 kB / 5.535 GB, free: 296.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/14.16, allocations: 2.688 kB / 5.535 GB, free: 296.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001216/14.16, allocations: 26.53 kB / 5.535 GB, free: 296.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/14.16, allocations: 4.703 kB / 5.535 GB, free: 296.9 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.856e-06/14.16, allocations: 2.438 kB / 5.535 GB, free: 296.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/14.16, allocations: 1.25 kB / 5.535 GB, free: 296.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/14.16, allocations: 2.656 kB / 5.535 GB, free: 296.9 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000187/14.16, allocations: 124.9 kB / 5.535 GB, free: 296.8 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.835e-05/14.16, allocations: 85.97 kB / 5.535 GB, free: 296.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/14.16, allocations: 6.469 kB / 5.535 GB, free: 296.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.764e-05/14.16, allocations: 7.047 kB / 5.535 GB, free: 296.7 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.958e-05/14.16, allocations: 9.719 kB / 5.535 GB, free: 296.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.255e-06/14.16, allocations: 3.125 kB / 5.535 GB, free: 296.7 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 1.888e-05/14.16, allocations: 78.72 kB / 5.535 GB, free: 296.6 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.3e-07/14.16, allocations: 0 / 5.535 GB, free: 296.6 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003258/14.16, allocations: 55.62 kB / 5.535 GB, free: 296.6 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.0007955/14.16, allocations: 0.5798 MB / 5.536 GB, free: 296.5 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.000141/14.16, allocations: 51.75 kB / 5.536 GB, free: 296.5 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/14.16, allocations: 0 / 5.536 GB, free: 296.5 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 4.13e-05/14.16, allocations: 27.14 kB / 5.536 GB, free: 296.5 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001389/14.16, allocations: 10.58 kB / 5.536 GB, free: 296.5 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005574/14.16, allocations: 291.2 kB / 5.536 GB, free: 296.2 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000169/14.16, allocations: 0.6881 MB / 5.537 GB, free: 295.5 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 8.677e-05/14.16, allocations: 10.91 kB / 5.537 GB, free: 295.5 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.864e-05/14.16, allocations: 11.56 kB / 5.537 GB, free: 295.5 MB / 0.8698 GB Notification: Performance of SimCode: time 1.863e-06/14.16, allocations: 4 kB / 5.537 GB, free: 295.5 MB / 0.8698 GB Notification: Performance of Templates: time 0.02357/14.18, allocations: 9.757 MB / 5.546 GB, free: 294.7 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