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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001236/0.001236, allocations: 112.1 kB / 16.37 MB, free: 6.465 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.001311/0.001311, allocations: 193.1 kB / 17.31 MB, free: 5.816 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.406/1.406, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.238/2.238, allocations: 390.3 MB / 0.6655 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 60.38 kB / 0.814 GB, free: 32.62 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2872, allocations: 140.4 MB / 0.9511 GB, free: 8.055 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002553/0.2899, allocations: 1.275 MB / 0.9524 GB, free: 6.77 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.7662/1.056, allocations: 147 MB / 1.096 GB, free: 6.164 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.343e-05/1.056, allocations: 0 / 1.096 GB, free: 6.164 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.986e-05/1.056, allocations: 4.797 kB / 1.096 GB, free: 6.164 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.884e-05/1.056, allocations: 4.938 kB / 1.096 GB, free: 6.164 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004036/1.057, allocations: 101.1 kB / 1.096 GB, free: 6.156 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001016/1.057, allocations: 30.62 kB / 1.096 GB, free: 6.156 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.586e-05/1.057, allocations: 2.594 kB / 1.096 GB, free: 6.156 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.865e-05/1.057, allocations: 21.08 kB / 1.096 GB, free: 6.156 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.831e-05/1.057, allocations: 15.25 kB / 1.096 GB, free: 6.156 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.319e-05/1.057, allocations: 6.219 kB / 1.096 GB, free: 6.152 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002711/1.057, allocations: 79.62 kB / 1.096 GB, free: 6.148 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.754e-05/1.057, allocations: 7.203 kB / 1.096 GB, free: 6.148 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.705e-05/1.057, allocations: 16.06 kB / 1.096 GB, free: 6.148 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001737/1.058, allocations: 64.03 kB / 1.096 GB, free: 6.145 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/1.058, allocations: 1.156 kB / 1.096 GB, free: 6.145 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.555e-06/1.058, allocations: 0 / 1.096 GB, free: 6.145 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.33e-06/1.058, allocations: 0 / 1.096 GB, free: 6.145 MB / 0.8575 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.0006336/1.058, allocations: 358.2 kB / 1.097 GB, free: 21.78 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/1.058, allocations: 9.656 kB / 1.097 GB, free: 21.78 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002123/1.058, allocations: 14.44 kB / 1.097 GB, free: 21.78 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001054/1.059, allocations: 162.9 kB / 1.097 GB, free: 21.58 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/1.059, allocations: 11.14 kB / 1.097 GB, free: 21.57 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.597e-05/1.059, allocations: 10 kB / 1.097 GB, free: 21.57 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001188/1.059, allocations: 51.91 kB / 1.097 GB, free: 21.54 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/1.059, allocations: 0 / 1.097 GB, free: 21.54 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/1.059, allocations: 1.188 kB / 1.097 GB, free: 21.54 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/1.059, allocations: 5.062 kB / 1.097 GB, free: 21.54 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.078e-05/1.059, allocations: 14.81 kB / 1.097 GB, free: 21.54 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001769/1.059, allocations: 172.8 kB / 1.097 GB, free: 21.34 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 9.425e-05/1.059, allocations: 51.55 kB / 1.097 GB, free: 21.32 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.117e-05/1.059, allocations: 19.17 kB / 1.097 GB, free: 21.31 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/1.059, allocations: 1.547 kB / 1.097 GB, free: 21.31 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.476e-05/1.059, allocations: 38.55 kB / 1.097 GB, free: 21.27 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/1.059, allocations: 0 / 1.097 GB, free: 21.27 MB / 0.8731 GB Notification: Performance of matching and sorting (n=11): time 0.0008873/1.06, allocations: 361.4 kB / 1.097 GB, free: 21.02 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/1.06, allocations: 54.28 kB / 1.098 GB, free: 20.96 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.711e-05/1.06, allocations: 92.92 kB / 1.098 GB, free: 20.86 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.336e-05/1.06, allocations: 30.3 kB / 1.098 GB, free: 20.83 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 5.092e-05/1.06, allocations: 88.06 kB / 1.098 GB, free: 20.74 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.967e-05/1.06, allocations: 46.92 kB / 1.098 GB, free: 20.71 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.504e-05/1.06, allocations: 27.98 kB / 1.098 GB, free: 20.7 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001455/1.061, allocations: 318.2 kB / 1.098 GB, free: 20.38 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.785e-05/1.061, allocations: 17.12 kB / 1.098 GB, free: 20.38 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.22e-05/1.061, allocations: 35.48 kB / 1.098 GB, free: 20.36 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000134/1.061, allocations: 63.89 kB / 1.098 GB, free: 20.35 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/1.061, allocations: 4 kB / 1.098 GB, free: 20.34 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001736/1.061, allocations: 95.27 kB / 1.098 GB, free: 20.31 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/1.061, allocations: 5.891 kB / 1.098 GB, free: 20.31 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/1.061, allocations: 0.625 kB / 1.098 GB, free: 20.31 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.126e-05/1.061, allocations: 1.922 kB / 1.098 GB, free: 20.31 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001318/1.061, allocations: 23.17 kB / 1.098 GB, free: 20.31 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.804e-06/1.061, allocations: 1.344 kB / 1.098 GB, free: 20.31 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.387e-05/1.061, allocations: 1.594 kB / 1.098 GB, free: 20.31 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.267e-06/1.061, allocations: 6.312 kB / 1.098 GB, free: 20.31 MB / 0.8731 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.331e-05/1.061, allocations: 126.1 kB / 1.098 GB, free: 20.19 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.867e-05/1.061, allocations: 7.188 kB / 1.098 GB, free: 20.19 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.849e-05/1.062, allocations: 9.297 kB / 1.098 GB, free: 20.18 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/1.062, allocations: 1.531 kB / 1.099 GB, free: 20.18 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/1.062, allocations: 1.094 kB / 1.099 GB, free: 20.18 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/1.062, allocations: 1.516 kB / 1.099 GB, free: 20.18 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001402/1.062, allocations: 175.3 kB / 1.099 GB, free: 19.99 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/1.062, allocations: 1.281 kB / 1.099 GB, free: 19.99 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000128/1.062, allocations: 24.5 kB / 1.099 GB, free: 19.99 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/1.062, allocations: 5.594 kB / 1.099 GB, free: 19.98 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.071e-05/1.062, allocations: 5.094 kB / 1.099 GB, free: 19.98 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.073e-06/1.062, allocations: 0.7031 kB / 1.099 GB, free: 19.98 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/1.062, allocations: 0.9062 kB / 1.099 GB, free: 19.98 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002246/1.062, allocations: 134.3 kB / 1.099 GB, free: 19.91 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 8.014e-05/1.062, allocations: 90.81 kB / 1.099 GB, free: 19.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.726e-05/1.062, allocations: 1.594 kB / 1.099 GB, free: 19.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.278e-05/1.062, allocations: 3.562 kB / 1.099 GB, free: 19.82 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.514e-05/1.062, allocations: 5.219 kB / 1.099 GB, free: 19.82 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/1.062, allocations: 11.03 kB / 1.099 GB, free: 19.81 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 4.683e-05/1.062, allocations: 76.19 kB / 1.099 GB, free: 19.74 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/1.062, allocations: 1.828 kB / 1.099 GB, free: 19.74 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002144/1.063, allocations: 16.98 kB / 1.099 GB, free: 19.74 MB / 0.8731 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.0001321/1.063, allocations: 108.1 kB / 1.099 GB, free: 19.64 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001581/1.063, allocations: 60.23 kB / 1.099 GB, free: 19.64 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/1.063, allocations: 0.6562 kB / 1.099 GB, free: 19.64 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 4.581e-05/1.063, allocations: 32.66 kB / 1.099 GB, free: 19.64 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002444/1.063, allocations: 10.53 kB / 1.099 GB, free: 19.64 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005666/1.064, allocations: 319.7 kB / 1.1 GB, free: 19.4 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002807/1.064, allocations: 0.6861 MB / 1.1 GB, free: 18.71 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.802e-05/1.064, allocations: 10.12 kB / 1.1 GB, free: 18.7 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.77e-05/1.064, allocations: 12.59 kB / 1.1 GB, free: 18.7 MB / 0.8731 GB Notification: Performance of SimCode: time 2.2e-07/1.064, allocations: 0 / 1.1 GB, free: 18.7 MB / 0.8731 GB Notification: Performance of Templates: time 0.003233/1.067, allocations: 0.6366 MB / 1.101 GB, free: 18.63 MB / 0.8731 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 -s cvode -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