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.001392/0.001392, allocations: 99.7 kB / 16.35 MB, free: 5.828 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.001336/0.001336, allocations: 197.2 kB / 17.3 MB, free: 5.484 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.452/1.452, 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 11.0.0-master/package.mo): time 2.557/2.557, allocations: 442.6 MB / 0.7165 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 63.62 kB / 0.8773 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3211/0.3226, allocations: 153 MB / 1.027 GB, free: 2.023 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002688/0.3253, allocations: 1.292 MB / 1.028 GB, free: 0.7266 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.7563/1.082, allocations: 147 MB / 1.172 GB, free: 12.12 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.937e-05/1.082, allocations: 0 / 1.172 GB, free: 12.12 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.87e-05/1.082, allocations: 6.141 kB / 1.172 GB, free: 12.12 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.524e-05/1.082, allocations: 1.344 kB / 1.172 GB, free: 12.12 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004472/1.082, allocations: 95.31 kB / 1.172 GB, free: 12.08 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.001e-05/1.083, allocations: 37.45 kB / 1.172 GB, free: 12.06 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.021e-05/1.083, allocations: 10.72 kB / 1.172 GB, free: 12.05 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 5.145e-05/1.083, allocations: 17.78 kB / 1.172 GB, free: 12.05 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.078e-05/1.083, allocations: 15.39 kB / 1.172 GB, free: 12.04 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.7e-05/1.083, allocations: 6.016 kB / 1.172 GB, free: 12.04 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002973/1.083, allocations: 71.52 kB / 1.172 GB, free: 12.01 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.952e-05/1.083, allocations: 10.06 kB / 1.172 GB, free: 12.01 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.782e-05/1.083, allocations: 20.77 kB / 1.172 GB, free: 12 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001776/1.083, allocations: 63.72 kB / 1.172 GB, free: 11.98 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/1.083, allocations: 0 / 1.172 GB, free: 11.98 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.254e-06/1.083, allocations: 0 / 1.172 GB, free: 11.98 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.344e-06/1.083, allocations: 4 kB / 1.172 GB, free: 11.97 MB / 0.8887 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.000509/1.084, allocations: 345.5 kB / 1.172 GB, free: 11.62 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/1.084, allocations: 9.969 kB / 1.172 GB, free: 11.62 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002451/1.084, allocations: 14.84 kB / 1.172 GB, free: 11.61 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001341/1.084, allocations: 168.8 kB / 1.172 GB, free: 11.41 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/1.084, allocations: 5.938 kB / 1.172 GB, free: 11.41 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.611e-05/1.084, allocations: 7.281 kB / 1.172 GB, free: 11.41 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001458/1.085, allocations: 56.45 kB / 1.172 GB, free: 11.36 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/1.085, allocations: 1.031 kB / 1.172 GB, free: 11.36 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/1.085, allocations: 1.094 kB / 1.172 GB, free: 11.36 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/1.085, allocations: 3.938 kB / 1.172 GB, free: 11.36 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.952e-05/1.085, allocations: 17.86 kB / 1.172 GB, free: 11.36 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000215/1.085, allocations: 170.3 kB / 1.173 GB, free: 11.15 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 9.944e-05/1.085, allocations: 51.17 kB / 1.173 GB, free: 11.12 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.61e-05/1.085, allocations: 18.88 kB / 1.173 GB, free: 11.11 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.475e-05/1.085, allocations: 4 kB / 1.173 GB, free: 11.1 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/1.085, allocations: 35.84 kB / 1.173 GB, free: 11.06 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/1.085, allocations: 1.375 kB / 1.173 GB, free: 11.06 MB / 0.8887 GB Notification: Performance of matching and sorting (n=11): time 0.0008619/1.086, allocations: 368.1 kB / 1.173 GB, free: 10.76 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.892e-05/1.086, allocations: 56.44 kB / 1.173 GB, free: 10.69 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.271e-05/1.086, allocations: 96.02 kB / 1.173 GB, free: 10.59 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/1.086, allocations: 30.83 kB / 1.173 GB, free: 10.55 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.175e-05/1.086, allocations: 84.12 kB / 1.173 GB, free: 10.47 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 4.274e-05/1.086, allocations: 36.38 kB / 1.173 GB, free: 10.44 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.324e-05/1.086, allocations: 33.06 kB / 1.173 GB, free: 10.41 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001307/1.086, allocations: 322.3 kB / 1.174 GB, free: 10.09 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.721e-05/1.086, allocations: 16.56 kB / 1.174 GB, free: 10.09 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.628e-05/1.086, allocations: 39.58 kB / 1.174 GB, free: 10.06 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.137e-05/1.087, allocations: 55.06 kB / 1.174 GB, free: 10.03 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/1.087, allocations: 0.875 kB / 1.174 GB, free: 10.03 MB / 0.8887 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001423/1.087, allocations: 98.14 kB / 1.174 GB, free: 9.977 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/1.087, allocations: 5.562 kB / 1.174 GB, free: 9.977 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/1.087, allocations: 0 / 1.174 GB, free: 9.977 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/1.087, allocations: 1 kB / 1.174 GB, free: 9.977 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/1.087, allocations: 28.97 kB / 1.174 GB, free: 9.969 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/1.087, allocations: 1.125 kB / 1.174 GB, free: 9.969 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.195e-05/1.087, allocations: 1.156 kB / 1.174 GB, free: 9.969 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.847e-06/1.087, allocations: 8.375 kB / 1.174 GB, free: 9.965 MB / 0.8887 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.422e-05/1.087, allocations: 123.3 kB / 1.174 GB, free: 9.84 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.57e-05/1.087, allocations: 11.19 kB / 1.174 GB, free: 9.832 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.932e-05/1.087, allocations: 13.03 kB / 1.174 GB, free: 9.824 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/1.087, allocations: 1.094 kB / 1.174 GB, free: 9.824 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/1.087, allocations: 0 / 1.174 GB, free: 9.824 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/1.087, allocations: 1.25 kB / 1.174 GB, free: 9.824 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001397/1.087, allocations: 170 kB / 1.174 GB, free: 9.625 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/1.087, allocations: 2.203 kB / 1.174 GB, free: 9.625 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001223/1.087, allocations: 28.31 kB / 1.174 GB, free: 9.617 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/1.087, allocations: 1.562 kB / 1.174 GB, free: 9.617 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/1.088, allocations: 4 kB / 1.174 GB, free: 9.613 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/1.088, allocations: 1.25 kB / 1.174 GB, free: 9.613 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/1.088, allocations: 0 / 1.174 GB, free: 9.613 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002153/1.088, allocations: 143.3 kB / 1.174 GB, free: 9.512 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 7.639e-05/1.088, allocations: 93.25 kB / 1.175 GB, free: 9.41 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.651e-05/1.088, allocations: 3.953 kB / 1.175 GB, free: 9.41 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.875e-05/1.088, allocations: 6.219 kB / 1.175 GB, free: 9.406 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.978e-05/1.088, allocations: 9.828 kB / 1.175 GB, free: 9.402 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.538e-06/1.088, allocations: 3.281 kB / 1.175 GB, free: 9.402 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 3.202e-05/1.088, allocations: 76.41 kB / 1.175 GB, free: 9.328 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.2e-07/1.088, allocations: 0 / 1.175 GB, free: 9.328 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0001968/1.088, allocations: 15.78 kB / 1.175 GB, free: 9.324 MB / 0.8887 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.0001125/1.088, allocations: 107 kB / 1.175 GB, free: 9.23 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0001443/1.088, allocations: 57.16 kB / 1.175 GB, free: 9.215 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/1.089, allocations: 5.156 kB / 1.175 GB, free: 9.211 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 4.015e-05/1.089, allocations: 26.28 kB / 1.175 GB, free: 9.207 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002074/1.089, allocations: 11.28 kB / 1.175 GB, free: 9.203 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006174/1.089, allocations: 315 kB / 1.175 GB, free: 8.945 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003071/1.09, allocations: 0.6908 MB / 1.176 GB, free: 8.246 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 5.774e-05/1.09, allocations: 11.36 kB / 1.176 GB, free: 8.242 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.908e-05/1.09, allocations: 12.31 kB / 1.176 GB, free: 8.234 MB / 0.8887 GB Notification: Performance of SimCode: time 2.11e-07/1.09, allocations: 0 / 1.176 GB, free: 8.234 MB / 0.8887 GB Notification: Performance of Templates: time 0.003405/1.093, allocations: 0.6391 MB / 1.176 GB, free: 8.148 MB / 0.8887 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 -s cvode -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/jenkins1/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