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.0008524/0.0008523, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007963/0.007963, allocations: 169.6 kB / 16.26 MB, free: 6.613 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.394/1.394, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.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.364/2.364, allocations: 390.9 MB / 0.6663 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003678/0.0003678, allocations: 8 kB / 0.8159 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6757/0.6761, allocations: 142.4 MB / 0.955 GB, free: 7.941 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001233/0.6773, allocations: 1.005 MB / 0.956 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1652/0.8425, allocations: 143.2 MB / 1.096 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.546e-05/0.8426, allocations: 0 / 1.096 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.375e-05/0.8426, allocations: 7.922 kB / 1.096 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.682e-05/0.8427, allocations: 4 kB / 1.096 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003904/0.8431, allocations: 79.58 kB / 1.096 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.489e-05/0.8432, allocations: 31.86 kB / 1.096 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.875e-05/0.8432, allocations: 7.984 kB / 1.096 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.269e-05/0.8433, allocations: 19.98 kB / 1.096 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.966e-05/0.8433, allocations: 15.92 kB / 1.096 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.406e-05/0.8434, allocations: 4 kB / 1.096 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002486/0.8436, allocations: 71.83 kB / 1.096 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.575e-05/0.8436, allocations: 7.984 kB / 1.096 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.643e-05/0.8437, allocations: 41.62 kB / 1.096 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001508/0.8438, allocations: 65.84 kB / 1.096 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.8439, allocations: 0 / 1.096 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.004e-06/0.8439, allocations: 3.938 kB / 1.096 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.8439, allocations: 0 / 1.096 GB, free: 14.41 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.0003955/0.8443, allocations: 351.5 kB / 1.096 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.8443, allocations: 8.031 kB / 1.097 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001939/0.8445, allocations: 12.92 kB / 1.097 GB, free: 14 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001091/0.8446, allocations: 164.4 kB / 1.097 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.384e-05/0.8447, allocations: 11.94 kB / 1.097 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.462e-05/0.8447, allocations: 4 kB / 1.097 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001321/0.8448, allocations: 49.67 kB / 1.097 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.8449, allocations: 8 kB / 1.097 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.8449, allocations: 0 / 1.097 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.8449, allocations: 0 / 1.097 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5e-05/0.8449, allocations: 15.92 kB / 1.097 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001765/0.8451, allocations: 173.5 kB / 1.097 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.239e-05/0.8452, allocations: 46.56 kB / 1.097 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.052e-05/0.8453, allocations: 25.02 kB / 1.097 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 8.847e-06/0.8453, allocations: 3.938 kB / 1.097 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/0.8453, allocations: 42.55 kB / 1.097 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 9.72e-07/0.8453, allocations: 0 / 1.097 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0007299/0.846, allocations: 370.1 kB / 1.097 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/0.8461, allocations: 51.41 kB / 1.097 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.047e-05/0.8462, allocations: 97.94 kB / 1.098 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.488e-05/0.8462, allocations: 33.73 kB / 1.098 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.596e-05/0.8462, allocations: 80.14 kB / 1.098 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.064e-05/0.8463, allocations: 47.34 kB / 1.098 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.101e-05/0.8463, allocations: 17.72 kB / 1.098 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.8464, allocations: 314.8 kB / 1.098 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.834e-05/0.8465, allocations: 23.98 kB / 1.098 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.727e-05/0.8465, allocations: 33.7 kB / 1.098 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.171e-05/0.8466, allocations: 65.64 kB / 1.098 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.8466, allocations: 0 / 1.098 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001458/0.8468, allocations: 89.67 kB / 1.098 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.8468, allocations: 8 kB / 1.098 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.8468, allocations: 0 / 1.098 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.8468, allocations: 3.938 kB / 1.098 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.847, allocations: 27.92 kB / 1.098 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.847, allocations: 0.7031 kB / 1.098 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.406e-05/0.847, allocations: 4 kB / 1.098 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.762e-06/0.847, allocations: 4 kB / 1.098 GB, free: 11.99 MB / 0.8575 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 8.747e-05/0.8471, allocations: 121.8 kB / 1.098 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.376e-05/0.8471, allocations: 3.906 kB / 1.098 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.93e-05/0.8472, allocations: 15.97 kB / 1.098 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.8472, allocations: 0 / 1.098 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.8472, allocations: 0 / 1.098 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.8472, allocations: 3.984 kB / 1.098 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001262/0.8473, allocations: 169.6 kB / 1.099 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.8473, allocations: 0 / 1.099 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.8475, allocations: 23.92 kB / 1.099 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.8475, allocations: 4 kB / 1.099 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-06/0.8475, allocations: 4 kB / 1.099 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.8475, allocations: 0 / 1.099 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.8475, allocations: 0 / 1.099 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002102/0.8477, allocations: 137 kB / 1.099 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.601e-05/0.8478, allocations: 85.02 kB / 1.099 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.624e-05/0.8478, allocations: 4 kB / 1.099 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.565e-05/0.8479, allocations: 7.984 kB / 1.099 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.139e-05/0.8479, allocations: 11.94 kB / 1.099 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-06/0.848, allocations: 4 kB / 1.099 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.52e-05/0.848, allocations: 83.22 kB / 1.099 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.848, allocations: 0 / 1.099 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002035/0.8482, allocations: 15.94 kB / 1.099 GB, free: 11.21 MB / 0.8575 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 9.798e-05/0.8483, allocations: 107.2 kB / 1.099 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001312/0.8485, allocations: 56.08 kB / 1.099 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.8485, allocations: 4.094 kB / 1.099 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 3.685e-05/0.8485, allocations: 23.98 kB / 1.099 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002166/0.8487, allocations: 9.531 kB / 1.099 GB, free: 11 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005989/0.8493, allocations: 390.4 kB / 1.099 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002426/0.8496, allocations: 0.6848 MB / 1.1 GB, free: 9.883 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.897e-05/0.8497, allocations: 12.66 kB / 1.1 GB, free: 9.871 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.012e-05/0.8497, allocations: 11.44 kB / 1.1 GB, free: 9.859 MB / 0.8575 GB Notification: Performance of SimCode: time 7.31e-07/0.8497, allocations: 0 / 1.1 GB, free: 9.859 MB / 0.8575 GB Notification: Performance of Templates: time 0.002985/0.8527, allocations: 0.6099 MB / 1.101 GB, free: 9.25 MB / 0.8575 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/jenkins/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