Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001507/0.001507, allocations: 101.3 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.001943/0.001943, allocations: 220.4 kB / 23.03 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.549/1.549, 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 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.766/2.766, allocations: 476.8 MB / 0.7715 GB, free: 3.926 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_11_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.001987/0.001987, allocations: 63.05 kB / 1.118 GB, free: 39.67 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3521/0.3541, allocations: 170 MB / 1.284 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002805/0.3569, allocations: 1.292 MB / 1.285 GB, free: 9.449 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.1796/0.5365, allocations: 129 MB / 1.411 GB, free: 7.996 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.546e-05/0.5365, allocations: 0 / 1.411 GB, free: 7.996 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 2.149e-05/0.5365, allocations: 7.938 kB / 1.411 GB, free: 7.988 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 5.298e-05/0.5366, allocations: 0 / 1.411 GB, free: 7.988 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004556/0.537, allocations: 99.56 kB / 1.411 GB, free: 7.891 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 8.958e-05/0.5371, allocations: 39.84 kB / 1.411 GB, free: 7.852 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 3.893e-05/0.5372, allocations: 0 / 1.411 GB, free: 7.852 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 4.704e-05/0.5372, allocations: 11.98 kB / 1.411 GB, free: 7.84 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 6.517e-05/0.5373, allocations: 15.92 kB / 1.411 GB, free: 7.824 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 1.737e-05/0.5373, allocations: 7.938 kB / 1.411 GB, free: 7.816 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000267/0.5376, allocations: 83.81 kB / 1.412 GB, free: 7.734 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 1.865e-05/0.5376, allocations: 4 kB / 1.412 GB, free: 7.73 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 3.049e-05/0.5376, allocations: 11.94 kB / 1.412 GB, free: 7.719 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.0001826/0.5378, allocations: 72.72 kB / 1.412 GB, free: 7.652 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.5378, allocations: 4 kB / 1.412 GB, free: 7.648 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.603e-06/0.5378, allocations: 0 / 1.412 GB, free: 7.648 MB / 1.107 GB Notification: Performance of Transformations before backend: time 9.458e-06/0.5378, allocations: 0 / 1.412 GB, free: 7.648 MB / 1.107 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.0004334/0.5382, allocations: 274.2 kB / 1.412 GB, free: 7.352 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.5383, allocations: 8.031 kB / 1.412 GB, free: 7.344 MB / 1.107 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.209e-05/0.5383, allocations: 4.188 kB / 1.412 GB, free: 7.34 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.598e-05/0.5383, allocations: 42.67 kB / 1.412 GB, free: 7.289 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001909/0.5385, allocations: 8.938 kB / 1.412 GB, free: 7.281 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001181/0.5386, allocations: 114 kB / 1.412 GB, free: 7.145 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.473e-05/0.5386, allocations: 7.922 kB / 1.412 GB, free: 7.137 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.299e-05/0.5387, allocations: 12 kB / 1.412 GB, free: 7.125 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001902/0.5389, allocations: 122.8 kB / 1.412 GB, free: 6.98 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.5389, allocations: 0 / 1.412 GB, free: 6.98 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.5389, allocations: 0 / 1.412 GB, free: 6.98 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.5389, allocations: 0 / 1.412 GB, free: 6.98 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.46e-05/0.539, allocations: 23.97 kB / 1.412 GB, free: 6.957 MB / 1.107 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001858/0.5391, allocations: 144.6 kB / 1.412 GB, free: 6.773 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001584/0.5393, allocations: 46.56 kB / 1.412 GB, free: 6.719 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.128e-05/0.5393, allocations: 12.84 kB / 1.412 GB, free: 6.703 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 1.355e-05/0.5393, allocations: 0 / 1.412 GB, free: 6.703 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.985e-05/0.5394, allocations: 42.56 kB / 1.412 GB, free: 6.652 MB / 1.107 GB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.5394, allocations: 0 / 1.412 GB, free: 6.652 MB / 1.107 GB Notification: Performance of matching and sorting (n=11): time 0.0007763/0.5402, allocations: 289.3 kB / 1.413 GB, free: 6.336 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.019e-05/0.5402, allocations: 51.41 kB / 1.413 GB, free: 6.273 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.316e-05/0.5403, allocations: 97.84 kB / 1.413 GB, free: 6.168 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 2.375e-05/0.5403, allocations: 29.7 kB / 1.413 GB, free: 6.133 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 4.317e-05/0.5404, allocations: 80.14 kB / 1.413 GB, free: 6.051 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 7.223e-05/0.5404, allocations: 35.66 kB / 1.413 GB, free: 6.016 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.491e-05/0.5405, allocations: 37.77 kB / 1.413 GB, free: 5.973 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001528/0.5406, allocations: 322.8 kB / 1.413 GB, free: 5.648 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.043e-05/0.5407, allocations: 19.98 kB / 1.413 GB, free: 5.629 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.483e-05/0.5407, allocations: 39.7 kB / 1.413 GB, free: 5.586 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001035/0.5409, allocations: 57.69 kB / 1.413 GB, free: 5.523 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.72e-07/0.5409, allocations: 3.938 kB / 1.413 GB, free: 5.52 MB / 1.107 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001456/0.541, allocations: 90.19 kB / 1.414 GB, free: 5.426 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.541, allocations: 10.5 kB / 1.414 GB, free: 5.418 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.541, allocations: 3.938 kB / 1.414 GB, free: 5.414 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.541, allocations: 0 / 1.414 GB, free: 5.414 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001334/0.5412, allocations: 35.92 kB / 1.414 GB, free: 5.379 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.5412, allocations: 4.156 kB / 1.414 GB, free: 5.375 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.386e-05/0.5412, allocations: 3.938 kB / 1.414 GB, free: 5.371 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.127e-05/0.5412, allocations: 7.984 kB / 1.414 GB, free: 5.363 MB / 1.107 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.0001045/0.5413, allocations: 113.8 kB / 1.414 GB, free: 5.242 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.777e-05/0.5413, allocations: 0 / 1.414 GB, free: 5.242 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.683e-05/0.5414, allocations: 15.91 kB / 1.414 GB, free: 5.23 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.5414, allocations: 0 / 1.414 GB, free: 5.23 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.5414, allocations: 0 / 1.414 GB, free: 5.23 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.5414, allocations: 3.938 kB / 1.414 GB, free: 5.227 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001549/0.5415, allocations: 140.7 kB / 1.414 GB, free: 5.047 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.5415, allocations: 4 kB / 1.414 GB, free: 5.043 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001262/0.5417, allocations: 23.92 kB / 1.414 GB, free: 5.02 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.5417, allocations: 4 kB / 1.414 GB, free: 5.016 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.5417, allocations: 4 kB / 1.414 GB, free: 5.012 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.5417, allocations: 0 / 1.414 GB, free: 5.012 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.5417, allocations: 0 / 1.414 GB, free: 5.012 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002641/0.542, allocations: 141 kB / 1.414 GB, free: 4.855 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 5.446e-05/0.542, allocations: 11.95 kB / 1.414 GB, free: 4.844 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.582e-05/0.542, allocations: 0 / 1.414 GB, free: 4.844 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.053e-05/0.5421, allocations: 7.984 kB / 1.414 GB, free: 4.836 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.74e-05/0.5421, allocations: 8 kB / 1.414 GB, free: 4.828 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.5422, allocations: 11.92 kB / 1.414 GB, free: 4.816 MB / 1.107 GB Notification: Performance of sorting global known variables: time 4.243e-05/0.5422, allocations: 79.28 kB / 1.414 GB, free: 4.738 MB / 1.107 GB Notification: Performance of sort global known variables: time 1e-07/0.5422, allocations: 3.938 kB / 1.414 GB, free: 4.734 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.0002094/0.5424, allocations: 16 kB / 1.414 GB, free: 4.719 MB / 1.107 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.0006203/0.543, allocations: 0.6595 MB / 1.415 GB, free: 4.027 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.000151/0.5432, allocations: 59.95 kB / 1.415 GB, free: 3.969 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.5432, allocations: 0 / 1.415 GB, free: 3.969 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 4.202e-05/0.5432, allocations: 23.94 kB / 1.415 GB, free: 3.945 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.5435, allocations: 20.02 kB / 1.415 GB, free: 3.926 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001733/0.5452, allocations: 1.445 MB / 1.416 GB, free: 2.391 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.504e-05/0.5453, allocations: 67.34 kB / 1.416 GB, free: 2.305 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 5.786e-05/0.5453, allocations: 8.672 kB / 1.416 GB, free: 2.297 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.482e-05/0.5454, allocations: 27.36 kB / 1.416 GB, free: 2.27 MB / 1.107 GB Notification: Performance of SimCode: time 6.91e-07/0.5454, allocations: 3.938 kB / 1.416 GB, free: 2.266 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02635/0.5718, allocations: 1.89 MB / 1.418 GB, free: 0.5391 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.28, allocations: 13.67 kB / 1.418 GB, free: 0.5273 MB / 1.107 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat --tempDir=temp_Buildings_11_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 19.18854352796916]