Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_10_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.0009982/0.0009982, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.007709/0.007709, allocations: 171.1 kB / 16.26 MB, free: 6.676 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: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.398/2.398, allocations: 437.8 MB / 0.7121 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003123/0.0003124, allocations: 8 kB / 0.8729 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5368/0.5372, allocations: 153.8 MB / 1.023 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001096/0.5383, allocations: 1.011 MB / 1.024 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.131/0.6693, allocations: 143.1 MB / 1.164 GB, free: 15.13 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.471e-05/0.6694, allocations: 0 / 1.164 GB, free: 15.13 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.739e-05/0.6694, allocations: 3.984 kB / 1.164 GB, free: 15.12 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.442e-05/0.6695, allocations: 7.922 kB / 1.164 GB, free: 15.12 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002912/0.6698, allocations: 79.7 kB / 1.164 GB, free: 15.04 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.358e-05/0.6698, allocations: 43.78 kB / 1.164 GB, free: 15 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.115e-05/0.6699, allocations: 4 kB / 1.164 GB, free: 14.99 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.389e-05/0.6699, allocations: 11.98 kB / 1.164 GB, free: 14.98 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.902e-05/0.67, allocations: 15.92 kB / 1.164 GB, free: 14.96 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.099e-05/0.67, allocations: 4 kB / 1.164 GB, free: 14.96 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002122/0.6702, allocations: 75.81 kB / 1.164 GB, free: 14.89 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.146e-05/0.6702, allocations: 8 kB / 1.164 GB, free: 14.88 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.174e-05/0.6703, allocations: 37.64 kB / 1.164 GB, free: 14.84 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001298/0.6704, allocations: 70.11 kB / 1.164 GB, free: 14.77 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.6704, allocations: 0 / 1.164 GB, free: 14.77 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.492e-06/0.6704, allocations: 0 / 1.164 GB, free: 14.77 MB / 0.92 GB Notification: Performance of Transformations before backend: time 3.307e-06/0.6704, allocations: 0 / 1.164 GB, free: 14.77 MB / 0.92 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.0003058/0.6707, allocations: 343.5 kB / 1.165 GB, free: 14.39 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.6708, allocations: 8.031 kB / 1.165 GB, free: 14.38 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.147e-05/0.6708, allocations: 38.73 kB / 1.165 GB, free: 14.33 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001644/0.671, allocations: 12.94 kB / 1.165 GB, free: 14.32 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.059e-05/0.6711, allocations: 168.1 kB / 1.165 GB, free: 14.12 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.975e-06/0.6711, allocations: 3.938 kB / 1.165 GB, free: 14.11 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.399e-05/0.6711, allocations: 15.89 kB / 1.165 GB, free: 14.1 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.6712, allocations: 49.67 kB / 1.165 GB, free: 14.04 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.011e-06/0.6712, allocations: 3.938 kB / 1.165 GB, free: 14.04 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.6712, allocations: 4 kB / 1.165 GB, free: 14.04 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.6713, allocations: 0 / 1.165 GB, free: 14.04 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.235e-05/0.6713, allocations: 15.98 kB / 1.165 GB, free: 14.02 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001458/0.6715, allocations: 173.5 kB / 1.165 GB, free: 13.8 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 7.531e-05/0.6715, allocations: 54.5 kB / 1.165 GB, free: 13.74 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.432e-05/0.6716, allocations: 12.86 kB / 1.165 GB, free: 13.72 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.077e-05/0.6716, allocations: 4 kB / 1.165 GB, free: 13.72 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.994e-05/0.6716, allocations: 34.5 kB / 1.165 GB, free: 13.68 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 9.31e-07/0.6716, allocations: 0 / 1.165 GB, free: 13.68 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0006152/0.6722, allocations: 371 kB / 1.165 GB, free: 13.26 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.713e-05/0.6723, allocations: 51.41 kB / 1.166 GB, free: 13.2 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.231e-05/0.6723, allocations: 93.86 kB / 1.166 GB, free: 13.1 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.547e-05/0.6724, allocations: 29.7 kB / 1.166 GB, free: 13.06 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 2.095e-05/0.6724, allocations: 80.14 kB / 1.166 GB, free: 12.98 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.7e-05/0.6724, allocations: 43.36 kB / 1.166 GB, free: 12.94 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.009e-05/0.6725, allocations: 21.84 kB / 1.166 GB, free: 12.91 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 8.583e-05/0.6725, allocations: 322.8 kB / 1.166 GB, free: 12.59 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.399e-05/0.6726, allocations: 19.92 kB / 1.166 GB, free: 12.57 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.391e-05/0.6726, allocations: 45.39 kB / 1.166 GB, free: 12.52 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.79e-05/0.6727, allocations: 61.69 kB / 1.166 GB, free: 12.45 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.01e-07/0.6727, allocations: 0 / 1.166 GB, free: 12.45 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001249/0.6729, allocations: 93.62 kB / 1.166 GB, free: 12.36 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 9.819e-06/0.6729, allocations: 4 kB / 1.166 GB, free: 12.35 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.6729, allocations: 4 kB / 1.166 GB, free: 12.35 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.896e-06/0.6729, allocations: 0 / 1.166 GB, free: 12.35 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.673, allocations: 23.98 kB / 1.166 GB, free: 12.32 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.673, allocations: 0 / 1.166 GB, free: 12.32 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.983e-05/0.673, allocations: 0 / 1.166 GB, free: 12.32 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.6731, allocations: 11.94 kB / 1.166 GB, free: 12.31 MB / 0.92 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.814e-05/0.6731, allocations: 122.3 kB / 1.166 GB, free: 12.18 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.457e-05/0.6732, allocations: 7.906 kB / 1.166 GB, free: 12.18 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.278e-05/0.6732, allocations: 15.95 kB / 1.167 GB, free: 12.16 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.6732, allocations: 4 kB / 1.167 GB, free: 12.16 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.6732, allocations: 0 / 1.167 GB, free: 12.16 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.6732, allocations: 0 / 1.167 GB, free: 12.16 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001083/0.6733, allocations: 177.6 kB / 1.167 GB, free: 11.93 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.6733, allocations: 0 / 1.167 GB, free: 11.93 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001143/0.6735, allocations: 24 kB / 1.167 GB, free: 11.91 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.6735, allocations: 0 / 1.167 GB, free: 11.91 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.683e-06/0.6735, allocations: 0 / 1.167 GB, free: 11.91 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.6735, allocations: 3.984 kB / 1.167 GB, free: 11.91 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.6735, allocations: 0 / 1.167 GB, free: 11.91 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001688/0.6737, allocations: 144.9 kB / 1.167 GB, free: 11.75 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.937e-05/0.6737, allocations: 85.14 kB / 1.167 GB, free: 11.64 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.139e-05/0.6737, allocations: 0 / 1.167 GB, free: 11.64 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.148e-05/0.6738, allocations: 8 kB / 1.167 GB, free: 11.64 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.555e-05/0.6739, allocations: 7.984 kB / 1.167 GB, free: 11.63 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.6739, allocations: 0 / 1.167 GB, free: 11.63 MB / 0.92 GB Notification: Performance of sorting global known variables: time 2.729e-05/0.6739, allocations: 83.22 kB / 1.167 GB, free: 11.55 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6739, allocations: 8.031 kB / 1.167 GB, free: 11.54 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0001872/0.6741, allocations: 16 kB / 1.167 GB, free: 11.52 MB / 0.92 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.0003554/0.6745, allocations: 0.6748 MB / 1.168 GB, free: 10.82 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001061/0.6746, allocations: 55.95 kB / 1.168 GB, free: 10.77 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.6746, allocations: 0 / 1.168 GB, free: 10.77 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 3.572e-05/0.6746, allocations: 35.98 kB / 1.168 GB, free: 10.73 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001741/0.6748, allocations: 8.125 kB / 1.168 GB, free: 10.72 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001167/0.676, allocations: 1.499 MB / 1.169 GB, free: 9.129 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001847/0.6762, allocations: 0.6848 MB / 1.17 GB, free: 8.418 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 5.982e-05/0.6762, allocations: 8.656 kB / 1.17 GB, free: 8.41 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.428e-05/0.6763, allocations: 19.44 kB / 1.17 GB, free: 8.391 MB / 0.92 GB Notification: Performance of SimCode: time 2.2e-07/0.6763, allocations: 0 / 1.17 GB, free: 8.391 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5099/1.186, allocations: 1.469 MB / 1.171 GB, free: 7.094 MB / 0.92 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003357/1.187, allocations: 222.9 kB / 1.172 GB, free: 6.836 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.657/2.844, allocations: 3.938 kB / 1.172 GB, free: 6.832 MB / 0.92 GB (rm -f Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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