Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001243/0.001243, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001345/0.001345, allocations: 215.9 kB / 23.03 MB, free: 4.949 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.406/1.406, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.078/3.078, allocations: 0.5003 GB / 0.8062 GB, free: 28.25 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="cs",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.001931/0.001931, allocations: 64.88 kB / 1.17 GB, free: 19.61 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.3098, allocations: 179 MB / 1.345 GB, free: 15.96 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.00251/0.3123, allocations: 1.285 MB / 1.347 GB, free: 14.67 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.1541/0.4663, allocations: 129 MB / 1.472 GB, free: 13.21 MB / 1.17 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.36e-05/0.4664, allocations: 4 kB / 1.472 GB, free: 13.2 MB / 1.17 GB Notification: Performance of NFTyping.typeComponents: time 2.192e-05/0.4664, allocations: 7.922 kB / 1.472 GB, free: 13.2 MB / 1.17 GB Notification: Performance of NFTyping.typeBindings: time 5.652e-05/0.4664, allocations: 7.922 kB / 1.472 GB, free: 13.19 MB / 1.17 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004458/0.4669, allocations: 87.58 kB / 1.473 GB, free: 13.1 MB / 1.17 GB Notification: Performance of NFFlatten.flatten: time 8.491e-05/0.467, allocations: 39.84 kB / 1.473 GB, free: 13.06 MB / 1.17 GB Notification: Performance of NFFlatten.resolveConnections: time 4.121e-05/0.467, allocations: 3.984 kB / 1.473 GB, free: 13.06 MB / 1.17 GB Notification: Performance of NFEvalConstants.evaluate: time 4.308e-05/0.4671, allocations: 12 kB / 1.473 GB, free: 13.05 MB / 1.17 GB Notification: Performance of NFSimplifyModel.simplify: time 6.349e-05/0.4671, allocations: 23.91 kB / 1.473 GB, free: 13.02 MB / 1.17 GB Notification: Performance of NFPackage.collectConstants: time 1.229e-05/0.4671, allocations: 0 / 1.473 GB, free: 13.02 MB / 1.17 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002661/0.4674, allocations: 75.84 kB / 1.473 GB, free: 12.95 MB / 1.17 GB Notification: Performance of NFScalarize.scalarize: time 1.928e-05/0.4674, allocations: 15.91 kB / 1.473 GB, free: 12.93 MB / 1.17 GB Notification: Performance of NFVerifyModel.verify: time 2.772e-05/0.4674, allocations: 11.94 kB / 1.473 GB, free: 12.92 MB / 1.17 GB Notification: Performance of NFConvertDAE.convert: time 0.0001684/0.4676, allocations: 64.05 kB / 1.473 GB, free: 12.86 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.4676, allocations: 3.984 kB / 1.473 GB, free: 12.86 MB / 1.17 GB Notification: Performance of FrontEnd: time 1.262e-06/0.4676, allocations: 0 / 1.473 GB, free: 12.86 MB / 1.17 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.4676, allocations: 0 / 1.473 GB, free: 12.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.0004012/0.468, allocations: 274.3 kB / 1.473 GB, free: 12.56 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.4681, allocations: 12.03 kB / 1.473 GB, free: 12.55 MB / 1.17 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.233e-05/0.4681, allocations: 192 / 1.473 GB, free: 12.55 MB / 1.17 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.252e-05/0.4681, allocations: 34.75 kB / 1.473 GB, free: 12.5 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001938/0.4683, allocations: 12.92 kB / 1.473 GB, free: 12.49 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001076/0.4684, allocations: 114 kB / 1.473 GB, free: 12.36 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.4684, allocations: 0 / 1.473 GB, free: 12.36 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.246e-05/0.4685, allocations: 15.95 kB / 1.473 GB, free: 12.34 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001785/0.4686, allocations: 126.8 kB / 1.473 GB, free: 12.19 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.4686, allocations: 7.938 kB / 1.473 GB, free: 12.18 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.4687, allocations: 0 / 1.473 GB, free: 12.18 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.4687, allocations: 0 / 1.473 GB, free: 12.18 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.289e-05/0.4687, allocations: 23.97 kB / 1.473 GB, free: 12.16 MB / 1.17 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001794/0.4689, allocations: 140.7 kB / 1.474 GB, free: 11.98 MB / 1.17 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001027/0.469, allocations: 50.55 kB / 1.474 GB, free: 11.92 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.791e-05/0.469, allocations: 8.859 kB / 1.474 GB, free: 11.91 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 1.12e-05/0.469, allocations: 3.938 kB / 1.474 GB, free: 11.91 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.411e-05/0.4691, allocations: 46.48 kB / 1.474 GB, free: 11.85 MB / 1.17 GB Notification: Performance of pre-optimization done (n=7): time 9.52e-07/0.4691, allocations: 0 / 1.474 GB, free: 11.85 MB / 1.17 GB Notification: Performance of matching and sorting (n=11): time 0.0007322/0.4698, allocations: 301.2 kB / 1.474 GB, free: 11.52 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.4699, allocations: 55.41 kB / 1.474 GB, free: 11.46 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.871e-05/0.4699, allocations: 89.86 kB / 1.474 GB, free: 11.36 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 2.219e-05/0.47, allocations: 29.7 kB / 1.474 GB, free: 11.32 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 3.816e-05/0.47, allocations: 80.14 kB / 1.474 GB, free: 11.24 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 4.717e-05/0.47, allocations: 43.64 kB / 1.474 GB, free: 11.2 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.897e-05/0.4701, allocations: 29.7 kB / 1.474 GB, free: 11.16 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.4702, allocations: 318.8 kB / 1.475 GB, free: 10.84 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.299e-05/0.4703, allocations: 19.98 kB / 1.475 GB, free: 10.82 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.35e-05/0.4703, allocations: 41.83 kB / 1.475 GB, free: 10.78 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.655e-05/0.4704, allocations: 53.66 kB / 1.475 GB, free: 10.72 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.4704, allocations: 0 / 1.475 GB, free: 10.72 MB / 1.17 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001428/0.4705, allocations: 98.14 kB / 1.475 GB, free: 10.62 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.4706, allocations: 8 kB / 1.475 GB, free: 10.61 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.4706, allocations: 0 / 1.475 GB, free: 10.61 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.4706, allocations: 0 / 1.475 GB, free: 10.61 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.4707, allocations: 24 kB / 1.475 GB, free: 10.59 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.83e-06/0.4707, allocations: 160 / 1.475 GB, free: 10.59 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.477e-05/0.4707, allocations: 7.922 kB / 1.475 GB, free: 10.58 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/0.4708, allocations: 11.92 kB / 1.475 GB, free: 10.57 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 8.54e-05/0.4708, allocations: 121.8 kB / 1.475 GB, free: 10.44 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.07e-05/0.4709, allocations: 7.953 kB / 1.475 GB, free: 10.43 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.89e-05/0.4709, allocations: 11.91 kB / 1.475 GB, free: 10.41 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.4709, allocations: 0 / 1.475 GB, free: 10.41 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.4709, allocations: 0 / 1.475 GB, free: 10.41 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.4709, allocations: 3.938 kB / 1.475 GB, free: 10.41 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001459/0.4711, allocations: 140.7 kB / 1.475 GB, free: 10.23 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.4711, allocations: 0 / 1.475 GB, free: 10.23 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001308/0.4712, allocations: 23.98 kB / 1.475 GB, free: 10.2 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.4712, allocations: 0 / 1.475 GB, free: 10.2 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.4712, allocations: 8 kB / 1.475 GB, free: 10.2 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.4712, allocations: 0 / 1.475 GB, free: 10.2 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4712, allocations: 0 / 1.475 GB, free: 10.2 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002302/0.4714, allocations: 140.9 kB / 1.475 GB, free: 10.04 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 4.928e-05/0.4715, allocations: 12.03 kB / 1.475 GB, free: 10.03 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.674e-05/0.4715, allocations: 0 / 1.475 GB, free: 10.03 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.326e-05/0.4716, allocations: 4 kB / 1.475 GB, free: 10.02 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.13e-05/0.4716, allocations: 11.98 kB / 1.475 GB, free: 10.01 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.866e-06/0.4716, allocations: 3.938 kB / 1.475 GB, free: 10.01 MB / 1.17 GB Notification: Performance of sorting global known variables: time 3.874e-05/0.4717, allocations: 83.22 kB / 1.475 GB, free: 9.926 MB / 1.17 GB Notification: Performance of sort global known variables: time 9e-08/0.4717, allocations: 4.094 kB / 1.475 GB, free: 9.922 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.0002044/0.4719, allocations: 16 kB / 1.475 GB, free: 9.906 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.0004843/0.4723, allocations: 0.6658 MB / 1.476 GB, free: 9.211 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.0001357/0.4725, allocations: 51.97 kB / 1.476 GB, free: 9.16 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4725, allocations: 4 kB / 1.476 GB, free: 9.156 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 4.13e-05/0.4725, allocations: 27.92 kB / 1.476 GB, free: 9.129 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000229/0.4728, allocations: 13.73 kB / 1.476 GB, free: 9.117 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001532/0.4743, allocations: 1.448 MB / 1.478 GB, free: 7.578 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.585e-05/0.4744, allocations: 71.33 kB / 1.478 GB, free: 7.488 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 5.234e-05/0.4744, allocations: 8.672 kB / 1.478 GB, free: 7.48 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.636e-05/0.4745, allocations: 23.44 kB / 1.478 GB, free: 7.457 MB / 1.17 GB Notification: Performance of SimCode: time 3.81e-07/0.4745, allocations: 0 / 1.478 GB, free: 7.457 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02358/0.498, allocations: 1.893 MB / 1.479 GB, free: 5.719 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11.34, allocations: 6.125 kB / 1.479 GB, free: 5.715 MB / 1.17 GB " [Timeout remaining time 289] (rm -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-08 Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 17.736757850972936]