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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001568/0.001568, allocations: 110.5 kB / 16.41 MB, free: 6.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0016/0.0016, allocations: 188.1 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.24/2.24, allocations: 390.3 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 71.86 kB / 0.9515 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8627/0.8641, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002388/0.8665, allocations: 1.289 MB / 1.09 GB, free: 4.605 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1873/1.054, allocations: 147 MB / 1.233 GB, free: 6.227 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.435e-05/1.054, allocations: 1 kB / 1.233 GB, free: 6.227 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.883e-05/1.054, allocations: 0 / 1.233 GB, free: 6.227 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.904e-05/1.054, allocations: 9.047 kB / 1.233 GB, free: 6.219 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005723/1.055, allocations: 95.06 kB / 1.233 GB, free: 6.148 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.35e-05/1.055, allocations: 32.05 kB / 1.234 GB, free: 6.133 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.446e-05/1.055, allocations: 6.484 kB / 1.234 GB, free: 6.129 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.415e-05/1.055, allocations: 18.64 kB / 1.234 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.003e-05/1.055, allocations: 10.48 kB / 1.234 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.339e-05/1.055, allocations: 5.25 kB / 1.234 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003271/1.055, allocations: 82.17 kB / 1.234 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.231e-05/1.055, allocations: 13.95 kB / 1.234 GB, free: 6.051 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.654e-05/1.055, allocations: 19.48 kB / 1.234 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001789/1.056, allocations: 63.73 kB / 1.234 GB, free: 6.012 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/1.056, allocations: 3.938 kB / 1.234 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.014e-06/1.056, allocations: 5.156 kB / 1.234 GB, free: 6.004 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.851e-06/1.056, allocations: 0 / 1.234 GB, free: 6.004 MB / 0.9669 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.0004657/1.056, allocations: 347.1 kB / 1.234 GB, free: 5.637 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/1.056, allocations: 10.34 kB / 1.234 GB, free: 5.637 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002191/1.056, allocations: 11.8 kB / 1.234 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/1.056, allocations: 165.4 kB / 1.234 GB, free: 5.434 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.711e-05/1.057, allocations: 6.219 kB / 1.234 GB, free: 5.43 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.06e-05/1.057, allocations: 7.219 kB / 1.234 GB, free: 5.426 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001353/1.057, allocations: 56.8 kB / 1.234 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/1.057, allocations: 1.156 kB / 1.234 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/1.057, allocations: 0 / 1.234 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/1.057, allocations: 1 kB / 1.234 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.968e-05/1.057, allocations: 17.61 kB / 1.234 GB, free: 5.367 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001927/1.057, allocations: 169 kB / 1.234 GB, free: 5.16 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001058/1.057, allocations: 51.84 kB / 1.235 GB, free: 5.121 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.304e-05/1.057, allocations: 19.97 kB / 1.235 GB, free: 5.105 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.459e-05/1.057, allocations: 0 / 1.235 GB, free: 5.105 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.854e-05/1.057, allocations: 40.84 kB / 1.235 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/1.057, allocations: 0 / 1.235 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0007977/1.058, allocations: 365.2 kB / 1.235 GB, free: 4.738 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/1.058, allocations: 53.78 kB / 1.235 GB, free: 4.676 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.05e-05/1.058, allocations: 99.09 kB / 1.235 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/1.058, allocations: 30.83 kB / 1.235 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.711e-05/1.058, allocations: 80.14 kB / 1.235 GB, free: 4.453 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.072e-05/1.058, allocations: 40.56 kB / 1.235 GB, free: 4.418 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-05/1.058, allocations: 26.12 kB / 1.235 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001164/1.058, allocations: 324.7 kB / 1.236 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.902e-05/1.059, allocations: 14.66 kB / 1.236 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.213e-05/1.059, allocations: 40.02 kB / 1.236 GB, free: 4.035 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.362e-05/1.059, allocations: 60.84 kB / 1.236 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/1.059, allocations: 0 / 1.236 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001507/1.059, allocations: 105.4 kB / 1.236 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/1.059, allocations: 5.844 kB / 1.236 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/1.059, allocations: 0 / 1.236 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/1.059, allocations: 1.469 kB / 1.236 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/1.059, allocations: 26.33 kB / 1.236 GB, free: 3.918 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/1.059, allocations: 1 kB / 1.236 GB, free: 3.918 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.421e-05/1.059, allocations: 5.219 kB / 1.236 GB, free: 3.914 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.247e-06/1.059, allocations: 3.062 kB / 1.236 GB, free: 3.914 MB / 0.9669 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.689e-05/1.059, allocations: 124 kB / 1.236 GB, free: 3.785 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.653e-05/1.059, allocations: 4.188 kB / 1.236 GB, free: 3.785 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.693e-05/1.059, allocations: 7.969 kB / 1.236 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/1.059, allocations: 1.812 kB / 1.236 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/1.059, allocations: 3.984 kB / 1.236 GB, free: 3.773 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/1.059, allocations: 0 / 1.236 GB, free: 3.773 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001398/1.059, allocations: 168 kB / 1.236 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/1.059, allocations: 7.938 kB / 1.236 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001311/1.06, allocations: 26.27 kB / 1.236 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/1.06, allocations: 1.344 kB / 1.236 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/1.06, allocations: 8.734 kB / 1.236 GB, free: 3.547 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/1.06, allocations: 0.8125 kB / 1.236 GB, free: 3.547 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/1.06, allocations: 0 / 1.236 GB, free: 3.547 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002346/1.06, allocations: 140.5 kB / 1.236 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.166e-05/1.06, allocations: 79.42 kB / 1.236 GB, free: 3.344 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.669e-05/1.06, allocations: 6.062 kB / 1.236 GB, free: 3.34 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.911e-05/1.06, allocations: 10.53 kB / 1.236 GB, free: 3.332 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.156e-05/1.06, allocations: 2.469 kB / 1.236 GB, free: 3.332 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/1.06, allocations: 3.344 kB / 1.236 GB, free: 3.332 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.712e-05/1.06, allocations: 84.7 kB / 1.236 GB, free: 3.25 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/1.06, allocations: 0 / 1.236 GB, free: 3.25 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002186/1.06, allocations: 20.44 kB / 1.236 GB, free: 3.242 MB / 0.9669 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000113/1.061, allocations: 104.1 kB / 1.237 GB, free: 3.145 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000146/1.061, allocations: 52.55 kB / 1.237 GB, free: 3.129 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/1.061, allocations: 0 / 1.237 GB, free: 3.129 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 4.617e-05/1.061, allocations: 30.92 kB / 1.237 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002451/1.061, allocations: 8.219 kB / 1.237 GB, free: 3.113 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006337/1.062, allocations: 350.1 kB / 1.237 GB, free: 2.801 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002927/1.062, allocations: 0.6917 MB / 1.238 GB, free: 2.094 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.791e-05/1.062, allocations: 13.84 kB / 1.238 GB, free: 2.086 MB / 0.9669 GB Notification: Performance of SimCode: time 2.81e-07/1.062, allocations: 0 / 1.238 GB, free: 2.086 MB / 0.9669 GB Notification: Performance of Templates: time 0.002723/1.065, allocations: 0.8401 MB / 1.239 GB, free: 1.656 MB / 0.9669 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches