Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001199/0.001199, allocations: 107 kB / 16.36 MB, free: 5.875 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.001103/0.001103, allocations: 196.2 kB / 17.3 MB, free: 5.516 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.372/1.372, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.445/2.445, allocations: 437.1 MB / 0.7112 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 68.2 kB / 0.8707 GB, free: 1.406 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3235, allocations: 151.6 MB / 1.019 GB, free: 9.816 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002489/0.326, allocations: 1.272 MB / 1.02 GB, free: 8.531 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.8321/1.158, allocations: 147 MB / 1.164 GB, free: 5.598 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.056e-05/1.158, allocations: 0 / 1.164 GB, free: 5.598 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 2.405e-05/1.158, allocations: 0 / 1.164 GB, free: 5.598 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 6.01e-05/1.158, allocations: 7.672 kB / 1.164 GB, free: 5.594 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.000467/1.159, allocations: 97.25 kB / 1.164 GB, free: 5.543 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 8.709e-05/1.159, allocations: 32.38 kB / 1.164 GB, free: 5.535 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 4.534e-05/1.159, allocations: 6.906 kB / 1.164 GB, free: 5.531 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 5.112e-05/1.159, allocations: 21.47 kB / 1.164 GB, free: 5.52 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 7.147e-05/1.159, allocations: 20.11 kB / 1.164 GB, free: 5.508 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 1.54e-05/1.159, allocations: 2.219 kB / 1.164 GB, free: 5.508 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002852/1.159, allocations: 72.3 kB / 1.164 GB, free: 5.484 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 2.087e-05/1.16, allocations: 17.48 kB / 1.164 GB, free: 5.473 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 3.313e-05/1.16, allocations: 16.81 kB / 1.164 GB, free: 5.465 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0001719/1.16, allocations: 65.53 kB / 1.164 GB, free: 5.445 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/1.16, allocations: 0 / 1.164 GB, free: 5.445 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.763e-06/1.16, allocations: 0 / 1.164 GB, free: 5.445 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 6.092e-06/1.16, allocations: 0 / 1.164 GB, free: 5.445 MB / 0.8731 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.0004132/1.16, allocations: 350.3 kB / 1.164 GB, free: 5.082 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/1.16, allocations: 15.28 kB / 1.164 GB, free: 5.078 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002076/1.16, allocations: 10.55 kB / 1.164 GB, free: 5.078 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/1.161, allocations: 163.6 kB / 1.164 GB, free: 4.883 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/1.161, allocations: 6.094 kB / 1.164 GB, free: 4.879 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.056e-05/1.161, allocations: 12.47 kB / 1.164 GB, free: 4.871 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001314/1.161, allocations: 55.75 kB / 1.165 GB, free: 4.828 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/1.161, allocations: 0 / 1.165 GB, free: 4.828 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/1.161, allocations: 5.5 kB / 1.165 GB, free: 4.824 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/1.161, allocations: 3.938 kB / 1.165 GB, free: 4.82 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.378e-05/1.161, allocations: 18.89 kB / 1.165 GB, free: 4.816 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001782/1.161, allocations: 165 kB / 1.165 GB, free: 4.617 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 9.135e-05/1.161, allocations: 52.11 kB / 1.165 GB, free: 4.582 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.752e-05/1.161, allocations: 18.03 kB / 1.165 GB, free: 4.57 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 1.1e-05/1.161, allocations: 1.719 kB / 1.165 GB, free: 4.57 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.634e-05/1.161, allocations: 40.06 kB / 1.165 GB, free: 4.523 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/1.161, allocations: 0 / 1.165 GB, free: 4.523 MB / 0.8731 GB Notification: Performance of matching and sorting (n=11): time 0.0007185/1.162, allocations: 368.8 kB / 1.165 GB, free: 4.223 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.213e-05/1.162, allocations: 52.44 kB / 1.165 GB, free: 4.16 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.694e-05/1.162, allocations: 94.95 kB / 1.165 GB, free: 4.062 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.889e-05/1.162, allocations: 35.2 kB / 1.165 GB, free: 4.023 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 2.806e-05/1.162, allocations: 80.14 kB / 1.165 GB, free: 3.941 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 3.702e-05/1.162, allocations: 38.72 kB / 1.165 GB, free: 3.91 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.236e-05/1.162, allocations: 27.56 kB / 1.165 GB, free: 3.887 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001023/1.162, allocations: 322.8 kB / 1.166 GB, free: 3.566 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.847e-05/1.162, allocations: 20.75 kB / 1.166 GB, free: 3.559 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.061e-05/1.162, allocations: 41.69 kB / 1.166 GB, free: 3.531 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.174e-05/1.163, allocations: 62.62 kB / 1.166 GB, free: 3.492 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/1.163, allocations: 0 / 1.166 GB, free: 3.492 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001382/1.163, allocations: 94.66 kB / 1.166 GB, free: 3.438 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/1.163, allocations: 4.688 kB / 1.166 GB, free: 3.438 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/1.163, allocations: 1.562 kB / 1.166 GB, free: 3.438 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/1.163, allocations: 1.562 kB / 1.166 GB, free: 3.438 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/1.163, allocations: 24.12 kB / 1.166 GB, free: 3.434 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/1.163, allocations: 3.359 kB / 1.166 GB, free: 3.434 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.074e-05/1.163, allocations: 0.9688 kB / 1.166 GB, free: 3.434 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-06/1.163, allocations: 3.031 kB / 1.166 GB, free: 3.434 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 7.929e-05/1.163, allocations: 124.6 kB / 1.166 GB, free: 3.305 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.701e-05/1.163, allocations: 7.031 kB / 1.166 GB, free: 3.301 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.017e-05/1.163, allocations: 11.97 kB / 1.166 GB, free: 3.285 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/1.163, allocations: 1.75 kB / 1.166 GB, free: 3.285 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/1.163, allocations: 1.094 kB / 1.166 GB, free: 3.285 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/1.163, allocations: 2.5 kB / 1.166 GB, free: 3.285 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001408/1.163, allocations: 178.3 kB / 1.166 GB, free: 3.078 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/1.163, allocations: 0 / 1.166 GB, free: 3.078 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/1.163, allocations: 20.75 kB / 1.166 GB, free: 3.078 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/1.163, allocations: 9.5 kB / 1.166 GB, free: 3.074 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/1.163, allocations: 4 kB / 1.166 GB, free: 3.07 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/1.163, allocations: 1.812 kB / 1.166 GB, free: 3.07 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/1.163, allocations: 2.156 kB / 1.166 GB, free: 3.07 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002097/1.164, allocations: 132.8 kB / 1.166 GB, free: 2.977 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.682e-05/1.164, allocations: 91.48 kB / 1.167 GB, free: 2.875 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/1.164, allocations: 0 / 1.167 GB, free: 2.875 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.222e-05/1.164, allocations: 3.062 kB / 1.167 GB, free: 2.875 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.663e-05/1.164, allocations: 19.66 kB / 1.167 GB, free: 2.863 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-06/1.164, allocations: 2.594 kB / 1.167 GB, free: 2.863 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 3.842e-05/1.164, allocations: 76.62 kB / 1.167 GB, free: 2.789 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.31e-07/1.164, allocations: 0 / 1.167 GB, free: 2.789 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002016/1.164, allocations: 15.91 kB / 1.167 GB, free: 2.785 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.0001124/1.164, allocations: 105.8 kB / 1.167 GB, free: 2.691 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001499/1.164, allocations: 58.42 kB / 1.167 GB, free: 2.676 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/1.164, allocations: 4.094 kB / 1.167 GB, free: 2.672 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 4.309e-05/1.164, allocations: 29.06 kB / 1.167 GB, free: 2.664 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000219/1.165, allocations: 9.719 kB / 1.167 GB, free: 2.66 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005383/1.165, allocations: 318.5 kB / 1.167 GB, free: 2.402 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002222/1.165, allocations: 0.6869 MB / 1.168 GB, free: 1.707 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.955e-05/1.166, allocations: 8.766 kB / 1.168 GB, free: 1.703 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.774e-05/1.166, allocations: 11.78 kB / 1.168 GB, free: 1.695 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/1.166, allocations: 0 / 1.168 GB, free: 1.695 MB / 0.8731 GB Notification: Performance of Templates: time 0.002683/1.168, allocations: 0.6366 MB / 1.169 GB, free: 1.617 MB / 0.8731 GB make -j1 -f Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches