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.001268/0.001268, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001225/0.001225, allocations: 196.8 kB / 16.14 MB, free: 6.734 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.386/1.386, allocations: 222.9 MB / 239.8 MB, free: 4.613 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.458/2.458, allocations: 437 MB / 0.7099 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 63.91 kB / 0.8687 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5216/0.5229, allocations: 151.6 MB / 1.017 GB, free: 2.773 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002296/0.5253, allocations: 1.342 MB / 1.018 GB, free: 1.422 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.1366/0.6619, allocations: 144.7 MB / 1.159 GB, free: 176 kB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.55e-05/0.662, allocations: 0 / 1.159 GB, free: 176 kB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 1.926e-05/0.662, allocations: 0 / 1.159 GB, free: 176 kB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 4.83e-05/0.6621, allocations: 3.984 kB / 1.159 GB, free: 172 kB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003136/0.6624, allocations: 79.64 kB / 1.159 GB, free: 92 kB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 5.117e-05/0.6625, allocations: 27.92 kB / 1.159 GB, free: 64 kB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 3.439e-05/0.6625, allocations: 7.984 kB / 1.159 GB, free: 56 kB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 3.78e-05/0.6625, allocations: 15.98 kB / 1.159 GB, free: 40 kB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 4.583e-05/0.6626, allocations: 15.92 kB / 1.159 GB, free: 24 kB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 1.211e-05/0.6626, allocations: 4 kB / 1.159 GB, free: 20 kB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002466/0.6629, allocations: 75.77 kB / 1.16 GB, free: 15.95 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.736e-05/0.6629, allocations: 7.984 kB / 1.16 GB, free: 15.94 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.532e-05/0.6629, allocations: 19.92 kB / 1.16 GB, free: 15.92 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001369/0.6631, allocations: 66.12 kB / 1.16 GB, free: 15.86 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.6631, allocations: 0 / 1.16 GB, free: 15.86 MB / 0.92 GB Notification: Performance of FrontEnd: time 9.82e-07/0.6631, allocations: 0 / 1.16 GB, free: 15.86 MB / 0.92 GB Notification: Performance of Transformations before backend: time 3.707e-06/0.6631, allocations: 0 / 1.16 GB, free: 15.86 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.0003525/0.6635, allocations: 357.2 kB / 1.16 GB, free: 15.46 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.6635, allocations: 8.031 kB / 1.16 GB, free: 15.45 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.48e-05/0.6635, allocations: 34.75 kB / 1.16 GB, free: 15.41 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001769/0.6637, allocations: 12.92 kB / 1.16 GB, free: 15.4 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.099e-05/0.6638, allocations: 164.1 kB / 1.16 GB, free: 15.2 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.6638, allocations: 4 kB / 1.16 GB, free: 15.2 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.231e-05/0.6639, allocations: 7.906 kB / 1.16 GB, free: 15.19 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001089/0.664, allocations: 53.67 kB / 1.16 GB, free: 15.13 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.664, allocations: 15.86 kB / 1.16 GB, free: 15.11 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.979e-06/0.664, allocations: 0 / 1.16 GB, free: 15.11 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.664, allocations: 4 kB / 1.16 GB, free: 15.11 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.671e-05/0.6641, allocations: 15.98 kB / 1.16 GB, free: 15.09 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001476/0.6642, allocations: 169.5 kB / 1.16 GB, free: 14.88 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 8.421e-05/0.6643, allocations: 50.62 kB / 1.16 GB, free: 14.82 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.09e-05/0.6644, allocations: 16.86 kB / 1.161 GB, free: 14.8 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.076e-05/0.6644, allocations: 4 kB / 1.161 GB, free: 14.8 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.6644, allocations: 34.5 kB / 1.161 GB, free: 14.75 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.6644, allocations: 0 / 1.161 GB, free: 14.75 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0006625/0.6651, allocations: 374 kB / 1.161 GB, free: 14.34 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.02e-05/0.6651, allocations: 59.41 kB / 1.161 GB, free: 14.27 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.447e-05/0.6652, allocations: 93.86 kB / 1.161 GB, free: 14.16 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.6652, allocations: 25.7 kB / 1.161 GB, free: 14.13 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 2.735e-05/0.6652, allocations: 84.14 kB / 1.161 GB, free: 14.05 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.602e-05/0.6653, allocations: 43.59 kB / 1.161 GB, free: 14 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.053e-05/0.6653, allocations: 25.72 kB / 1.161 GB, free: 13.97 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.042e-05/0.6654, allocations: 318.8 kB / 1.162 GB, free: 13.65 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.721e-05/0.6655, allocations: 23.98 kB / 1.162 GB, free: 13.63 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.568e-05/0.6655, allocations: 29.7 kB / 1.162 GB, free: 13.59 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.365e-05/0.6656, allocations: 65.78 kB / 1.162 GB, free: 13.52 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.51e-07/0.6656, allocations: 0 / 1.162 GB, free: 13.52 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001322/0.6657, allocations: 102.1 kB / 1.162 GB, free: 13.42 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.6658, allocations: 4 kB / 1.162 GB, free: 13.41 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-06/0.6658, allocations: 0 / 1.162 GB, free: 13.41 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.658e-06/0.6658, allocations: 4 kB / 1.162 GB, free: 13.41 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.6659, allocations: 23.98 kB / 1.162 GB, free: 13.39 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.6659, allocations: 4 kB / 1.162 GB, free: 13.38 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.405e-05/0.666, allocations: 4 kB / 1.162 GB, free: 13.38 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/0.666, allocations: 11.94 kB / 1.162 GB, free: 13.37 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 7.087e-05/0.666, allocations: 114.3 kB / 1.162 GB, free: 13.25 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.68e-05/0.6661, allocations: 7.984 kB / 1.162 GB, free: 13.24 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.32e-05/0.6661, allocations: 11.97 kB / 1.162 GB, free: 13.23 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.6661, allocations: 4 kB / 1.162 GB, free: 13.22 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.6661, allocations: 0 / 1.162 GB, free: 13.22 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.6661, allocations: 0 / 1.162 GB, free: 13.22 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001159/0.6662, allocations: 169.6 kB / 1.162 GB, free: 13.01 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.6663, allocations: 4 kB / 1.162 GB, free: 13 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001183/0.6664, allocations: 20 kB / 1.162 GB, free: 12.98 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.6664, allocations: 0 / 1.162 GB, free: 12.98 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.898e-06/0.6664, allocations: 3.984 kB / 1.162 GB, free: 12.98 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.6664, allocations: 4 kB / 1.162 GB, free: 12.98 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.6664, allocations: 3.938 kB / 1.162 GB, free: 12.97 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001916/0.6666, allocations: 144.8 kB / 1.162 GB, free: 12.81 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.765e-05/0.6667, allocations: 81.14 kB / 1.162 GB, free: 12.71 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.754e-05/0.6667, allocations: 8 kB / 1.162 GB, free: 12.71 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.596e-05/0.6668, allocations: 4 kB / 1.162 GB, free: 12.7 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.82e-05/0.6668, allocations: 7.984 kB / 1.162 GB, free: 12.7 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.449e-05/0.6668, allocations: 8 kB / 1.162 GB, free: 12.69 MB / 0.92 GB Notification: Performance of sorting global known variables: time 2.717e-05/0.6669, allocations: 79.22 kB / 1.162 GB, free: 12.61 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6669, allocations: 0 / 1.162 GB, free: 12.61 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002172/0.6671, allocations: 16 kB / 1.162 GB, free: 12.59 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.0003953/0.6675, allocations: 0.6746 MB / 1.163 GB, free: 11.89 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001151/0.6676, allocations: 56 kB / 1.163 GB, free: 11.84 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 4.187e-06/0.6676, allocations: 4 kB / 1.163 GB, free: 11.84 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 3.955e-05/0.6677, allocations: 31.86 kB / 1.163 GB, free: 11.8 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002136/0.6679, allocations: 11.94 kB / 1.163 GB, free: 11.79 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.6692, allocations: 1.441 MB / 1.165 GB, free: 10.26 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000208/0.6694, allocations: 0.6926 MB / 1.165 GB, free: 9.543 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 6.895e-05/0.6694, allocations: 8.672 kB / 1.165 GB, free: 9.535 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.624e-05/0.6695, allocations: 15.44 kB / 1.165 GB, free: 9.52 MB / 0.92 GB Notification: Performance of SimCode: time 2.31e-07/0.6695, allocations: 0 / 1.165 GB, free: 9.52 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2467/0.9162, allocations: 1.531 MB / 1.167 GB, free: 8.129 MB / 0.92 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001683/0.9164, allocations: 224.8 kB / 1.167 GB, free: 7.875 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.631/2.547, allocations: 0 / 1.167 GB, free: 7.875 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