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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.005817/0.005817, allocations: 100.8 kB / 15.87 MB, free: 6.328 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.001477/0.001477, allocations: 195.5 kB / 16.79 MB, free: 6.254 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.366/1.366, allocations: 222.9 MB / 240.5 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.357/2.357, allocations: 390.2 MB / 0.6649 GB, free: 0.6562 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 75.83 kB / 0.8125 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6435/0.6449, allocations: 140.3 MB / 0.9496 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002205/0.6471, allocations: 1.343 MB / 0.9509 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1486/0.7958, allocations: 144.7 MB / 1.092 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.464e-05/0.7959, allocations: 0 / 1.092 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.796e-05/0.7959, allocations: 7.922 kB / 1.092 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.325e-05/0.796, allocations: 3.938 kB / 1.092 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000348/0.7964, allocations: 79.64 kB / 1.092 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.612e-05/0.7964, allocations: 39.8 kB / 1.092 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.604e-05/0.7965, allocations: 3.984 kB / 1.092 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.662e-05/0.7965, allocations: 11.98 kB / 1.092 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.639e-05/0.7966, allocations: 19.92 kB / 1.092 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.168e-05/0.7966, allocations: 0 / 1.092 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002459/0.7968, allocations: 75.81 kB / 1.092 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.58e-05/0.7969, allocations: 8 kB / 1.092 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.26e-05/0.7969, allocations: 19.92 kB / 1.092 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001127/0.797, allocations: 41.92 kB / 1.092 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.797, allocations: 0 / 1.092 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of FrontEnd: time 8.31e-07/0.797, allocations: 4 kB / 1.092 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.158e-06/0.797, allocations: 0 / 1.092 GB, free: 15.27 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.0003779/0.7974, allocations: 363.4 kB / 1.093 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.7975, allocations: 8.031 kB / 1.093 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001863/0.7977, allocations: 12.92 kB / 1.093 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.7e-05/0.7978, allocations: 164.3 kB / 1.093 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.579e-05/0.7978, allocations: 11.94 kB / 1.093 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.486e-05/0.7978, allocations: 4 kB / 1.093 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001198/0.7979, allocations: 53.67 kB / 1.093 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.798, allocations: 0 / 1.093 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.798, allocations: 4 kB / 1.093 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.798, allocations: 0 / 1.093 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.591e-05/0.798, allocations: 15.98 kB / 1.093 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001622/0.7982, allocations: 169.5 kB / 1.093 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.393e-05/0.7983, allocations: 50.5 kB / 1.093 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.066e-05/0.7983, allocations: 28.83 kB / 1.093 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.163e-05/0.7984, allocations: 0 / 1.093 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.854e-05/0.7984, allocations: 34.56 kB / 1.093 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 9.92e-07/0.7984, allocations: 0 / 1.093 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0006823/0.7991, allocations: 378.5 kB / 1.094 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/0.7991, allocations: 51.41 kB / 1.094 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.408e-05/0.7992, allocations: 97.84 kB / 1.094 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.572e-05/0.7992, allocations: 29.7 kB / 1.094 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.737e-05/0.7992, allocations: 84.14 kB / 1.094 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.512e-05/0.7993, allocations: 35.38 kB / 1.094 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.14e-05/0.7993, allocations: 29.7 kB / 1.094 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.017e-05/0.7994, allocations: 318.8 kB / 1.094 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.296e-05/0.7995, allocations: 19.98 kB / 1.094 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.205e-05/0.7995, allocations: 44.83 kB / 1.094 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.955e-05/0.7996, allocations: 57.69 kB / 1.094 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.7996, allocations: 3.938 kB / 1.094 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001251/0.7997, allocations: 89.62 kB / 1.095 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.7998, allocations: 8 kB / 1.095 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.7998, allocations: 0 / 1.095 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.7998, allocations: 0 / 1.095 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.7999, allocations: 27.92 kB / 1.095 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.7999, allocations: 4 kB / 1.095 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.147e-05/0.8, allocations: 8 kB / 1.095 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.8, allocations: 4 kB / 1.095 GB, free: 12.82 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 7.243e-05/0.8, allocations: 117.8 kB / 1.095 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.623e-05/0.8001, allocations: 7.906 kB / 1.095 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.322e-05/0.8001, allocations: 11.97 kB / 1.095 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.8001, allocations: 0 / 1.095 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.8001, allocations: 0 / 1.095 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.8001, allocations: 0 / 1.095 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000134/0.8003, allocations: 177.6 kB / 1.095 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.8003, allocations: 4 kB / 1.095 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001209/0.8004, allocations: 23.92 kB / 1.095 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.8004, allocations: 4 kB / 1.095 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.948e-06/0.8004, allocations: 0 / 1.095 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.8004, allocations: 3.938 kB / 1.095 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.8004, allocations: 0 / 1.095 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001888/0.8006, allocations: 129 kB / 1.095 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.871e-05/0.8007, allocations: 89.05 kB / 1.095 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.537e-05/0.8007, allocations: 4 kB / 1.095 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.878e-05/0.8008, allocations: 11.98 kB / 1.095 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.82e-05/0.8008, allocations: 0 / 1.095 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/0.8009, allocations: 8 kB / 1.095 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.102e-05/0.8009, allocations: 75.28 kB / 1.095 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8009, allocations: 0 / 1.095 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002005/0.8011, allocations: 19.94 kB / 1.095 GB, free: 12.05 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 0.0001126/0.8012, allocations: 107.2 kB / 1.095 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001495/0.8014, allocations: 64.42 kB / 1.095 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.8014, allocations: 0 / 1.095 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.417e-05/0.8014, allocations: 27.98 kB / 1.095 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002724/0.8017, allocations: 8 kB / 1.095 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006669/0.8024, allocations: 372.3 kB / 1.096 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002701/0.8027, allocations: 0.6848 MB / 1.096 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.438e-05/0.8027, allocations: 11.44 kB / 1.096 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of SimCode: time 3.61e-07/0.8027, allocations: 0 / 1.096 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of Templates: time 0.002216/0.805, allocations: 0.8203 MB / 1.097 GB, free: 9.898 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/jenkins1/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