Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_9_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.001764/0.001764, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00169/0.00169, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.173/1.173, allocations: 222.9 MB / 239.9 MB, free: 4.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.04/2.04, allocations: 390.2 MB / 0.6644 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 63.89 kB / 0.8122 GB, free: 14.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4628/0.464, allocations: 140.4 MB / 0.9492 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001691/0.4657, allocations: 1.336 MB / 0.9505 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1232/0.5889, allocations: 144.9 MB / 1.092 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.352e-05/0.589, allocations: 3.938 kB / 1.092 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.583e-05/0.589, allocations: 3.984 kB / 1.092 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.488e-05/0.5891, allocations: 3.938 kB / 1.092 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002967/0.5894, allocations: 83.7 kB / 1.092 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 4.714e-05/0.5894, allocations: 35.84 kB / 1.092 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 2.509e-05/0.5895, allocations: 7.984 kB / 1.092 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.669e-05/0.5895, allocations: 15.94 kB / 1.092 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 3.579e-05/0.5895, allocations: 15.92 kB / 1.092 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 9.799e-06/0.5896, allocations: 4 kB / 1.092 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001897/0.5897, allocations: 71.83 kB / 1.092 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.263e-05/0.5898, allocations: 11.98 kB / 1.092 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.333e-05/0.5898, allocations: 15.92 kB / 1.092 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001081/0.5899, allocations: 62.12 kB / 1.092 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.5899, allocations: 8 kB / 1.092 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of FrontEnd: time 7.01e-07/0.5899, allocations: 0 / 1.092 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 3.206e-06/0.5899, allocations: 4 kB / 1.092 GB, free: 14.98 MB / 0.8575 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.0002629/0.5902, allocations: 343.4 kB / 1.093 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 2.743e-05/0.5902, allocations: 8.031 kB / 1.093 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.626e-05/0.5903, allocations: 42.73 kB / 1.093 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001512/0.5904, allocations: 12.94 kB / 1.093 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.05e-05/0.5905, allocations: 164.1 kB / 1.093 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.907e-06/0.5905, allocations: 8 kB / 1.093 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.041e-05/0.5905, allocations: 11.92 kB / 1.093 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.105e-05/0.5906, allocations: 45.69 kB / 1.093 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.708e-06/0.5906, allocations: 0 / 1.093 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.5907, allocations: 8 kB / 1.093 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.474e-06/0.5907, allocations: 0 / 1.093 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.485e-05/0.5907, allocations: 11.98 kB / 1.093 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000124/0.5908, allocations: 181.4 kB / 1.093 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 7.228e-05/0.5909, allocations: 58.48 kB / 1.093 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.234e-05/0.5909, allocations: 16.86 kB / 1.093 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 8.857e-06/0.591, allocations: 0 / 1.093 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.708e-05/0.591, allocations: 30.56 kB / 1.093 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 3.666e-06/0.591, allocations: 4 kB / 1.093 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0005621/0.5916, allocations: 362.1 kB / 1.094 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.338e-05/0.5916, allocations: 59.41 kB / 1.094 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.727e-05/0.5916, allocations: 93.86 kB / 1.094 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.5917, allocations: 29.7 kB / 1.094 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.948e-05/0.5917, allocations: 80.38 kB / 1.094 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.404e-05/0.5917, allocations: 47.34 kB / 1.094 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.663e-05/0.5918, allocations: 29.7 kB / 1.094 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.256e-05/0.5918, allocations: 314.8 kB / 1.094 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.282e-05/0.5919, allocations: 31.98 kB / 1.094 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.94e-05/0.5919, allocations: 37.7 kB / 1.094 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.948e-05/0.592, allocations: 54.27 kB / 1.094 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.41e-07/0.592, allocations: 0 / 1.094 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001146/0.5921, allocations: 97.59 kB / 1.094 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/0.5921, allocations: 11.98 kB / 1.094 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.795e-06/0.5922, allocations: 0 / 1.094 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.344e-06/0.5922, allocations: 0 / 1.094 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.256e-05/0.5923, allocations: 24 kB / 1.094 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.687e-06/0.5923, allocations: 0 / 1.094 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.95e-05/0.5923, allocations: 0 / 1.094 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.5923, allocations: 15.88 kB / 1.094 GB, free: 12.5 MB / 0.8575 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 6.182e-05/0.5924, allocations: 121.8 kB / 1.095 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.376e-05/0.5924, allocations: 3.906 kB / 1.095 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.894e-05/0.5924, allocations: 11.97 kB / 1.095 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.5924, allocations: 0 / 1.095 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.5924, allocations: 0 / 1.095 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.5925, allocations: 4 kB / 1.095 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.96e-05/0.5926, allocations: 177.6 kB / 1.095 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.5926, allocations: 0 / 1.095 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.5927, allocations: 19.98 kB / 1.095 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.5927, allocations: 0 / 1.095 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.5927, allocations: 4 kB / 1.095 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.5927, allocations: 4 kB / 1.095 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.5927, allocations: 0 / 1.095 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001629/0.5929, allocations: 144.8 kB / 1.095 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.064e-05/0.5929, allocations: 85.14 kB / 1.095 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.133e-05/0.593, allocations: 4 kB / 1.095 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.682e-05/0.593, allocations: 4 kB / 1.095 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.726e-05/0.5931, allocations: 7.984 kB / 1.095 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.254e-06/0.5931, allocations: 4 kB / 1.095 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.486e-05/0.5931, allocations: 79.22 kB / 1.095 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5931, allocations: 0 / 1.095 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001797/0.5933, allocations: 16 kB / 1.095 GB, free: 11.72 MB / 0.8575 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.0003265/0.5936, allocations: 0.675 MB / 1.096 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001026/0.5937, allocations: 63.84 kB / 1.096 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.5937, allocations: 0 / 1.096 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 3.38e-05/0.5938, allocations: 31.92 kB / 1.096 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001719/0.594, allocations: 8.547 kB / 1.096 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.595, allocations: 1.458 MB / 1.097 GB, free: 9.375 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001659/0.5952, allocations: 0.6885 MB / 1.098 GB, free: 8.66 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.989e-05/0.5952, allocations: 8.672 kB / 1.098 GB, free: 8.652 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.046e-05/0.5953, allocations: 19.42 kB / 1.098 GB, free: 8.633 MB / 0.8575 GB Notification: Performance of SimCode: time 2.1e-07/0.5953, allocations: 0 / 1.098 GB, free: 8.633 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.422/2.017, allocations: 1.565 MB / 1.1 GB, free: 7.211 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002078/2.017, allocations: 219.9 kB / 1.1 GB, free: 6.953 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.513/3.531, allocations: 9.547 kB / 1.1 GB, free: 6.949 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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