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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.000905/0.000905, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005322/0.005322, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.233/1.233, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.134/2.134, allocations: 390.9 MB / 0.6664 GB, free: 2.359 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002991/0.0002991, allocations: 12 kB / 0.8161 GB, free: 13.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5309/0.5312, allocations: 142.4 MB / 0.9552 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.0009524/0.5322, allocations: 1.001 MB / 0.9561 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1202/0.6525, allocations: 143.2 MB / 1.096 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.972e-05/0.6525, allocations: 0 / 1.096 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.161e-05/0.6525, allocations: 7.922 kB / 1.096 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.08e-05/0.6526, allocations: 3.984 kB / 1.096 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002481/0.6528, allocations: 83.64 kB / 1.096 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 4.187e-05/0.6529, allocations: 35.92 kB / 1.096 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 2.262e-05/0.6529, allocations: 3.984 kB / 1.096 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.504e-05/0.6529, allocations: 11.94 kB / 1.096 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 3.591e-05/0.653, allocations: 23.91 kB / 1.096 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.552e-06/0.653, allocations: 0 / 1.096 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001787/0.6532, allocations: 67.83 kB / 1.096 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.182e-05/0.6532, allocations: 11.98 kB / 1.096 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.505e-05/0.6532, allocations: 41.64 kB / 1.096 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 9.992e-05/0.6533, allocations: 70.06 kB / 1.096 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.6533, allocations: 0 / 1.096 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of FrontEnd: time 9.22e-07/0.6533, allocations: 0 / 1.096 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.294e-06/0.6533, allocations: 0 / 1.096 GB, free: 14.29 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.0002315/0.6536, allocations: 343.5 kB / 1.097 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 2.655e-05/0.6536, allocations: 8.031 kB / 1.097 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.514e-05/0.6536, allocations: 42.69 kB / 1.097 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.6538, allocations: 12.92 kB / 1.097 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.462e-05/0.6539, allocations: 168.1 kB / 1.097 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.893e-06/0.6539, allocations: 4 kB / 1.097 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.717e-05/0.6539, allocations: 8 kB / 1.097 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.99e-05/0.654, allocations: 53.66 kB / 1.097 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.367e-06/0.654, allocations: 0 / 1.097 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.684e-06/0.654, allocations: 4 kB / 1.097 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.416e-06/0.654, allocations: 4 kB / 1.097 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.406e-05/0.654, allocations: 15.92 kB / 1.097 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001153/0.6542, allocations: 177.5 kB / 1.097 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.383e-05/0.6542, allocations: 50.55 kB / 1.097 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.122e-05/0.6543, allocations: 16.86 kB / 1.097 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 7.193e-06/0.6543, allocations: 0 / 1.097 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.56e-05/0.6543, allocations: 30.56 kB / 1.097 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 6.91e-07/0.6543, allocations: 0 / 1.097 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0005433/0.6548, allocations: 382.3 kB / 1.098 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.294e-05/0.6549, allocations: 55.41 kB / 1.098 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.862e-05/0.6549, allocations: 89.86 kB / 1.098 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.357e-05/0.6549, allocations: 29.7 kB / 1.098 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.021e-05/0.655, allocations: 84.14 kB / 1.098 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.766e-05/0.655, allocations: 39.36 kB / 1.098 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.329e-05/0.655, allocations: 17.72 kB / 1.098 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.483e-05/0.6551, allocations: 326.9 kB / 1.098 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.889e-05/0.6551, allocations: 16 kB / 1.098 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.817e-05/0.6552, allocations: 36.7 kB / 1.098 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.002e-05/0.6553, allocations: 62.19 kB / 1.098 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.42e-07/0.6553, allocations: 0 / 1.098 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001154/0.6554, allocations: 97.66 kB / 1.098 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 9.689e-06/0.6554, allocations: 5.406 kB / 1.098 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.535e-06/0.6554, allocations: 0 / 1.098 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.774e-06/0.6554, allocations: 8 kB / 1.098 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.356e-05/0.6555, allocations: 23.92 kB / 1.098 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.6555, allocations: 4 kB / 1.098 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.78e-05/0.6556, allocations: 0 / 1.098 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-06/0.6556, allocations: 11.94 kB / 1.098 GB, free: 11.82 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 5.492e-05/0.6556, allocations: 117.7 kB / 1.099 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.748e-05/0.6557, allocations: 7.906 kB / 1.099 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.913e-05/0.6557, allocations: 11.95 kB / 1.099 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.6557, allocations: 4 kB / 1.099 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.6557, allocations: 4 kB / 1.099 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.6557, allocations: 0 / 1.099 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.642e-05/0.6558, allocations: 173.6 kB / 1.099 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.6558, allocations: 0 / 1.099 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.6559, allocations: 27.94 kB / 1.099 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.6559, allocations: 0 / 1.099 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.621e-06/0.6559, allocations: 0 / 1.099 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.656, allocations: 4 kB / 1.099 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.656, allocations: 3.984 kB / 1.099 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001564/0.6561, allocations: 133 kB / 1.099 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.486e-05/0.6562, allocations: 85.02 kB / 1.099 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/0.6562, allocations: 8.031 kB / 1.099 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.397e-05/0.6563, allocations: 4 kB / 1.099 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.404e-05/0.6563, allocations: 8 kB / 1.099 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/0.6563, allocations: 11.92 kB / 1.099 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.36e-05/0.6563, allocations: 79.22 kB / 1.099 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6563, allocations: 0 / 1.099 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001725/0.6565, allocations: 20.09 kB / 1.099 GB, free: 11.04 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.0003152/0.6568, allocations: 0.6595 MB / 1.1 GB, free: 10.35 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 9.009e-05/0.6569, allocations: 63.94 kB / 1.1 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.6569, allocations: 0 / 1.1 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 3.598e-05/0.657, allocations: 27.94 kB / 1.1 GB, free: 10.26 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001562/0.6571, allocations: 21.3 kB / 1.1 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.6582, allocations: 1.489 MB / 1.101 GB, free: 8.66 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001665/0.6584, allocations: 0.6926 MB / 1.102 GB, free: 7.941 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.704e-05/0.6584, allocations: 12.66 kB / 1.102 GB, free: 7.93 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.945e-05/0.6585, allocations: 15.44 kB / 1.102 GB, free: 7.914 MB / 0.8575 GB Notification: Performance of SimCode: time 2.7e-07/0.6585, allocations: 0 / 1.102 GB, free: 7.914 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3927/1.051, allocations: 1.461 MB / 1.103 GB, free: 6.605 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002415/1.051, allocations: 211.1 kB / 1.104 GB, free: 6.355 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.461/2.512, allocations: 1 kB / 1.104 GB, free: 6.355 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