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.001265/0.001265, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001208/0.001208, allocations: 198.1 kB / 16.14 MB, free: 6.719 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.234/1.234, allocations: 222.9 MB / 239.8 MB, free: 4.633 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.225/2.225, allocations: 390.2 MB / 0.6643 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 63.91 kB / 0.812 GB, free: 14.81 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5153/0.5166, allocations: 140.4 MB / 0.949 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001988/0.5186, allocations: 1.337 MB / 0.9503 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1325/0.6512, allocations: 144.7 MB / 1.092 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.486e-05/0.6512, allocations: 0 / 1.092 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.093e-05/0.6513, allocations: 3.984 kB / 1.092 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.599e-05/0.6513, allocations: 11.92 kB / 1.092 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003089/0.6516, allocations: 75.7 kB / 1.092 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.099e-05/0.6517, allocations: 39.8 kB / 1.092 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 2.808e-05/0.6517, allocations: 4 kB / 1.092 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.447e-05/0.6518, allocations: 19.97 kB / 1.092 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.561e-05/0.6518, allocations: 11.92 kB / 1.092 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.217e-05/0.6518, allocations: 4 kB / 1.092 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002232/0.6521, allocations: 67.83 kB / 1.092 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.62e-05/0.6521, allocations: 11.98 kB / 1.092 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.433e-05/0.6521, allocations: 15.94 kB / 1.092 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001356/0.6523, allocations: 70.11 kB / 1.092 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.6523, allocations: 0 / 1.092 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of FrontEnd: time 7.31e-07/0.6523, allocations: 0 / 1.092 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.6523, allocations: 4 kB / 1.092 GB, free: 15.2 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.0003338/0.6526, allocations: 351.5 kB / 1.092 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.6527, allocations: 8.031 kB / 1.092 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.138e-05/0.6527, allocations: 38.73 kB / 1.092 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001758/0.6529, allocations: 12.94 kB / 1.092 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.613e-05/0.653, allocations: 172.1 kB / 1.093 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.077e-06/0.653, allocations: 4 kB / 1.093 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.916e-05/0.653, allocations: 7.984 kB / 1.093 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001102/0.6531, allocations: 53.62 kB / 1.093 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.61e-06/0.6532, allocations: 0 / 1.093 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.6532, allocations: 4 kB / 1.093 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.6532, allocations: 0 / 1.093 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.241e-05/0.6532, allocations: 11.98 kB / 1.093 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001453/0.6534, allocations: 181.4 kB / 1.093 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.032e-05/0.6535, allocations: 50.5 kB / 1.093 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.908e-05/0.6535, allocations: 16.86 kB / 1.093 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 8.907e-06/0.6535, allocations: 0 / 1.093 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.6535, allocations: 30.56 kB / 1.093 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 8.72e-07/0.6535, allocations: 0 / 1.093 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0006361/0.6542, allocations: 382.7 kB / 1.093 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.521e-05/0.6542, allocations: 55.41 kB / 1.093 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.914e-05/0.6543, allocations: 93.86 kB / 1.093 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.6543, allocations: 29.7 kB / 1.093 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.591e-05/0.6543, allocations: 80.14 kB / 1.093 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.407e-05/0.6544, allocations: 47.3 kB / 1.094 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.122e-05/0.6544, allocations: 33.83 kB / 1.094 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.716e-05/0.6545, allocations: 314.8 kB / 1.094 GB, free: 13 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.986e-05/0.6546, allocations: 27.92 kB / 1.094 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.4e-05/0.6546, allocations: 36.95 kB / 1.094 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.684e-05/0.6547, allocations: 57.7 kB / 1.094 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.11e-07/0.6547, allocations: 0 / 1.094 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001218/0.6548, allocations: 89.62 kB / 1.094 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.6548, allocations: 7.984 kB / 1.094 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.6549, allocations: 12 kB / 1.094 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.797e-06/0.6549, allocations: 0 / 1.094 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001079/0.655, allocations: 23.94 kB / 1.094 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.88e-06/0.655, allocations: 0 / 1.094 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.351e-05/0.655, allocations: 4 kB / 1.094 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.655, allocations: 7.938 kB / 1.094 GB, free: 12.72 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.634e-05/0.6551, allocations: 117.8 kB / 1.094 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.595e-05/0.6551, allocations: 3.906 kB / 1.094 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.937e-05/0.6552, allocations: 11.97 kB / 1.094 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.6552, allocations: 8 kB / 1.094 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.6552, allocations: 0 / 1.094 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.6552, allocations: 0 / 1.094 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001128/0.6553, allocations: 177.6 kB / 1.094 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.6553, allocations: 0 / 1.094 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001188/0.6554, allocations: 23.92 kB / 1.094 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.6554, allocations: 0 / 1.094 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.966e-06/0.6555, allocations: 4 kB / 1.094 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.6555, allocations: 0 / 1.094 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.6555, allocations: 0 / 1.094 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001808/0.6557, allocations: 140.9 kB / 1.095 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.368e-05/0.6557, allocations: 81.14 kB / 1.095 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.389e-05/0.6557, allocations: 8 kB / 1.095 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.482e-05/0.6558, allocations: 0 / 1.095 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.046e-05/0.6559, allocations: 7.984 kB / 1.095 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-06/0.6559, allocations: 8 kB / 1.095 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.97e-05/0.6559, allocations: 79.22 kB / 1.095 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6559, allocations: 4.094 kB / 1.095 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001933/0.6561, allocations: 12 kB / 1.095 GB, free: 11.95 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.0003616/0.6565, allocations: 0.6788 MB / 1.095 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001098/0.6566, allocations: 55.92 kB / 1.095 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.6566, allocations: 0 / 1.095 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 3.61e-05/0.6566, allocations: 35.86 kB / 1.096 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001943/0.6568, allocations: 13.31 kB / 1.096 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.658, allocations: 1.447 MB / 1.097 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001961/0.6582, allocations: 0.6887 MB / 1.098 GB, free: 8.887 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.334e-05/0.6583, allocations: 8.672 kB / 1.098 GB, free: 8.879 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.478e-05/0.6583, allocations: 15.44 kB / 1.098 GB, free: 8.863 MB / 0.8575 GB Notification: Performance of SimCode: time 1.332e-06/0.6584, allocations: 0 / 1.098 GB, free: 8.863 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.007/2.666, allocations: 1.528 MB / 1.099 GB, free: 7.461 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002053/2.666, allocations: 211.8 kB / 1.099 GB, free: 7.211 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.7/4.366, allocations: 0 / 1.099 GB, free: 7.211 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