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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_11_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_11_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 197.9 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.292/1.292, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.477/2.477, allocations: 469.8 MB / 0.7424 GB, free: 7.449 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001744/0.001744, allocations: 65.23 kB / 0.9087 GB, free: 34.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2499, allocations: 159.1 MB / 1.064 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002084/0.252, allocations: 1.285 MB / 1.065 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1477/0.3997, allocations: 147 MB / 1.209 GB, free: 9.324 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.987e-05/0.3997, allocations: 0 / 1.209 GB, free: 9.324 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.909e-05/0.3998, allocations: 0 / 1.209 GB, free: 9.324 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.433e-05/0.3998, allocations: 7.922 kB / 1.209 GB, free: 9.316 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003921/0.4002, allocations: 95.55 kB / 1.209 GB, free: 9.223 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 5.928e-05/0.4003, allocations: 31.86 kB / 1.209 GB, free: 9.191 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.203e-05/0.4003, allocations: 4 kB / 1.209 GB, free: 9.188 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.949e-05/0.4004, allocations: 15.98 kB / 1.209 GB, free: 9.172 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.065e-05/0.4004, allocations: 19.92 kB / 1.209 GB, free: 9.152 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.029e-05/0.4005, allocations: 0 / 1.209 GB, free: 9.152 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002379/0.4007, allocations: 79.81 kB / 1.209 GB, free: 9.074 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.333e-05/0.4007, allocations: 4 kB / 1.209 GB, free: 9.07 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.911e-05/0.4008, allocations: 19.92 kB / 1.209 GB, free: 9.051 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001448/0.4009, allocations: 68.09 kB / 1.209 GB, free: 8.984 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.4009, allocations: 0 / 1.209 GB, free: 8.984 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.162e-06/0.4009, allocations: 3.938 kB / 1.209 GB, free: 8.98 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.118e-06/0.4009, allocations: 4 kB / 1.209 GB, free: 8.977 MB / 0.9669 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.0003823/0.4013, allocations: 359.4 kB / 1.21 GB, free: 8.578 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.4014, allocations: 8.031 kB / 1.21 GB, free: 8.57 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.376e-05/0.4014, allocations: 34.75 kB / 1.21 GB, free: 8.527 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001635/0.4016, allocations: 16.83 kB / 1.21 GB, free: 8.512 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.4017, allocations: 168.1 kB / 1.21 GB, free: 8.309 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.4017, allocations: 4 kB / 1.21 GB, free: 8.305 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.069e-05/0.4017, allocations: 4 kB / 1.21 GB, free: 8.301 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001106/0.4019, allocations: 57.67 kB / 1.21 GB, free: 8.238 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.743e-06/0.4019, allocations: 0 / 1.21 GB, free: 8.238 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.087e-06/0.4019, allocations: 0 / 1.21 GB, free: 8.238 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.4019, allocations: 4 kB / 1.21 GB, free: 8.234 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.516e-05/0.4019, allocations: 15.97 kB / 1.21 GB, free: 8.219 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001657/0.4021, allocations: 165.6 kB / 1.21 GB, free: 8.008 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 8.923e-05/0.4022, allocations: 50.5 kB / 1.21 GB, free: 7.949 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.092e-05/0.4022, allocations: 24.84 kB / 1.21 GB, free: 7.922 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 9.618e-06/0.4023, allocations: 0 / 1.21 GB, free: 7.922 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.49e-05/0.4023, allocations: 30.56 kB / 1.21 GB, free: 7.883 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 9.42e-07/0.4023, allocations: 0 / 1.21 GB, free: 7.883 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0006825/0.403, allocations: 366.3 kB / 1.21 GB, free: 7.473 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.484e-05/0.403, allocations: 59.34 kB / 1.211 GB, free: 7.402 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.265e-05/0.4031, allocations: 101.8 kB / 1.211 GB, free: 7.293 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.4031, allocations: 25.7 kB / 1.211 GB, free: 7.262 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.347e-05/0.4032, allocations: 84.08 kB / 1.211 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.166e-05/0.4032, allocations: 43.45 kB / 1.211 GB, free: 7.133 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.22e-05/0.4033, allocations: 25.72 kB / 1.211 GB, free: 7.102 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.4034, allocations: 314.8 kB / 1.211 GB, free: 6.785 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.028e-05/0.4034, allocations: 23.98 kB / 1.211 GB, free: 6.762 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.591e-05/0.4035, allocations: 38.83 kB / 1.211 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.947e-05/0.4036, allocations: 74.22 kB / 1.211 GB, free: 6.641 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.92e-07/0.4036, allocations: 0 / 1.211 GB, free: 6.641 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001412/0.4037, allocations: 93.53 kB / 1.211 GB, free: 6.543 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.4037, allocations: 4 kB / 1.211 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.4037, allocations: 0 / 1.211 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.4038, allocations: 4 kB / 1.211 GB, free: 6.535 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.4039, allocations: 19.98 kB / 1.211 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.4039, allocations: 7.938 kB / 1.211 GB, free: 6.508 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.337e-05/0.4039, allocations: 8 kB / 1.211 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-06/0.4039, allocations: 7.938 kB / 1.211 GB, free: 6.492 MB / 0.9669 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 7.421e-05/0.404, allocations: 109.8 kB / 1.211 GB, free: 6.375 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.431e-05/0.404, allocations: 4 kB / 1.211 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.87e-05/0.4041, allocations: 15.91 kB / 1.211 GB, free: 6.355 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.4041, allocations: 4 kB / 1.211 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.4041, allocations: 0 / 1.211 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.4041, allocations: 3.984 kB / 1.211 GB, free: 6.348 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001304/0.4042, allocations: 169.6 kB / 1.212 GB, free: 6.133 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.4042, allocations: 4 kB / 1.212 GB, free: 6.129 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/0.4044, allocations: 23.98 kB / 1.212 GB, free: 6.105 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.4044, allocations: 0 / 1.212 GB, free: 6.105 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.517e-06/0.4044, allocations: 0 / 1.212 GB, free: 6.105 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.4044, allocations: 7.938 kB / 1.212 GB, free: 6.098 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.4044, allocations: 0 / 1.212 GB, free: 6.098 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001911/0.4046, allocations: 136.9 kB / 1.212 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.91e-05/0.4047, allocations: 81.11 kB / 1.212 GB, free: 5.848 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.4047, allocations: 12 kB / 1.212 GB, free: 5.836 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.771e-05/0.4048, allocations: 3.984 kB / 1.212 GB, free: 5.832 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.575e-05/0.4048, allocations: 4 kB / 1.212 GB, free: 5.828 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.594e-06/0.4048, allocations: 4 kB / 1.212 GB, free: 5.824 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.608e-05/0.4048, allocations: 83.22 kB / 1.212 GB, free: 5.742 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.9e-07/0.4048, allocations: 0 / 1.212 GB, free: 5.742 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0001798/0.405, allocations: 12 kB / 1.212 GB, free: 5.73 MB / 0.9669 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.0004427/0.4055, allocations: 0.6759 MB / 1.213 GB, free: 5.023 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001276/0.4056, allocations: 59.95 kB / 1.213 GB, free: 4.965 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.4056, allocations: 4 kB / 1.213 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 3.781e-05/0.4057, allocations: 28.2 kB / 1.213 GB, free: 4.934 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001954/0.4059, allocations: 8.219 kB / 1.213 GB, free: 4.926 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001323/0.4072, allocations: 1.457 MB / 1.214 GB, free: 3.383 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002711/0.4075, allocations: 0.6892 MB / 1.215 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 6.394e-05/0.4075, allocations: 16.59 kB / 1.215 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.603e-05/0.4076, allocations: 15.44 kB / 1.215 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of SimCode: time 2.9e-07/0.4076, allocations: 0 / 1.215 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9453/1.353, allocations: 1.652 MB / 1.216 GB, free: 1.105 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.51/11.87, allocations: 3.938 kB / 1.217 GB, free: 1.102 MB / 0.9669 GB (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 --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) 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) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[3]=0.002000 " Variables in the reference:time,der(hLiqSym),der(hLiqCod),der(hSteSym),der(hSteCod),der(hAirSym),der(hAirCod) Variables in the result:T,der(T),der(hAirCod),der(hAirSym),der(hLiqCod),der(hLiqSym),der(hSteCod),der(hSteSym),hAirCod,hAirSym,hLiqCod,hLiqSym,hSteCod,hSteSym,time