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.001841/0.001841, 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.002442/0.002442, allocations: 217.5 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.535/1.535, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.83/2.83, allocations: 476.7 MB / 0.7715 GB, free: 4.293 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.002078/0.002078, allocations: 65.25 kB / 1.118 GB, free: 40.35 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3594/0.3615, allocations: 169.9 MB / 1.284 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002418/0.3639, allocations: 1.303 MB / 1.285 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.1786/0.5425, allocations: 150.3 MB / 1.432 GB, free: 3.578 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.678e-05/0.5425, allocations: 4 kB / 1.432 GB, free: 3.574 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 3.246e-05/0.5426, allocations: 3.984 kB / 1.432 GB, free: 3.57 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 6.387e-05/0.5426, allocations: 7.922 kB / 1.432 GB, free: 3.562 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005/0.5431, allocations: 99.56 kB / 1.432 GB, free: 3.465 MB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 9.185e-05/0.5432, allocations: 27.92 kB / 1.432 GB, free: 3.438 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 5.569e-05/0.5433, allocations: 7.984 kB / 1.432 GB, free: 3.43 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 6.103e-05/0.5433, allocations: 15.94 kB / 1.432 GB, free: 3.414 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 7.208e-05/0.5434, allocations: 11.97 kB / 1.432 GB, free: 3.402 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 1.11e-05/0.5434, allocations: 4 kB / 1.432 GB, free: 3.398 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002681/0.5437, allocations: 83.77 kB / 1.432 GB, free: 3.316 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 2.098e-05/0.5437, allocations: 15.92 kB / 1.432 GB, free: 3.301 MB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 3e-05/0.5437, allocations: 11.94 kB / 1.432 GB, free: 3.289 MB / 1.123 GB Notification: Performance of NFConvertDAE.convert: time 0.0001894/0.5439, allocations: 63.39 kB / 1.433 GB, free: 3.23 MB / 1.123 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.5439, allocations: 4 kB / 1.433 GB, free: 3.227 MB / 1.123 GB Notification: Performance of FrontEnd: time 1.343e-06/0.5439, allocations: 3.938 kB / 1.433 GB, free: 3.223 MB / 1.123 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.5439, allocations: 0 / 1.433 GB, free: 3.223 MB / 1.123 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.0004703/0.5444, allocations: 278.2 kB / 1.433 GB, free: 2.922 MB / 1.123 GB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.5445, allocations: 16.03 kB / 1.433 GB, free: 2.906 MB / 1.123 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.793e-05/0.5445, allocations: 192 / 1.433 GB, free: 2.906 MB / 1.123 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.182e-05/0.5445, allocations: 34.73 kB / 1.433 GB, free: 2.863 MB / 1.123 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001962/0.5447, allocations: 16.88 kB / 1.433 GB, free: 2.848 MB / 1.123 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001058/0.5448, allocations: 110.1 kB / 1.433 GB, free: 2.715 MB / 1.123 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.5448, allocations: 0 / 1.433 GB, free: 2.715 MB / 1.123 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.754e-05/0.5449, allocations: 8 kB / 1.433 GB, free: 2.707 MB / 1.123 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001408/0.545, allocations: 61.59 kB / 1.433 GB, free: 2.641 MB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.545, allocations: 8 kB / 1.433 GB, free: 2.633 MB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.545, allocations: 0 / 1.433 GB, free: 2.633 MB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.545, allocations: 4 kB / 1.433 GB, free: 2.629 MB / 1.123 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.093e-05/0.5451, allocations: 15.98 kB / 1.433 GB, free: 2.613 MB / 1.123 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001927/0.5453, allocations: 144.6 kB / 1.433 GB, free: 2.43 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 8.92e-05/0.5454, allocations: 42.56 kB / 1.433 GB, free: 2.379 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.975e-05/0.5454, allocations: 12.86 kB / 1.433 GB, free: 2.363 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 1.37e-05/0.5454, allocations: 3.938 kB / 1.433 GB, free: 2.359 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/0.5454, allocations: 42.56 kB / 1.433 GB, free: 2.309 MB / 1.123 GB Notification: Performance of pre-optimization done (n=7): time 1.002e-06/0.5454, allocations: 0 / 1.433 GB, free: 2.309 MB / 1.123 GB Notification: Performance of matching and sorting (n=11): time 0.0007574/0.5462, allocations: 293.3 kB / 1.434 GB, free: 1.988 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.6e-05/0.5462, allocations: 51.41 kB / 1.434 GB, free: 1.926 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.338e-05/0.5463, allocations: 93.95 kB / 1.434 GB, free: 1.824 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 2.436e-05/0.5463, allocations: 33.73 kB / 1.434 GB, free: 1.785 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 3.627e-05/0.5464, allocations: 80.14 kB / 1.434 GB, free: 1.703 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 4.667e-05/0.5464, allocations: 39.64 kB / 1.434 GB, free: 1.664 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.616e-05/0.5465, allocations: 25.72 kB / 1.434 GB, free: 1.633 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001498/0.5466, allocations: 326.8 kB / 1.434 GB, free: 1.305 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.416e-05/0.5467, allocations: 12 kB / 1.434 GB, free: 1.293 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.617e-05/0.5467, allocations: 39.08 kB / 1.434 GB, free: 1.25 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.307e-05/0.5468, allocations: 74.16 kB / 1.434 GB, free: 1.172 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.01e-07/0.5468, allocations: 0 / 1.434 GB, free: 1.172 MB / 1.123 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001441/0.5469, allocations: 93.58 kB / 1.434 GB, free: 1.074 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.547, allocations: 6.031 kB / 1.434 GB, free: 1.07 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.547, allocations: 0 / 1.434 GB, free: 1.07 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.547, allocations: 0 / 1.434 GB, free: 1.07 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.5471, allocations: 27.98 kB / 1.434 GB, free: 1.043 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.5471, allocations: 0 / 1.434 GB, free: 1.043 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.558e-05/0.5471, allocations: 7.938 kB / 1.434 GB, free: 1.035 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-06/0.5472, allocations: 0 / 1.434 GB, free: 1.035 MB / 1.123 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.788e-05/0.5472, allocations: 121.8 kB / 1.435 GB, free: 0.9062 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.502e-05/0.5473, allocations: 4 kB / 1.435 GB, free: 0.9023 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.724e-05/0.5473, allocations: 15.89 kB / 1.435 GB, free: 0.8906 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.5473, allocations: 0 / 1.435 GB, free: 0.8906 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.5473, allocations: 0 / 1.435 GB, free: 0.8906 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.5473, allocations: 3.938 kB / 1.435 GB, free: 0.8867 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001403/0.5474, allocations: 148.7 kB / 1.435 GB, free: 0.6992 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.5474, allocations: 3.938 kB / 1.435 GB, free: 0.6953 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001314/0.5476, allocations: 20 kB / 1.435 GB, free: 0.6758 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.5476, allocations: 4 kB / 1.435 GB, free: 0.6719 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.5476, allocations: 4 kB / 1.435 GB, free: 0.668 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.5476, allocations: 0 / 1.435 GB, free: 0.668 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.624e-06/0.5476, allocations: 3.984 kB / 1.435 GB, free: 0.6641 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002202/0.5478, allocations: 132.9 kB / 1.435 GB, free: 0.5156 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 4.65e-05/0.5479, allocations: 11.95 kB / 1.435 GB, free: 0.5039 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.88e-05/0.5479, allocations: 8.031 kB / 1.435 GB, free: 0.4961 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.349e-05/0.548, allocations: 4 kB / 1.435 GB, free: 0.4922 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.433e-05/0.548, allocations: 15.98 kB / 1.435 GB, free: 488 kB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.415e-06/0.548, allocations: 7.875 kB / 1.435 GB, free: 480 kB / 1.123 GB Notification: Performance of sorting global known variables: time 3.935e-05/0.548, allocations: 79.28 kB / 1.435 GB, free: 400 kB / 1.123 GB Notification: Performance of sort global known variables: time 6e-08/0.548, allocations: 0 / 1.435 GB, free: 400 kB / 1.123 GB Notification: Performance of remove unused functions: time 0.0001995/0.5482, allocations: 16 kB / 1.435 GB, free: 384 kB / 1.123 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.0004962/0.5487, allocations: 0.6674 MB / 1.436 GB, free: 15.68 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.0001437/0.5489, allocations: 55.97 kB / 1.436 GB, free: 15.62 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.5489, allocations: 3.938 kB / 1.436 GB, free: 15.62 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 3.974e-05/0.5489, allocations: 23.98 kB / 1.436 GB, free: 15.59 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002409/0.5492, allocations: 13.48 kB / 1.436 GB, free: 15.58 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.5506, allocations: 1.446 MB / 1.437 GB, free: 14.05 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002986/0.5509, allocations: 0.6846 MB / 1.438 GB, free: 13.34 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 5.208e-05/0.5509, allocations: 12.66 kB / 1.438 GB, free: 13.32 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.652e-05/0.551, allocations: 23.44 kB / 1.438 GB, free: 13.3 MB / 1.139 GB Notification: Performance of SimCode: time 4.6e-07/0.551, allocations: 0 / 1.438 GB, free: 13.3 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02333/0.5743, allocations: 1.875 MB / 1.44 GB, free: 11.59 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/12.09, allocations: 0.5 kB / 1.44 GB, free: 11.59 MB / 1.139 GB " [Timeout remaining time 287] (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: 18.866317646985408]