Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001842/0.001842, allocations: 96.42 kB / 19.7 MB, free: 2.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001897/0.001897, allocations: 214.9 kB / 22.99 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.554/1.554, allocations: 230.6 MB / 256.8 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.297/3.297, allocations: 0.49 GB / 0.7959 GB, free: 35.48 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.hAirSym.|der.hAirCod.",fileNamePrefix="Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.hAirSym.|der.hAirCod.",fileNamePrefix="Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00212/0.00212, allocations: 70.67 kB / 1.155 GB, free: 25.18 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.394/0.3961, allocations: 176.1 MB / 1.327 GB, free: 1.02 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002642/0.3987, allocations: 1.277 MB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.1813/0.58, allocations: 129.1 MB / 1.454 GB, free: 14.18 MB / 1.154 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.177e-05/0.58, allocations: 0 / 1.454 GB, free: 14.18 MB / 1.154 GB Notification: Performance of NFTyping.typeComponents: time 1.829e-05/0.5801, allocations: 0 / 1.454 GB, free: 14.18 MB / 1.154 GB Notification: Performance of NFTyping.typeBindings: time 6.276e-05/0.5801, allocations: 3.938 kB / 1.454 GB, free: 14.17 MB / 1.154 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004625/0.5806, allocations: 91.56 kB / 1.454 GB, free: 14.08 MB / 1.154 GB Notification: Performance of NFFlatten.flatten: time 9.437e-05/0.5807, allocations: 39.84 kB / 1.454 GB, free: 14.04 MB / 1.154 GB Notification: Performance of NFFlatten.resolveConnections: time 4.964e-05/0.5807, allocations: 0 / 1.454 GB, free: 14.04 MB / 1.154 GB Notification: Performance of NFEvalConstants.evaluate: time 4.747e-05/0.5808, allocations: 11.98 kB / 1.454 GB, free: 14.03 MB / 1.154 GB Notification: Performance of NFSimplifyModel.simplify: time 6.543e-05/0.5808, allocations: 23.92 kB / 1.455 GB, free: 14.01 MB / 1.154 GB Notification: Performance of NFPackage.collectConstants: time 1.24e-05/0.5809, allocations: 0 / 1.455 GB, free: 14.01 MB / 1.154 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002567/0.5811, allocations: 87.75 kB / 1.455 GB, free: 13.92 MB / 1.154 GB Notification: Performance of NFScalarize.scalarize: time 1.538e-05/0.5811, allocations: 4 kB / 1.455 GB, free: 13.92 MB / 1.154 GB Notification: Performance of NFVerifyModel.verify: time 2.301e-05/0.5812, allocations: 11.94 kB / 1.455 GB, free: 13.91 MB / 1.154 GB Notification: Performance of NFConvertDAE.convert: time 0.000176/0.5813, allocations: 71.73 kB / 1.455 GB, free: 13.84 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.5813, allocations: 0 / 1.455 GB, free: 13.84 MB / 1.154 GB Notification: Performance of FrontEnd: time 1.823e-06/0.5813, allocations: 4 kB / 1.455 GB, free: 13.83 MB / 1.154 GB Notification: Performance of Transformations before backend: time 6.442e-06/0.5813, allocations: 0 / 1.455 GB, free: 13.83 MB / 1.154 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.0004535/0.5818, allocations: 274.2 kB / 1.455 GB, free: 13.54 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.5818, allocations: 12.03 kB / 1.455 GB, free: 13.52 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001967/0.582, allocations: 12.92 kB / 1.455 GB, free: 13.51 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001037/0.5821, allocations: 106.5 kB / 1.455 GB, free: 13.38 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.574e-05/0.5822, allocations: 11.94 kB / 1.455 GB, free: 13.37 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.187e-05/0.5822, allocations: 4 kB / 1.455 GB, free: 13.37 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000189/0.5824, allocations: 130.7 kB / 1.455 GB, free: 13.21 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.5824, allocations: 0 / 1.455 GB, free: 13.21 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.5824, allocations: 4 kB / 1.455 GB, free: 13.21 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/0.5824, allocations: 0 / 1.455 GB, free: 13.21 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.992e-05/0.5825, allocations: 19.98 kB / 1.455 GB, free: 13.19 MB / 1.154 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000168/0.5826, allocations: 113.3 kB / 1.455 GB, free: 13.05 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001166/0.5827, allocations: 54.5 kB / 1.455 GB, free: 12.99 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.356e-05/0.5828, allocations: 16.84 kB / 1.455 GB, free: 12.97 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 1.374e-05/0.5828, allocations: 0 / 1.455 GB, free: 12.97 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.154e-05/0.5828, allocations: 38.5 kB / 1.455 GB, free: 12.92 MB / 1.154 GB Notification: Performance of pre-optimization done (n=7): time 9.52e-07/0.5828, allocations: 0 / 1.455 GB, free: 12.92 MB / 1.154 GB Notification: Performance of matching and sorting (n=11): time 0.0008005/0.5836, allocations: 301.6 kB / 1.456 GB, free: 12.59 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/0.5837, allocations: 55.41 kB / 1.456 GB, free: 12.53 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.5838, allocations: 93.86 kB / 1.456 GB, free: 12.43 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.5838, allocations: 29.7 kB / 1.456 GB, free: 12.39 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 4.219e-05/0.5838, allocations: 80.14 kB / 1.456 GB, free: 12.31 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 4.446e-05/0.5839, allocations: 39.69 kB / 1.456 GB, free: 12.27 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.899e-05/0.5839, allocations: 25.72 kB / 1.456 GB, free: 12.24 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.0001471/0.5841, allocations: 322.8 kB / 1.456 GB, free: 11.91 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.001e-05/0.5841, allocations: 19.98 kB / 1.456 GB, free: 11.89 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.634e-05/0.5842, allocations: 41.7 kB / 1.456 GB, free: 11.85 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.409e-05/0.5843, allocations: 61.7 kB / 1.456 GB, free: 11.78 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/0.5843, allocations: 0 / 1.456 GB, free: 11.78 MB / 1.154 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001465/0.5844, allocations: 101.7 kB / 1.457 GB, free: 11.68 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.5844, allocations: 8 kB / 1.457 GB, free: 11.67 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.5844, allocations: 0 / 1.457 GB, free: 11.67 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.5845, allocations: 3.984 kB / 1.457 GB, free: 11.66 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.5846, allocations: 20 kB / 1.457 GB, free: 11.64 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.5846, allocations: 0 / 1.457 GB, free: 11.64 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.966e-05/0.5846, allocations: 0 / 1.457 GB, free: 11.64 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.017e-05/0.5846, allocations: 11.94 kB / 1.457 GB, free: 11.63 MB / 1.154 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.707e-05/0.5847, allocations: 122.2 kB / 1.457 GB, free: 11.5 MB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.075e-05/0.5847, allocations: 7.984 kB / 1.457 GB, free: 11.5 MB / 1.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.672e-05/0.5848, allocations: 11.91 kB / 1.457 GB, free: 11.48 MB / 1.154 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.5848, allocations: 0 / 1.457 GB, free: 11.48 MB / 1.154 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.5848, allocations: 0 / 1.457 GB, free: 11.48 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.5848, allocations: 0 / 1.457 GB, free: 11.48 MB / 1.154 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001257/0.5849, allocations: 121.2 kB / 1.457 GB, free: 11.33 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.5849, allocations: 0 / 1.457 GB, free: 11.33 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001209/0.585, allocations: 19.98 kB / 1.457 GB, free: 11.31 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.585, allocations: 0 / 1.457 GB, free: 11.31 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.585, allocations: 4 kB / 1.457 GB, free: 11.31 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.585, allocations: 0 / 1.457 GB, free: 11.31 MB / 1.154 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.585, allocations: 0 / 1.457 GB, free: 11.31 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000248/0.5853, allocations: 148.9 kB / 1.457 GB, free: 11.14 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 4.921e-05/0.5853, allocations: 7.953 kB / 1.457 GB, free: 11.14 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.676e-05/0.5854, allocations: 4 kB / 1.457 GB, free: 11.13 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.93e-05/0.5855, allocations: 8.031 kB / 1.457 GB, free: 11.12 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.462e-05/0.5855, allocations: 3.984 kB / 1.457 GB, free: 11.12 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.215e-05/0.5855, allocations: 12 kB / 1.457 GB, free: 11.11 MB / 1.154 GB Notification: Performance of sorting global known variables: time 3.598e-05/0.5855, allocations: 75.28 kB / 1.457 GB, free: 11.04 MB / 1.154 GB Notification: Performance of sort global known variables: time 6.1e-08/0.5855, allocations: 0 / 1.457 GB, free: 11.04 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.0001982/0.5857, allocations: 20 kB / 1.457 GB, free: 11.02 MB / 1.154 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.0001083/0.5858, allocations: 103.3 kB / 1.457 GB, free: 10.9 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.0001421/0.586, allocations: 51.92 kB / 1.457 GB, free: 10.85 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.586, allocations: 0 / 1.457 GB, free: 10.85 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 4.052e-05/0.586, allocations: 28.14 kB / 1.457 GB, free: 10.82 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000236/0.5863, allocations: 12.16 kB / 1.457 GB, free: 10.81 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006059/0.5869, allocations: 329.1 kB / 1.458 GB, free: 10.46 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.563e-05/0.5869, allocations: 71.33 kB / 1.458 GB, free: 10.38 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 5.462e-05/0.587, allocations: 12.61 kB / 1.458 GB, free: 10.36 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.182e-05/0.587, allocations: 11.44 kB / 1.458 GB, free: 10.35 MB / 1.154 GB Notification: Performance of SimCode: time 3.01e-07/0.587, allocations: 0 / 1.458 GB, free: 10.35 MB / 1.154 GB Notification: Performance of Templates: time 0.003368/0.5904, allocations: 0.6693 MB / 1.458 GB, free: 9.695 MB / 1.154 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.537443288005306]