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.001228/0.001228, allocations: 93.92 kB / 19.73 MB, free: 2.129 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.001443/0.001443, allocations: 215.7 kB / 23.03 MB, free: 4.953 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.498/1.498, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.394/3.394, allocations: 0.49 GB / 0.7959 GB, free: 35.4 MB / 0.6231 GB " [Timeout remaining time 176] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_12_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.002073/0.002073, allocations: 62.77 kB / 1.155 GB, free: 25.54 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4171/0.4191, allocations: 176.1 MB / 1.327 GB, free: 1.543 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002887/0.422, allocations: 1.289 MB / 1.328 GB, free: 252 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.1804/0.6024, allocations: 129 MB / 1.454 GB, free: 14.79 MB / 1.154 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.467e-05/0.6025, allocations: 4 kB / 1.454 GB, free: 14.78 MB / 1.154 GB Notification: Performance of NFTyping.typeComponents: time 2.841e-05/0.6025, allocations: 0 / 1.454 GB, free: 14.78 MB / 1.154 GB Notification: Performance of NFTyping.typeBindings: time 6.608e-05/0.6026, allocations: 15.86 kB / 1.454 GB, free: 14.77 MB / 1.154 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006556/0.6032, allocations: 91.56 kB / 1.454 GB, free: 14.68 MB / 1.154 GB Notification: Performance of NFFlatten.flatten: time 0.0001145/0.6033, allocations: 35.86 kB / 1.454 GB, free: 14.64 MB / 1.154 GB Notification: Performance of NFFlatten.resolveConnections: time 5.07e-05/0.6034, allocations: 0 / 1.454 GB, free: 14.64 MB / 1.154 GB Notification: Performance of NFEvalConstants.evaluate: time 6.509e-05/0.6035, allocations: 15.97 kB / 1.454 GB, free: 14.62 MB / 1.154 GB Notification: Performance of NFSimplifyModel.simplify: time 7.88e-05/0.6035, allocations: 11.94 kB / 1.454 GB, free: 14.61 MB / 1.154 GB Notification: Performance of NFPackage.collectConstants: time 1.49e-05/0.6036, allocations: 4 kB / 1.454 GB, free: 14.61 MB / 1.154 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003483/0.6039, allocations: 83.81 kB / 1.454 GB, free: 14.53 MB / 1.154 GB Notification: Performance of NFScalarize.scalarize: time 2.027e-05/0.6039, allocations: 4 kB / 1.454 GB, free: 14.52 MB / 1.154 GB Notification: Performance of NFVerifyModel.verify: time 4.429e-05/0.604, allocations: 23.91 kB / 1.454 GB, free: 14.5 MB / 1.154 GB Notification: Performance of NFConvertDAE.convert: time 0.0002221/0.6042, allocations: 64.05 kB / 1.454 GB, free: 14.44 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.6042, allocations: 0 / 1.454 GB, free: 14.44 MB / 1.154 GB Notification: Performance of FrontEnd: time 1.874e-06/0.6042, allocations: 0 / 1.454 GB, free: 14.44 MB / 1.154 GB Notification: Performance of Transformations before backend: time 7.333e-06/0.6042, allocations: 0 / 1.454 GB, free: 14.44 MB / 1.154 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.0005388/0.6047, allocations: 279.8 kB / 1.454 GB, free: 14.14 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/0.6048, allocations: 12.03 kB / 1.454 GB, free: 14.12 MB / 1.154 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.616e-05/0.6048, allocations: 192 / 1.454 GB, free: 14.12 MB / 1.154 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.345e-05/0.6049, allocations: 34.75 kB / 1.454 GB, free: 14.08 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002281/0.6051, allocations: 16.92 kB / 1.454 GB, free: 14.07 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.6052, allocations: 118 kB / 1.455 GB, free: 13.93 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.6052, allocations: 0 / 1.455 GB, free: 13.93 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.083e-05/0.6053, allocations: 8 kB / 1.455 GB, free: 13.92 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002186/0.6055, allocations: 126.8 kB / 1.455 GB, free: 13.77 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.6055, allocations: 0 / 1.455 GB, free: 13.77 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.6055, allocations: 0 / 1.455 GB, free: 13.77 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.6055, allocations: 0 / 1.455 GB, free: 13.77 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.406e-05/0.6056, allocations: 23.92 kB / 1.455 GB, free: 13.75 MB / 1.154 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002039/0.6058, allocations: 136.7 kB / 1.455 GB, free: 13.57 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000131/0.6059, allocations: 58.48 kB / 1.455 GB, free: 13.5 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.205e-05/0.606, allocations: 9.094 kB / 1.455 GB, free: 13.49 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 1.465e-05/0.606, allocations: 0 / 1.455 GB, free: 13.49 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.047e-05/0.606, allocations: 42.55 kB / 1.455 GB, free: 13.44 MB / 1.154 GB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.606, allocations: 0 / 1.455 GB, free: 13.44 MB / 1.154 GB Notification: Performance of matching and sorting (n=11): time 0.0008846/0.6069, allocations: 289.5 kB / 1.455 GB, free: 13.12 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.938e-05/0.607, allocations: 59.33 kB / 1.455 GB, free: 13.05 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.06e-05/0.607, allocations: 93.86 kB / 1.455 GB, free: 12.95 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 2.513e-05/0.6071, allocations: 33.83 kB / 1.455 GB, free: 12.91 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 4.265e-05/0.6071, allocations: 84.08 kB / 1.455 GB, free: 12.83 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 5.843e-05/0.6072, allocations: 43.67 kB / 1.456 GB, free: 12.79 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.53e-05/0.6072, allocations: 25.72 kB / 1.456 GB, free: 12.75 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.0001595/0.6074, allocations: 322.8 kB / 1.456 GB, free: 12.43 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.811e-05/0.6074, allocations: 16 kB / 1.456 GB, free: 12.41 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.359e-05/0.6075, allocations: 44.45 kB / 1.456 GB, free: 12.37 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.937e-05/0.6076, allocations: 53.7 kB / 1.456 GB, free: 12.31 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.51e-07/0.6076, allocations: 0 / 1.456 GB, free: 12.31 MB / 1.154 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001558/0.6077, allocations: 101.5 kB / 1.456 GB, free: 12.2 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.6078, allocations: 8 kB / 1.456 GB, free: 12.2 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.78e-06/0.6078, allocations: 4 kB / 1.456 GB, free: 12.19 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.6078, allocations: 0 / 1.456 GB, free: 12.19 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.6079, allocations: 31.92 kB / 1.456 GB, free: 12.16 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.6079, allocations: 0 / 1.456 GB, free: 12.16 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.69e-05/0.608, allocations: 3.938 kB / 1.456 GB, free: 12.16 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.608, allocations: 4 kB / 1.456 GB, free: 12.15 MB / 1.154 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.0001106/0.6081, allocations: 114.4 kB / 1.456 GB, free: 12.03 MB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.777e-05/0.6081, allocations: 4 kB / 1.456 GB, free: 12.03 MB / 1.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.681e-05/0.6081, allocations: 15.89 kB / 1.456 GB, free: 12.01 MB / 1.154 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.6081, allocations: 0 / 1.456 GB, free: 12.01 MB / 1.154 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.289e-06/0.6082, allocations: 4 kB / 1.456 GB, free: 12 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.116e-05/0.6082, allocations: 7.938 kB / 1.456 GB, free: 12 MB / 1.154 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001492/0.6083, allocations: 136.8 kB / 1.456 GB, free: 11.82 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.6083, allocations: 0 / 1.456 GB, free: 11.82 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001335/0.6084, allocations: 23.94 kB / 1.456 GB, free: 11.8 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.6085, allocations: 0 / 1.456 GB, free: 11.8 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.6085, allocations: 4 kB / 1.456 GB, free: 11.79 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/0.6085, allocations: 3.984 kB / 1.456 GB, free: 11.79 MB / 1.154 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.6085, allocations: 0 / 1.456 GB, free: 11.79 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002434/0.6087, allocations: 136.9 kB / 1.457 GB, free: 11.64 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 5.82e-05/0.6088, allocations: 11.95 kB / 1.457 GB, free: 11.62 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.937e-05/0.6088, allocations: 8.031 kB / 1.457 GB, free: 11.62 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.61e-05/0.6089, allocations: 4 kB / 1.457 GB, free: 11.61 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.638e-05/0.6089, allocations: 11.98 kB / 1.457 GB, free: 11.6 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.368e-06/0.6089, allocations: 3.938 kB / 1.457 GB, free: 11.6 MB / 1.154 GB Notification: Performance of sorting global known variables: time 4.155e-05/0.609, allocations: 79.28 kB / 1.457 GB, free: 11.52 MB / 1.154 GB Notification: Performance of sort global known variables: time 7e-08/0.609, allocations: 0 / 1.457 GB, free: 11.52 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.0002215/0.6092, allocations: 16 kB / 1.457 GB, free: 11.5 MB / 1.154 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.0005317/0.6097, allocations: 0.667 MB / 1.457 GB, free: 10.8 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.0001641/0.6099, allocations: 60.02 kB / 1.457 GB, free: 10.75 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.6099, allocations: 3.938 kB / 1.457 GB, free: 10.74 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 4.466e-05/0.6099, allocations: 28.25 kB / 1.457 GB, free: 10.71 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002996/0.6102, allocations: 11.94 kB / 1.457 GB, free: 10.7 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001763/0.612, allocations: 1.453 MB / 1.459 GB, free: 9.168 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.76e-05/0.6121, allocations: 67.34 kB / 1.459 GB, free: 9.082 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 6.346e-05/0.6121, allocations: 16.59 kB / 1.459 GB, free: 9.066 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.437e-05/0.6122, allocations: 19.44 kB / 1.459 GB, free: 9.047 MB / 1.154 GB Notification: Performance of SimCode: time 6.62e-07/0.6122, allocations: 0 / 1.459 GB, free: 9.047 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02431/0.6365, allocations: 1.891 MB / 1.461 GB, free: 7.312 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/12.2, allocations: 24.97 kB / 1.461 GB, free: 7.293 MB / 1.154 GB " [Timeout remaining time 288] (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: 19.31675332202576]