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.001364/0.001364, allocations: 108.5 kB / 16.46 MB, free: 6.453 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.001792/0.001792, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.426/1.426, allocations: 230.6 MB / 252.8 MB, free: 8.953 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.036/3.036, allocations: 0.49 GB / 0.7916 GB, free: 33.28 MB / 0.6231 GB " [Timeout remaining time 177] 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: "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_12_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_12_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) [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.001963/0.001963, allocations: 70.92 kB / 1.149 GB, free: 26.3 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3218, allocations: 176.1 MB / 1.321 GB, free: 3.367 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002681/0.3244, allocations: 1.295 MB / 1.322 GB, free: 2.066 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.1743/0.4988, allocations: 150.3 MB / 1.469 GB, free: 11.2 MB / 1.17 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.238e-05/0.4988, allocations: 4 kB / 1.469 GB, free: 11.2 MB / 1.17 GB Notification: Performance of NFTyping.typeComponents: time 3.058e-05/0.4988, allocations: 0 / 1.469 GB, free: 11.2 MB / 1.17 GB Notification: Performance of NFTyping.typeBindings: time 6.596e-05/0.4989, allocations: 7.922 kB / 1.469 GB, free: 11.19 MB / 1.17 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006635/0.4996, allocations: 95.5 kB / 1.469 GB, free: 11.1 MB / 1.17 GB Notification: Performance of NFFlatten.flatten: time 0.000117/0.4997, allocations: 35.84 kB / 1.469 GB, free: 11.06 MB / 1.17 GB Notification: Performance of NFFlatten.resolveConnections: time 5e-05/0.4997, allocations: 0 / 1.469 GB, free: 11.06 MB / 1.17 GB Notification: Performance of NFEvalConstants.evaluate: time 5.505e-05/0.4998, allocations: 15.94 kB / 1.469 GB, free: 11.05 MB / 1.17 GB Notification: Performance of NFSimplifyModel.simplify: time 8.089e-05/0.4999, allocations: 19.97 kB / 1.469 GB, free: 11.03 MB / 1.17 GB Notification: Performance of NFPackage.collectConstants: time 1.403e-05/0.4999, allocations: 4 kB / 1.469 GB, free: 11.02 MB / 1.17 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003813/0.5003, allocations: 79.83 kB / 1.469 GB, free: 10.95 MB / 1.17 GB Notification: Performance of NFScalarize.scalarize: time 2.609e-05/0.5003, allocations: 7.922 kB / 1.469 GB, free: 10.94 MB / 1.17 GB Notification: Performance of NFVerifyModel.verify: time 4.136e-05/0.5003, allocations: 19.92 kB / 1.469 GB, free: 10.92 MB / 1.17 GB Notification: Performance of NFConvertDAE.convert: time 0.0002256/0.5006, allocations: 60.95 kB / 1.469 GB, free: 10.86 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.5006, allocations: 0 / 1.469 GB, free: 10.86 MB / 1.17 GB Notification: Performance of FrontEnd: time 2.354e-06/0.5006, allocations: 0 / 1.469 GB, free: 10.86 MB / 1.17 GB Notification: Performance of Transformations before backend: time 6.994e-06/0.5006, allocations: 3.938 kB / 1.469 GB, free: 10.86 MB / 1.17 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.0005977/0.5012, allocations: 359.3 kB / 1.469 GB, free: 10.46 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 6.463e-05/0.5012, allocations: 11.98 kB / 1.469 GB, free: 10.45 MB / 1.17 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.735e-05/0.5013, allocations: 34.75 kB / 1.47 GB, free: 10.4 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002518/0.5016, allocations: 16.92 kB / 1.47 GB, free: 10.39 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001673/0.5017, allocations: 172 kB / 1.47 GB, free: 10.18 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.5017, allocations: 3.984 kB / 1.47 GB, free: 10.18 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.082e-05/0.5018, allocations: 4 kB / 1.47 GB, free: 10.17 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001648/0.5019, allocations: 53.67 kB / 1.47 GB, free: 10.11 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.5019, allocations: 3.938 kB / 1.47 GB, free: 10.11 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.502, allocations: 4 kB / 1.47 GB, free: 10.11 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.502, allocations: 4 kB / 1.47 GB, free: 10.1 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.045e-05/0.502, allocations: 15.98 kB / 1.47 GB, free: 10.09 MB / 1.17 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002827/0.5023, allocations: 169.6 kB / 1.47 GB, free: 9.871 MB / 1.17 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001187/0.5024, allocations: 50.48 kB / 1.47 GB, free: 9.812 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.866e-05/0.5025, allocations: 20.84 kB / 1.47 GB, free: 9.789 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.5025, allocations: 0 / 1.47 GB, free: 9.789 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.888e-05/0.5025, allocations: 34.56 kB / 1.47 GB, free: 9.746 MB / 1.17 GB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.5025, allocations: 4 kB / 1.47 GB, free: 9.742 MB / 1.17 GB Notification: Performance of matching and sorting (n=11): time 0.0009167/0.5035, allocations: 370.4 kB / 1.47 GB, free: 9.328 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.745e-05/0.5035, allocations: 55.34 kB / 1.47 GB, free: 9.262 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.074e-05/0.5036, allocations: 97.84 kB / 1.471 GB, free: 9.156 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.5036, allocations: 29.83 kB / 1.471 GB, free: 9.121 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 3.906e-05/0.5037, allocations: 84.14 kB / 1.471 GB, free: 9.035 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 5.142e-05/0.5037, allocations: 39.69 kB / 1.471 GB, free: 8.996 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.592e-05/0.5038, allocations: 25.72 kB / 1.471 GB, free: 8.965 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.5039, allocations: 314.8 kB / 1.471 GB, free: 8.648 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.39e-05/0.504, allocations: 23.98 kB / 1.471 GB, free: 8.625 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.638e-05/0.504, allocations: 37.7 kB / 1.471 GB, free: 8.582 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001009/0.5041, allocations: 61.7 kB / 1.471 GB, free: 8.516 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.5041, allocations: 0 / 1.471 GB, free: 8.516 MB / 1.17 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001603/0.5043, allocations: 98.19 kB / 1.471 GB, free: 8.414 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.5043, allocations: 8 kB / 1.471 GB, free: 8.406 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.5043, allocations: 0 / 1.471 GB, free: 8.406 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.5043, allocations: 0 / 1.471 GB, free: 8.406 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.5044, allocations: 27.92 kB / 1.471 GB, free: 8.379 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.5045, allocations: 0 / 1.471 GB, free: 8.379 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.616e-05/0.5045, allocations: 4 kB / 1.471 GB, free: 8.375 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.5045, allocations: 8.016 kB / 1.471 GB, free: 8.367 MB / 1.17 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 0.0001086/0.5046, allocations: 117.8 kB / 1.471 GB, free: 8.242 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.82e-05/0.5046, allocations: 3.953 kB / 1.471 GB, free: 8.238 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.774e-05/0.5047, allocations: 15.97 kB / 1.471 GB, free: 8.223 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-06/0.5047, allocations: 0 / 1.471 GB, free: 8.223 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.5047, allocations: 0 / 1.471 GB, free: 8.223 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.5047, allocations: 3.984 kB / 1.471 GB, free: 8.219 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001728/0.5049, allocations: 173.6 kB / 1.472 GB, free: 8 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.5049, allocations: 0 / 1.472 GB, free: 8 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001294/0.505, allocations: 27.86 kB / 1.472 GB, free: 7.973 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.187e-06/0.505, allocations: 7.984 kB / 1.472 GB, free: 7.965 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.505, allocations: 4 kB / 1.472 GB, free: 7.961 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.505, allocations: 3.984 kB / 1.472 GB, free: 7.957 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.505, allocations: 3.938 kB / 1.472 GB, free: 7.953 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002328/0.5052, allocations: 133.1 kB / 1.472 GB, free: 7.805 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 9.234e-05/0.5053, allocations: 85.06 kB / 1.472 GB, free: 7.703 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.677e-05/0.5054, allocations: 4 kB / 1.472 GB, free: 7.699 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.588e-05/0.5054, allocations: 3.984 kB / 1.472 GB, free: 7.695 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.706e-05/0.5055, allocations: 8 kB / 1.472 GB, free: 7.688 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.12e-05/0.5055, allocations: 8 kB / 1.472 GB, free: 7.68 MB / 1.17 GB Notification: Performance of sorting global known variables: time 4.06e-05/0.5055, allocations: 79.22 kB / 1.472 GB, free: 7.602 MB / 1.17 GB Notification: Performance of sort global known variables: time 9.1e-08/0.5055, allocations: 3.938 kB / 1.472 GB, free: 7.598 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.0002026/0.5057, allocations: 16 kB / 1.472 GB, free: 7.582 MB / 1.17 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.0005279/0.5062, allocations: 0.675 MB / 1.473 GB, free: 6.875 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.0001554/0.5064, allocations: 51.91 kB / 1.473 GB, free: 6.824 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.5064, allocations: 0 / 1.473 GB, free: 6.824 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 4.287e-05/0.5064, allocations: 31.92 kB / 1.473 GB, free: 6.793 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002354/0.5067, allocations: 12.23 kB / 1.473 GB, free: 6.785 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001524/0.5082, allocations: 1.444 MB / 1.474 GB, free: 5.254 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003007/0.5085, allocations: 0.6885 MB / 1.475 GB, free: 4.539 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 5.439e-05/0.5086, allocations: 8.672 kB / 1.475 GB, free: 4.531 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.64e-05/0.5086, allocations: 15.44 kB / 1.475 GB, free: 4.516 MB / 1.17 GB Notification: Performance of SimCode: time 5.01e-07/0.5086, allocations: 4 kB / 1.475 GB, free: 4.512 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02716/0.5358, allocations: 1.701 MB / 1.476 GB, free: 2.949 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.536/8.071, allocations: 12.5 kB / 1.476 GB, free: 2.938 MB / 1.17 GB " [Timeout remaining time 292] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat --tempDir=temp_Buildings_12_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-08 Buildings_12_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) [Timeout 420.0] 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: 14.34621037193574]