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/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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008561/0.008561, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001725/0.001725, allocations: 196.9 kB / 16.68 MB, free: 5.926 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.61/2.61, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 63.89 kB / 1.054 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8814/0.8827, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002676/0.8855, allocations: 1.273 MB / 1.209 GB, free: 12.37 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.1718/1.057, allocations: 147 MB / 1.352 GB, free: 8.789 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.206e-05/1.057, allocations: 8 kB / 1.353 GB, free: 8.781 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 3.649e-05/1.058, allocations: 3.938 kB / 1.353 GB, free: 8.777 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 5.669e-05/1.058, allocations: 0 / 1.353 GB, free: 8.777 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005775/1.058, allocations: 95.55 kB / 1.353 GB, free: 8.684 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 9.772e-05/1.058, allocations: 35.84 kB / 1.353 GB, free: 8.648 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 4.348e-05/1.058, allocations: 0 / 1.353 GB, free: 8.648 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 5.046e-05/1.058, allocations: 15.94 kB / 1.353 GB, free: 8.633 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 6.948e-05/1.058, allocations: 23.91 kB / 1.353 GB, free: 8.609 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.248e-05/1.059, allocations: 4 kB / 1.353 GB, free: 8.605 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003019/1.059, allocations: 75.83 kB / 1.353 GB, free: 8.531 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 1.732e-05/1.059, allocations: 7.984 kB / 1.353 GB, free: 8.523 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 3.536e-05/1.059, allocations: 15.92 kB / 1.353 GB, free: 8.508 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001764/1.059, allocations: 63.69 kB / 1.353 GB, free: 8.449 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/1.059, allocations: 0 / 1.353 GB, free: 8.449 MB / 1.076 GB Notification: Performance of FrontEnd: time 2.364e-06/1.059, allocations: 0 / 1.353 GB, free: 8.449 MB / 1.076 GB Notification: Performance of Transformations before backend: time 6.141e-06/1.059, allocations: 0 / 1.353 GB, free: 8.449 MB / 1.076 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.0005058/1.06, allocations: 349.4 kB / 1.353 GB, free: 8.062 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/1.06, allocations: 12.03 kB / 1.353 GB, free: 8.051 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002187/1.06, allocations: 16.83 kB / 1.353 GB, free: 8.035 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/1.06, allocations: 164.3 kB / 1.353 GB, free: 7.836 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/1.06, allocations: 11.94 kB / 1.353 GB, free: 7.824 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.08e-05/1.06, allocations: 7.984 kB / 1.353 GB, free: 7.816 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000142/1.06, allocations: 53.66 kB / 1.353 GB, free: 7.758 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/1.06, allocations: 0 / 1.353 GB, free: 7.758 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/1.06, allocations: 4 kB / 1.353 GB, free: 7.754 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/1.06, allocations: 0 / 1.353 GB, free: 7.754 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.25e-05/1.06, allocations: 19.98 kB / 1.353 GB, free: 7.734 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002075/1.061, allocations: 165.5 kB / 1.354 GB, free: 7.523 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 9.238e-05/1.061, allocations: 50.5 kB / 1.354 GB, free: 7.465 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.404e-05/1.061, allocations: 20.84 kB / 1.354 GB, free: 7.441 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.285e-05/1.061, allocations: 0 / 1.354 GB, free: 7.441 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.521e-05/1.061, allocations: 34.56 kB / 1.354 GB, free: 7.398 MB / 1.076 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/1.061, allocations: 4 kB / 1.354 GB, free: 7.395 MB / 1.076 GB Notification: Performance of matching and sorting (n=11): time 0.0007994/1.062, allocations: 374.3 kB / 1.354 GB, free: 6.977 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.867e-05/1.062, allocations: 55.34 kB / 1.354 GB, free: 6.91 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.998e-05/1.062, allocations: 97.78 kB / 1.354 GB, free: 6.805 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/1.062, allocations: 29.7 kB / 1.354 GB, free: 6.77 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 4.514e-05/1.062, allocations: 84.14 kB / 1.354 GB, free: 6.684 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 4.643e-05/1.062, allocations: 35.59 kB / 1.354 GB, free: 6.648 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.529e-05/1.062, allocations: 29.7 kB / 1.354 GB, free: 6.613 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001301/1.062, allocations: 322.8 kB / 1.355 GB, free: 6.289 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.391e-05/1.062, allocations: 19.98 kB / 1.355 GB, free: 6.27 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.983e-05/1.062, allocations: 37.08 kB / 1.355 GB, free: 6.23 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.806e-05/1.062, allocations: 62.23 kB / 1.355 GB, free: 6.164 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.91e-07/1.062, allocations: 0 / 1.355 GB, free: 6.164 MB / 1.076 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001327/1.062, allocations: 101.5 kB / 1.355 GB, free: 6.059 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/1.062, allocations: 8 kB / 1.355 GB, free: 6.051 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/1.062, allocations: 0 / 1.355 GB, free: 6.051 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/1.062, allocations: 0 / 1.355 GB, free: 6.051 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/1.063, allocations: 27.92 kB / 1.355 GB, free: 6.023 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/1.063, allocations: 0 / 1.355 GB, free: 6.023 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.415e-05/1.063, allocations: 4 kB / 1.355 GB, free: 6.02 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.726e-06/1.063, allocations: 4 kB / 1.355 GB, free: 6.016 MB / 1.076 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 0.0001025/1.063, allocations: 121.7 kB / 1.355 GB, free: 5.887 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.522e-05/1.063, allocations: 8 kB / 1.355 GB, free: 5.879 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.863e-05/1.063, allocations: 11.97 kB / 1.355 GB, free: 5.867 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/1.063, allocations: 0 / 1.355 GB, free: 5.867 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/1.063, allocations: 0 / 1.355 GB, free: 5.867 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/1.063, allocations: 0 / 1.355 GB, free: 5.867 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001535/1.063, allocations: 177.6 kB / 1.355 GB, free: 5.645 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/1.063, allocations: 0 / 1.355 GB, free: 5.645 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001265/1.063, allocations: 27.92 kB / 1.355 GB, free: 5.617 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/1.063, allocations: 4 kB / 1.355 GB, free: 5.613 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/1.063, allocations: 0 / 1.355 GB, free: 5.613 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/1.063, allocations: 0 / 1.355 GB, free: 5.613 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/1.063, allocations: 4 kB / 1.355 GB, free: 5.609 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002124/1.063, allocations: 136.9 kB / 1.355 GB, free: 5.457 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 7.728e-05/1.063, allocations: 89.05 kB / 1.355 GB, free: 5.352 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.699e-05/1.064, allocations: 4 kB / 1.355 GB, free: 5.348 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.273e-05/1.064, allocations: 4 kB / 1.355 GB, free: 5.344 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.241e-05/1.064, allocations: 3.984 kB / 1.356 GB, free: 5.34 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.043e-05/1.064, allocations: 8 kB / 1.356 GB, free: 5.332 MB / 1.076 GB Notification: Performance of sorting global known variables: time 3.838e-05/1.064, allocations: 79.28 kB / 1.356 GB, free: 5.254 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.1e-07/1.064, allocations: 0 / 1.356 GB, free: 5.254 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002074/1.064, allocations: 23.94 kB / 1.356 GB, free: 5.23 MB / 1.076 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.0001053/1.064, allocations: 103.2 kB / 1.356 GB, free: 5.117 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0001292/1.064, allocations: 55.92 kB / 1.356 GB, free: 5.062 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/1.064, allocations: 0 / 1.356 GB, free: 5.062 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 4.606e-05/1.064, allocations: 31.92 kB / 1.356 GB, free: 5.031 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002326/1.064, allocations: 12.53 kB / 1.356 GB, free: 5.02 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006151/1.065, allocations: 313.1 kB / 1.356 GB, free: 4.688 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/1.065, allocations: 0.6884 MB / 1.357 GB, free: 3.973 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 5.458e-05/1.065, allocations: 12.66 kB / 1.357 GB, free: 3.961 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.866e-05/1.065, allocations: 11.44 kB / 1.357 GB, free: 3.949 MB / 1.076 GB Notification: Performance of SimCode: time 2.3e-07/1.065, allocations: 0 / 1.357 GB, free: 3.949 MB / 1.076 GB Notification: Performance of Templates: time 0.003198/1.069, allocations: 0.6606 MB / 1.357 GB, free: 3.293 MB / 1.076 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches