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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001638/0.001638, allocations: 104.1 kB / 16.41 MB, free: 6.508 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.001933/0.001933, allocations: 192.2 kB / 17.34 MB, free: 5.742 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.351/1.351, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.409/2.409, allocations: 437.1 MB / 0.7112 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 59.91 kB / 1.019 GB, free: 9.434 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8304/0.8318, allocations: 151.6 MB / 1.167 GB, free: 3.863 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002509/0.8343, allocations: 1.279 MB / 1.169 GB, free: 2.578 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.149/0.9834, allocations: 147 MB / 1.312 GB, free: 15 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.288e-05/0.9834, allocations: 0 / 1.312 GB, free: 15 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.174e-05/0.9835, allocations: 7.938 kB / 1.312 GB, free: 15 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 5.361e-05/0.9836, allocations: 3.938 kB / 1.312 GB, free: 14.99 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004788/0.9841, allocations: 99.5 kB / 1.312 GB, free: 14.89 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 9.41e-05/0.9842, allocations: 35.89 kB / 1.312 GB, free: 14.86 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.322e-05/0.9842, allocations: 7.938 kB / 1.312 GB, free: 14.85 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 4.769e-05/0.9843, allocations: 8 kB / 1.312 GB, free: 14.84 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 6.403e-05/0.9843, allocations: 15.92 kB / 1.312 GB, free: 14.83 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.236e-05/0.9844, allocations: 0 / 1.312 GB, free: 14.83 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002784/0.9846, allocations: 87.81 kB / 1.312 GB, free: 14.74 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.549e-05/0.9847, allocations: 8 kB / 1.312 GB, free: 14.73 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.37e-05/0.9847, allocations: 19.91 kB / 1.312 GB, free: 14.71 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001675/0.9849, allocations: 63.69 kB / 1.312 GB, free: 14.66 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.9849, allocations: 4 kB / 1.312 GB, free: 14.65 MB / 1.045 GB Notification: Performance of FrontEnd: time 3.116e-06/0.9849, allocations: 0 / 1.312 GB, free: 14.65 MB / 1.045 GB Notification: Performance of Transformations before backend: time 9.397e-06/0.9849, allocations: 3.938 kB / 1.312 GB, free: 14.65 MB / 1.045 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.0004077/0.9853, allocations: 345.4 kB / 1.313 GB, free: 14.27 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.9854, allocations: 16.58 kB / 1.313 GB, free: 14.25 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002133/0.9856, allocations: 20.84 kB / 1.313 GB, free: 14.23 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001039/0.9857, allocations: 164.4 kB / 1.313 GB, free: 14.03 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.9857, allocations: 3.938 kB / 1.313 GB, free: 14.03 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.439e-05/0.9858, allocations: 8 kB / 1.313 GB, free: 14.02 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001242/0.9859, allocations: 45.69 kB / 1.313 GB, free: 13.97 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.9859, allocations: 0 / 1.313 GB, free: 13.97 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.2e-05/0.9859, allocations: 0 / 1.313 GB, free: 13.97 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.9859, allocations: 4 kB / 1.313 GB, free: 13.96 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.314e-05/0.986, allocations: 23.91 kB / 1.313 GB, free: 13.94 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001687/0.9862, allocations: 177.5 kB / 1.313 GB, free: 13.72 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 8.546e-05/0.9863, allocations: 46.56 kB / 1.313 GB, free: 13.66 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.811e-05/0.9863, allocations: 12.86 kB / 1.313 GB, free: 13.65 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.238e-05/0.9863, allocations: 0 / 1.313 GB, free: 13.65 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.9864, allocations: 42.48 kB / 1.313 GB, free: 13.6 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 9.31e-07/0.9864, allocations: 0 / 1.313 GB, free: 13.6 MB / 1.045 GB Notification: Performance of matching and sorting (n=11): time 0.0007266/0.9871, allocations: 370.6 kB / 1.314 GB, free: 13.18 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.57e-05/0.9871, allocations: 55.41 kB / 1.314 GB, free: 13.12 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.48e-05/0.9872, allocations: 89.86 kB / 1.314 GB, free: 13.02 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.9872, allocations: 29.7 kB / 1.314 GB, free: 12.98 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 2.622e-05/0.9873, allocations: 80.14 kB / 1.314 GB, free: 12.9 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.317e-05/0.9873, allocations: 43.8 kB / 1.314 GB, free: 12.86 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.238e-05/0.9874, allocations: 33.7 kB / 1.314 GB, free: 12.82 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 9.64e-05/0.9875, allocations: 318.8 kB / 1.314 GB, free: 12.5 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.792e-05/0.9875, allocations: 19.98 kB / 1.314 GB, free: 12.48 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.6e-05/0.9876, allocations: 35.33 kB / 1.314 GB, free: 12.44 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.184e-05/0.9877, allocations: 61.64 kB / 1.314 GB, free: 12.38 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.9877, allocations: 3.938 kB / 1.314 GB, free: 12.37 MB / 1.045 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001355/0.9878, allocations: 97.56 kB / 1.314 GB, free: 12.27 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.9878, allocations: 8 kB / 1.314 GB, free: 12.26 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.9878, allocations: 4 kB / 1.314 GB, free: 12.26 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.9879, allocations: 0 / 1.314 GB, free: 12.26 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.988, allocations: 27.92 kB / 1.315 GB, free: 12.23 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.377e-06/0.988, allocations: 11.92 kB / 1.315 GB, free: 12.22 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.326e-05/0.988, allocations: 0 / 1.315 GB, free: 12.22 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.9881, allocations: 4 kB / 1.315 GB, free: 12.21 MB / 1.045 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.165e-05/0.9881, allocations: 113.8 kB / 1.315 GB, free: 12.09 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.431e-05/0.9882, allocations: 4 kB / 1.315 GB, free: 12.09 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.404e-05/0.9882, allocations: 15.97 kB / 1.315 GB, free: 12.07 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.9882, allocations: 4 kB / 1.315 GB, free: 12.07 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.9882, allocations: 0 / 1.315 GB, free: 12.07 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.9882, allocations: 0 / 1.315 GB, free: 12.07 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001259/0.9884, allocations: 169.6 kB / 1.315 GB, free: 11.85 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.9884, allocations: 4 kB / 1.315 GB, free: 11.85 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001218/0.9885, allocations: 23.92 kB / 1.315 GB, free: 11.82 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.9885, allocations: 0 / 1.315 GB, free: 11.82 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.9885, allocations: 8 kB / 1.315 GB, free: 11.82 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.9885, allocations: 4 kB / 1.315 GB, free: 11.81 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.9885, allocations: 4 kB / 1.315 GB, free: 11.81 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001879/0.9887, allocations: 136.9 kB / 1.315 GB, free: 11.66 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 6.991e-05/0.9888, allocations: 89.05 kB / 1.315 GB, free: 11.55 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.499e-05/0.9888, allocations: 4 kB / 1.315 GB, free: 11.55 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.132e-05/0.9889, allocations: 0 / 1.315 GB, free: 11.55 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.153e-05/0.9889, allocations: 11.98 kB / 1.315 GB, free: 11.54 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.938e-06/0.989, allocations: 7.938 kB / 1.315 GB, free: 11.53 MB / 1.045 GB Notification: Performance of sorting global known variables: time 2.947e-05/0.989, allocations: 79.28 kB / 1.315 GB, free: 11.45 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.3e-07/0.989, allocations: 0 / 1.315 GB, free: 11.45 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002027/0.9892, allocations: 19.94 kB / 1.315 GB, free: 11.43 MB / 1.045 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.563e-05/0.9893, allocations: 99.25 kB / 1.315 GB, free: 11.32 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0001327/0.9894, allocations: 63.89 kB / 1.315 GB, free: 11.26 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.9895, allocations: 0 / 1.315 GB, free: 11.26 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 3.667e-05/0.9895, allocations: 23.98 kB / 1.315 GB, free: 11.23 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002204/0.9897, allocations: 8.094 kB / 1.315 GB, free: 11.23 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005752/0.9903, allocations: 347.2 kB / 1.316 GB, free: 10.86 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002214/0.9905, allocations: 0.6846 MB / 1.316 GB, free: 10.14 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.015e-05/0.9906, allocations: 11.44 kB / 1.316 GB, free: 10.14 MB / 1.045 GB Notification: Performance of SimCode: time 2.5e-07/0.9906, allocations: 4 kB / 1.316 GB, free: 10.13 MB / 1.045 GB Notification: Performance of Templates: time 0.002243/0.9928, allocations: 0.8366 MB / 1.317 GB, free: 9.297 MB / 1.045 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 -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