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.006065/0.006065, allocations: 100.8 kB / 15.73 MB, free: 6.062 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.001237/0.001237, allocations: 193.5 kB / 16.67 MB, free: 5.977 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.348/1.348, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.344/2.344, allocations: 390.3 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 63.89 kB / 0.9504 GB, free: 8.172 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8952/0.8966, allocations: 140.4 MB / 1.087 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002063/0.8987, allocations: 1.278 MB / 1.089 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1837/1.082, allocations: 147 MB / 1.232 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.043e-05/1.082, allocations: 1.5 kB / 1.232 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.6e-05/1.083, allocations: 0 / 1.232 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.407e-05/1.083, allocations: 7.922 kB / 1.232 GB, free: 6.094 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006504/1.083, allocations: 100 kB / 1.232 GB, free: 6.02 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.714e-05/1.083, allocations: 31.05 kB / 1.232 GB, free: 6.004 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.778e-05/1.083, allocations: 6.891 kB / 1.232 GB, free: 6 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.065e-05/1.083, allocations: 19.62 kB / 1.232 GB, free: 5.988 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.446e-05/1.084, allocations: 16.59 kB / 1.232 GB, free: 5.977 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.358e-05/1.084, allocations: 2.438 kB / 1.232 GB, free: 5.977 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000361/1.084, allocations: 78.91 kB / 1.232 GB, free: 5.934 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.12e-05/1.084, allocations: 5.094 kB / 1.232 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.855e-05/1.084, allocations: 18.84 kB / 1.233 GB, free: 5.918 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002074/1.084, allocations: 63.31 kB / 1.233 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 8.837e-06/1.084, allocations: 0 / 1.233 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.313e-06/1.084, allocations: 7.938 kB / 1.233 GB, free: 5.883 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.797e-06/1.084, allocations: 0.9062 kB / 1.233 GB, free: 5.883 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.0005198/1.085, allocations: 353.3 kB / 1.233 GB, free: 5.508 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.82e-05/1.085, allocations: 9.219 kB / 1.233 GB, free: 5.508 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.346e-05/1.085, allocations: 32.84 kB / 1.233 GB, free: 5.469 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002209/1.085, allocations: 16.5 kB / 1.233 GB, free: 5.461 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000148/1.085, allocations: 173.2 kB / 1.233 GB, free: 5.254 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.05e-05/1.085, allocations: 6.344 kB / 1.233 GB, free: 5.25 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.343e-05/1.085, allocations: 7.406 kB / 1.233 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001474/1.086, allocations: 52.23 kB / 1.233 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/1.086, allocations: 5.828 kB / 1.233 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/1.086, allocations: 0 / 1.233 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/1.086, allocations: 1.469 kB / 1.233 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.842e-05/1.086, allocations: 20.77 kB / 1.233 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002124/1.086, allocations: 168 kB / 1.233 GB, free: 4.977 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001053/1.086, allocations: 56.09 kB / 1.233 GB, free: 4.934 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.2e-05/1.086, allocations: 11.7 kB / 1.233 GB, free: 4.926 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.493e-05/1.086, allocations: 1.156 kB / 1.233 GB, free: 4.926 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.467e-05/1.086, allocations: 39.58 kB / 1.233 GB, free: 4.879 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/1.086, allocations: 0 / 1.233 GB, free: 4.879 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0008491/1.087, allocations: 370.2 kB / 1.234 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.414e-05/1.087, allocations: 57.47 kB / 1.234 GB, free: 4.488 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.792e-05/1.087, allocations: 90.83 kB / 1.234 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/1.087, allocations: 30.8 kB / 1.234 GB, free: 4.355 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.672e-05/1.087, allocations: 81.2 kB / 1.234 GB, free: 4.273 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.444e-05/1.087, allocations: 35.58 kB / 1.234 GB, free: 4.242 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.609e-05/1.087, allocations: 31.33 kB / 1.234 GB, free: 4.215 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001177/1.087, allocations: 320.2 kB / 1.234 GB, free: 3.895 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.144e-05/1.087, allocations: 26.61 kB / 1.234 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.843e-05/1.087, allocations: 39.39 kB / 1.235 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.894e-05/1.088, allocations: 56.58 kB / 1.235 GB, free: 3.816 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/1.088, allocations: 0 / 1.235 GB, free: 3.816 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001434/1.088, allocations: 98.34 kB / 1.235 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/1.088, allocations: 4.562 kB / 1.235 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/1.088, allocations: 1.656 kB / 1.235 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/1.088, allocations: 0 / 1.235 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/1.088, allocations: 26.17 kB / 1.235 GB, free: 3.746 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/1.088, allocations: 10.27 kB / 1.235 GB, free: 3.738 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.383e-05/1.088, allocations: 1.031 kB / 1.235 GB, free: 3.738 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.084e-05/1.088, allocations: 7 kB / 1.235 GB, free: 3.734 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 9.279e-05/1.088, allocations: 115.9 kB / 1.235 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.631e-05/1.088, allocations: 3.125 kB / 1.235 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.687e-05/1.088, allocations: 12.91 kB / 1.235 GB, free: 3.602 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/1.088, allocations: 1.094 kB / 1.235 GB, free: 3.602 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/1.088, allocations: 1.281 kB / 1.235 GB, free: 3.602 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/1.088, allocations: 8 kB / 1.235 GB, free: 3.594 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001372/1.088, allocations: 175.2 kB / 1.235 GB, free: 3.383 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/1.088, allocations: 5.219 kB / 1.235 GB, free: 3.379 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001229/1.088, allocations: 22.05 kB / 1.235 GB, free: 3.375 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/1.088, allocations: 0 / 1.235 GB, free: 3.375 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/1.088, allocations: 5.406 kB / 1.235 GB, free: 3.371 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/1.088, allocations: 1 kB / 1.235 GB, free: 3.371 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.562e-06/1.088, allocations: 0 / 1.235 GB, free: 3.371 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002145/1.089, allocations: 135.6 kB / 1.235 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 8.909e-05/1.089, allocations: 88.2 kB / 1.235 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/1.089, allocations: 5.094 kB / 1.235 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.336e-05/1.089, allocations: 3.188 kB / 1.235 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.839e-05/1.089, allocations: 10.64 kB / 1.235 GB, free: 3.152 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.114e-05/1.089, allocations: 3.5 kB / 1.235 GB, free: 3.152 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.263e-05/1.089, allocations: 84.22 kB / 1.235 GB, free: 3.07 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/1.089, allocations: 0 / 1.235 GB, free: 3.07 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002177/1.089, allocations: 15.72 kB / 1.235 GB, free: 3.066 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.0006135/1.09, allocations: 0.6771 MB / 1.236 GB, free: 2.422 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001724/1.09, allocations: 59.75 kB / 1.236 GB, free: 2.398 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/1.09, allocations: 0 / 1.236 GB, free: 2.398 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 5.095e-05/1.09, allocations: 27.11 kB / 1.236 GB, free: 2.391 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002784/1.09, allocations: 7.25 kB / 1.236 GB, free: 2.387 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001658/1.092, allocations: 1.45 MB / 1.238 GB, free: 1.02 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002734/1.092, allocations: 0.6918 MB / 1.238 GB, free: 320 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 5.983e-05/1.092, allocations: 9.422 kB / 1.238 GB, free: 316 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.738e-05/1.092, allocations: 16.03 kB / 1.238 GB, free: 304 kB / 0.9669 GB Notification: Performance of SimCode: time 2.6e-07/1.092, allocations: 0 / 1.238 GB, free: 304 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01996/1.112, allocations: 1.676 MB / 1.24 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.829/8.942, allocations: 26.69 kB / 1.24 GB, free: 15.39 MB / 0.9825 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[2]=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