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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001079/0.001079, allocations: 91.14 kB / 15.06 MB, free: 1.098 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.001473/0.001473, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.528/1.528, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.938/2.938, allocations: 462.6 MB / 0.736 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003595/0.0003596, allocations: 8.531 kB / 0.9021 GB, free: 36.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4252/0.4255, allocations: 159.6 MB / 1.058 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001722/0.4273, allocations: 0.9822 MB / 1.059 GB, free: 4.359 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.1773/0.6046, allocations: 133.5 MB / 1.189 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.172e-05/0.6047, allocations: 0 / 1.189 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.182e-05/0.6048, allocations: 4 kB / 1.189 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 8.097e-05/0.6049, allocations: 7.969 kB / 1.189 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004313/0.6053, allocations: 79.64 kB / 1.189 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 7.659e-05/0.6054, allocations: 27.86 kB / 1.189 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 5.972e-05/0.6055, allocations: 4 kB / 1.189 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 4.555e-05/0.6055, allocations: 15.97 kB / 1.189 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.242e-05/0.6056, allocations: 15.92 kB / 1.189 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.288e-05/0.6056, allocations: 0 / 1.189 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002954/0.6059, allocations: 75.83 kB / 1.19 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.645e-05/0.6059, allocations: 7.984 kB / 1.19 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.503e-05/0.606, allocations: 29.7 kB / 1.19 GB, free: 14.24 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001291/0.6061, allocations: 48.17 kB / 1.19 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.6061, allocations: 0 / 1.19 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.104e-06/0.6061, allocations: 4 kB / 1.19 GB, free: 14.19 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.6061, allocations: 0 / 1.19 GB, free: 14.19 MB / 0.9512 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.0003941/0.6065, allocations: 340.2 kB / 1.19 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.6066, allocations: 8.031 kB / 1.19 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002192/0.6068, allocations: 15.98 kB / 1.19 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001191/0.607, allocations: 167 kB / 1.19 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.607, allocations: 4 kB / 1.19 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.201e-05/0.607, allocations: 11.91 kB / 1.19 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001307/0.6071, allocations: 49.67 kB / 1.19 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.6072, allocations: 0 / 1.19 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.625e-05/0.6072, allocations: 4 kB / 1.19 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.6072, allocations: 0 / 1.19 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.096e-05/0.6073, allocations: 11.98 kB / 1.19 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001862/0.6074, allocations: 169.6 kB / 1.19 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 9.036e-05/0.6075, allocations: 58.55 kB / 1.19 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.043e-05/0.6076, allocations: 20.84 kB / 1.19 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.017e-05/0.6076, allocations: 0 / 1.19 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.623e-05/0.6076, allocations: 34.56 kB / 1.19 GB, free: 13.15 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.012e-06/0.6076, allocations: 0 / 1.19 GB, free: 13.15 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.0007376/0.6084, allocations: 366 kB / 1.191 GB, free: 12.74 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.686e-05/0.6084, allocations: 63.28 kB / 1.191 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.832e-05/0.6085, allocations: 97.84 kB / 1.191 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.6085, allocations: 25.7 kB / 1.191 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.164e-05/0.6086, allocations: 80.14 kB / 1.191 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.798e-05/0.6086, allocations: 43.61 kB / 1.191 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-06/0.6086, allocations: 4.125 kB / 1.191 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.6087, allocations: 322.8 kB / 1.191 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.433e-05/0.6088, allocations: 19.98 kB / 1.191 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.615e-05/0.6088, allocations: 33.7 kB / 1.191 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.541e-05/0.6089, allocations: 20 kB / 1.192 GB, free: 12 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-07/0.6089, allocations: 0 / 1.192 GB, free: 12 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001341/0.609, allocations: 93.61 kB / 1.192 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.6091, allocations: 5.875 kB / 1.192 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.6091, allocations: 8 kB / 1.192 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.6091, allocations: 3.984 kB / 1.192 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.6092, allocations: 19.98 kB / 1.192 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.6092, allocations: 4 kB / 1.192 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.157e-05/0.6093, allocations: 4 kB / 1.192 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.6093, allocations: 4 kB / 1.192 GB, free: 11.86 MB / 0.9512 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.408e-05/0.6094, allocations: 121.7 kB / 1.192 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.319e-05/0.6094, allocations: 3.906 kB / 1.192 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.897e-05/0.6094, allocations: 11.97 kB / 1.192 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.6094, allocations: 8 kB / 1.192 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.6095, allocations: 0 / 1.192 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.6095, allocations: 3.984 kB / 1.192 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001328/0.6096, allocations: 169.6 kB / 1.192 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.6096, allocations: 4 kB / 1.192 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001167/0.6097, allocations: 19.98 kB / 1.192 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.461e-06/0.6098, allocations: 0 / 1.192 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.6098, allocations: 7.938 kB / 1.192 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.6098, allocations: 0.7031 kB / 1.192 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.6098, allocations: 0 / 1.192 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002018/0.61, allocations: 140.9 kB / 1.192 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.084e-05/0.6101, allocations: 81.11 kB / 1.192 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.709e-05/0.6101, allocations: 4 kB / 1.192 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.454e-05/0.6102, allocations: 8.031 kB / 1.192 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.932e-05/0.6102, allocations: 4 kB / 1.192 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.6102, allocations: 8 kB / 1.192 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 2.874e-05/0.6103, allocations: 75.28 kB / 1.192 GB, free: 11.1 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.71e-07/0.6103, allocations: 4.094 kB / 1.192 GB, free: 11.1 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0001974/0.6105, allocations: 16 kB / 1.192 GB, free: 11.08 MB / 0.9512 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 (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.0001116/0.6106, allocations: 103.2 kB / 1.192 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001304/0.6107, allocations: 59.86 kB / 1.192 GB, free: 10.91 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.6107, allocations: 0 / 1.192 GB, free: 10.91 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 4.058e-05/0.6108, allocations: 31.92 kB / 1.192 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002257/0.611, allocations: 8 kB / 1.192 GB, free: 10.87 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005968/0.6116, allocations: 389.5 kB / 1.193 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002397/0.6119, allocations: 0.6926 MB / 1.194 GB, free: 9.75 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 6.693e-05/0.6119, allocations: 12.66 kB / 1.194 GB, free: 9.738 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.039e-05/0.612, allocations: 11.44 kB / 1.194 GB, free: 9.727 MB / 0.9512 GB Notification: Performance of SimCode: time 3.6e-07/0.612, allocations: 0 / 1.194 GB, free: 9.727 MB / 0.9512 GB Notification: Performance of Templates: time 0.002945/0.6149, allocations: 0.5818 MB / 1.194 GB, free: 9.145 MB / 0.9512 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