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.001592/0.001592, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.002333/0.002333, allocations: 215 kB / 23.04 MB, free: 5.074 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.505/1.505, allocations: 230.6 MB / 256.8 MB, free: 7.977 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.255/3.255, allocations: 0.5003 GB / 0.8061 GB, free: 26.76 MB / 0.6231 GB " [Timeout remaining time 176] 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.002002/0.002002, allocations: 66.91 kB / 1.171 GB, free: 19.85 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3709/0.3729, allocations: 179 MB / 1.345 GB, free: 492 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.00302/0.3759, allocations: 1.29 MB / 1.347 GB, free: 15.18 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.188/0.5639, allocations: 150.3 MB / 1.493 GB, free: 8.277 MB / 1.186 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.792e-05/0.5639, allocations: 0 / 1.493 GB, free: 8.277 MB / 1.186 GB Notification: Performance of NFTyping.typeComponents: time 1.961e-05/0.564, allocations: 4 kB / 1.493 GB, free: 8.273 MB / 1.186 GB Notification: Performance of NFTyping.typeBindings: time 5.551e-05/0.564, allocations: 7.922 kB / 1.493 GB, free: 8.266 MB / 1.186 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005188/0.5645, allocations: 95.56 kB / 1.493 GB, free: 8.172 MB / 1.186 GB Notification: Performance of NFFlatten.flatten: time 9.909e-05/0.5646, allocations: 31.86 kB / 1.493 GB, free: 8.141 MB / 1.186 GB Notification: Performance of NFFlatten.resolveConnections: time 4.32e-05/0.5647, allocations: 3.984 kB / 1.494 GB, free: 8.137 MB / 1.186 GB Notification: Performance of NFEvalConstants.evaluate: time 5.023e-05/0.5647, allocations: 19.92 kB / 1.494 GB, free: 8.117 MB / 1.186 GB Notification: Performance of NFSimplifyModel.simplify: time 7.115e-05/0.5648, allocations: 8 kB / 1.494 GB, free: 8.109 MB / 1.186 GB Notification: Performance of NFPackage.collectConstants: time 1.113e-05/0.5648, allocations: 4 kB / 1.494 GB, free: 8.105 MB / 1.186 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003064/0.5651, allocations: 83.81 kB / 1.494 GB, free: 8.023 MB / 1.186 GB Notification: Performance of NFScalarize.scalarize: time 2.246e-05/0.5651, allocations: 11.92 kB / 1.494 GB, free: 8.012 MB / 1.186 GB Notification: Performance of NFVerifyModel.verify: time 4.08e-05/0.5652, allocations: 15.98 kB / 1.494 GB, free: 7.996 MB / 1.186 GB Notification: Performance of NFConvertDAE.convert: time 0.0002102/0.5654, allocations: 64.05 kB / 1.494 GB, free: 7.934 MB / 1.186 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.5654, allocations: 0 / 1.494 GB, free: 7.934 MB / 1.186 GB Notification: Performance of FrontEnd: time 1.563e-06/0.5654, allocations: 0 / 1.494 GB, free: 7.934 MB / 1.186 GB Notification: Performance of Transformations before backend: time 6.673e-06/0.5654, allocations: 0 / 1.494 GB, free: 7.934 MB / 1.186 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.0004688/0.5659, allocations: 283.5 kB / 1.494 GB, free: 7.629 MB / 1.186 GB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.5659, allocations: 8.031 kB / 1.494 GB, free: 7.621 MB / 1.186 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.147e-05/0.5659, allocations: 4.188 kB / 1.494 GB, free: 7.617 MB / 1.186 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.169e-05/0.566, allocations: 34.75 kB / 1.494 GB, free: 7.574 MB / 1.186 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002227/0.5662, allocations: 20.86 kB / 1.494 GB, free: 7.555 MB / 1.186 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001105/0.5663, allocations: 110 kB / 1.494 GB, free: 7.422 MB / 1.186 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.997e-05/0.5663, allocations: 12 kB / 1.494 GB, free: 7.41 MB / 1.186 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.042e-05/0.5664, allocations: 7.953 kB / 1.494 GB, free: 7.402 MB / 1.186 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001512/0.5665, allocations: 53.67 kB / 1.494 GB, free: 7.344 MB / 1.186 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.5665, allocations: 0 / 1.494 GB, free: 7.344 MB / 1.186 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.298e-05/0.5665, allocations: 0 / 1.494 GB, free: 7.344 MB / 1.186 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.5666, allocations: 0 / 1.494 GB, free: 7.344 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.643e-05/0.5666, allocations: 11.98 kB / 1.494 GB, free: 7.332 MB / 1.186 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000209/0.5668, allocations: 140.7 kB / 1.494 GB, free: 7.152 MB / 1.186 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001134/0.5669, allocations: 54.56 kB / 1.494 GB, free: 7.09 MB / 1.186 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.872e-05/0.567, allocations: 20.84 kB / 1.494 GB, free: 7.066 MB / 1.186 GB Notification: Performance of preOpt evalFunc (simulation): time 1.315e-05/0.567, allocations: 0 / 1.494 GB, free: 7.066 MB / 1.186 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.454e-05/0.567, allocations: 30.56 kB / 1.494 GB, free: 7.027 MB / 1.186 GB Notification: Performance of pre-optimization done (n=7): time 9.31e-07/0.567, allocations: 0 / 1.494 GB, free: 7.027 MB / 1.186 GB Notification: Performance of matching and sorting (n=11): time 0.0008608/0.5679, allocations: 304.9 kB / 1.495 GB, free: 6.695 MB / 1.186 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.5679, allocations: 59.34 kB / 1.495 GB, free: 6.625 MB / 1.186 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.698e-05/0.568, allocations: 97.84 kB / 1.495 GB, free: 6.52 MB / 1.186 GB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.568, allocations: 25.7 kB / 1.495 GB, free: 6.488 MB / 1.186 GB Notification: Performance of collectInitialEqns (initialization): time 4.163e-05/0.5681, allocations: 80.14 kB / 1.495 GB, free: 6.406 MB / 1.186 GB Notification: Performance of collectInitialBindings (initialization): time 6.113e-05/0.5682, allocations: 51.78 kB / 1.495 GB, free: 6.355 MB / 1.186 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.605e-05/0.5682, allocations: 25.84 kB / 1.495 GB, free: 6.324 MB / 1.186 GB Notification: Performance of setup shared object (initialization): time 0.0001511/0.5684, allocations: 322.8 kB / 1.495 GB, free: 6 MB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.443e-05/0.5684, allocations: 20 kB / 1.495 GB, free: 5.98 MB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.764e-05/0.5685, allocations: 37.2 kB / 1.495 GB, free: 5.941 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.872e-05/0.5686, allocations: 57.7 kB / 1.495 GB, free: 5.879 MB / 1.186 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.92e-07/0.5686, allocations: 0 / 1.495 GB, free: 5.879 MB / 1.186 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001658/0.5687, allocations: 97.61 kB / 1.496 GB, free: 5.777 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.5687, allocations: 10.03 kB / 1.496 GB, free: 5.77 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.5688, allocations: 4 kB / 1.496 GB, free: 5.766 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.5688, allocations: 0 / 1.496 GB, free: 5.766 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.5689, allocations: 23.92 kB / 1.496 GB, free: 5.742 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.5689, allocations: 4 kB / 1.496 GB, free: 5.738 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.448e-05/0.5689, allocations: 3.938 kB / 1.496 GB, free: 5.734 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.504e-05/0.569, allocations: 8.703 kB / 1.496 GB, free: 5.727 MB / 1.186 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.486e-05/0.569, allocations: 110.5 kB / 1.496 GB, free: 5.609 MB / 1.186 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.814e-05/0.5691, allocations: 7.953 kB / 1.496 GB, free: 5.602 MB / 1.186 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.411e-05/0.5691, allocations: 11.91 kB / 1.496 GB, free: 5.586 MB / 1.186 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.5691, allocations: 4 kB / 1.496 GB, free: 5.582 MB / 1.186 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.5691, allocations: 0 / 1.496 GB, free: 5.582 MB / 1.186 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.5691, allocations: 7.922 kB / 1.496 GB, free: 5.574 MB / 1.186 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001356/0.5693, allocations: 136.8 kB / 1.496 GB, free: 5.398 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.5693, allocations: 0 / 1.496 GB, free: 5.398 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001285/0.5694, allocations: 27.92 kB / 1.496 GB, free: 5.371 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.5694, allocations: 3.938 kB / 1.496 GB, free: 5.367 MB / 1.186 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.5694, allocations: 4 kB / 1.496 GB, free: 5.363 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.5694, allocations: 0 / 1.496 GB, free: 5.363 MB / 1.186 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.5694, allocations: 4 kB / 1.496 GB, free: 5.359 MB / 1.186 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002386/0.5696, allocations: 145.1 kB / 1.496 GB, free: 5.199 MB / 1.186 GB Notification: Performance of postOpt removeConstants (simulation): time 4.414e-05/0.5697, allocations: 4 kB / 1.496 GB, free: 5.195 MB / 1.186 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.455e-05/0.5697, allocations: 0 / 1.496 GB, free: 5.195 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.674e-05/0.5698, allocations: 7.984 kB / 1.496 GB, free: 5.188 MB / 1.186 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.503e-05/0.5698, allocations: 4 kB / 1.496 GB, free: 5.184 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.225e-05/0.5698, allocations: 11.92 kB / 1.496 GB, free: 5.172 MB / 1.186 GB Notification: Performance of sorting global known variables: time 3.886e-05/0.5699, allocations: 79.28 kB / 1.496 GB, free: 5.094 MB / 1.186 GB Notification: Performance of sort global known variables: time 8e-08/0.5699, allocations: 0 / 1.496 GB, free: 5.094 MB / 1.186 GB Notification: Performance of remove unused functions: time 0.0001991/0.5701, allocations: 23.88 kB / 1.496 GB, free: 5.07 MB / 1.186 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.0004899/0.5705, allocations: 0.6632 MB / 1.497 GB, free: 4.375 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.0001449/0.5707, allocations: 59.88 kB / 1.497 GB, free: 4.316 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 9.358e-06/0.5707, allocations: 8.094 kB / 1.497 GB, free: 4.309 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 3.896e-05/0.5707, allocations: 23.94 kB / 1.497 GB, free: 4.285 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002555/0.571, allocations: 16.23 kB / 1.497 GB, free: 4.27 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001631/0.5726, allocations: 1.441 MB / 1.498 GB, free: 2.738 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003154/0.5729, allocations: 0.6807 MB / 1.499 GB, free: 2.031 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 5.806e-05/0.573, allocations: 8.672 kB / 1.499 GB, free: 2.023 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.182e-05/0.5731, allocations: 23.42 kB / 1.499 GB, free: 2 MB / 1.186 GB Notification: Performance of SimCode: time 3.8e-07/0.5731, allocations: 0 / 1.499 GB, free: 2 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02501/0.5981, allocations: 1.873 MB / 1.501 GB, free: 284 kB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.98, allocations: 7.562 kB / 1.501 GB, free: 280 kB / 1.186 GB " [Timeout remaining time 288] (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: 18.982211948023178]