Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_11_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.004656/0.004656, allocations: 99.58 kB / 15.73 MB, free: 6.016 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.001315/0.001315, allocations: 193 kB / 16.67 MB, free: 5.934 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.25/1.25, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.34/2.34, allocations: 469.8 MB / 0.7425 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 59.89 kB / 1.065 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5942/0.5959, allocations: 159.1 MB / 1.22 GB, free: 2.117 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001886/0.5978, allocations: 1.275 MB / 1.221 GB, free: 0.8359 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.1415/0.7394, allocations: 147 MB / 1.365 GB, free: 13.25 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.745e-05/0.7394, allocations: 0 / 1.365 GB, free: 13.25 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 1.642e-05/0.7395, allocations: 3.938 kB / 1.365 GB, free: 13.25 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 4.422e-05/0.7395, allocations: 3.938 kB / 1.365 GB, free: 13.25 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003311/0.7398, allocations: 95.55 kB / 1.365 GB, free: 13.15 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 6.856e-05/0.7399, allocations: 35.84 kB / 1.365 GB, free: 13.12 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 3.219e-05/0.74, allocations: 4 kB / 1.365 GB, free: 13.11 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 3.372e-05/0.74, allocations: 12 kB / 1.365 GB, free: 13.1 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 5.713e-05/0.7401, allocations: 23.91 kB / 1.365 GB, free: 13.08 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 1.015e-05/0.7401, allocations: 0 / 1.365 GB, free: 13.08 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000207/0.7403, allocations: 75.83 kB / 1.365 GB, free: 13 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 1.502e-05/0.7403, allocations: 11.98 kB / 1.365 GB, free: 12.99 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 2.712e-05/0.7403, allocations: 11.92 kB / 1.365 GB, free: 12.98 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.0001346/0.7405, allocations: 59.55 kB / 1.365 GB, free: 12.93 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.7405, allocations: 0 / 1.365 GB, free: 12.93 MB / 1.092 GB Notification: Performance of FrontEnd: time 4.298e-06/0.7405, allocations: 4 kB / 1.365 GB, free: 12.92 MB / 1.092 GB Notification: Performance of Transformations before backend: time 3.817e-06/0.7405, allocations: 3.938 kB / 1.365 GB, free: 12.92 MB / 1.092 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.0003517/0.7409, allocations: 355.3 kB / 1.366 GB, free: 12.52 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.7409, allocations: 12.03 kB / 1.366 GB, free: 12.51 MB / 1.092 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.33e-05/0.7409, allocations: 34.75 kB / 1.366 GB, free: 12.47 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001536/0.7411, allocations: 16.88 kB / 1.366 GB, free: 12.45 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.7412, allocations: 164.1 kB / 1.366 GB, free: 12.25 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.7412, allocations: 4 kB / 1.366 GB, free: 12.25 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.814e-05/0.7413, allocations: 4 kB / 1.366 GB, free: 12.25 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001061/0.7414, allocations: 49.67 kB / 1.366 GB, free: 12.19 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.7414, allocations: 4 kB / 1.366 GB, free: 12.19 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.668e-06/0.7414, allocations: 7.938 kB / 1.366 GB, free: 12.18 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.7414, allocations: 0 / 1.366 GB, free: 12.18 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.053e-05/0.7414, allocations: 19.92 kB / 1.366 GB, free: 12.16 MB / 1.092 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001616/0.7416, allocations: 173.5 kB / 1.366 GB, free: 11.94 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 7.647e-05/0.7417, allocations: 46.56 kB / 1.366 GB, free: 11.89 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.031e-05/0.7417, allocations: 24.83 kB / 1.366 GB, free: 11.86 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 6.673e-06/0.7417, allocations: 0 / 1.366 GB, free: 11.86 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.7418, allocations: 38.56 kB / 1.366 GB, free: 11.81 MB / 1.092 GB Notification: Performance of pre-optimization done (n=7): time 6.71e-07/0.7418, allocations: 0 / 1.366 GB, free: 11.81 MB / 1.092 GB Notification: Performance of matching and sorting (n=11): time 0.0006206/0.7424, allocations: 374.3 kB / 1.367 GB, free: 11.39 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.377e-05/0.7424, allocations: 51.41 kB / 1.367 GB, free: 11.33 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.681e-05/0.7425, allocations: 93.84 kB / 1.367 GB, free: 11.23 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.7425, allocations: 37.83 kB / 1.367 GB, free: 11.19 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 2.919e-05/0.7426, allocations: 84.08 kB / 1.367 GB, free: 11.1 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 3.872e-05/0.7426, allocations: 39.64 kB / 1.367 GB, free: 11.06 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.897e-05/0.7427, allocations: 29.72 kB / 1.367 GB, free: 11.03 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001149/0.7428, allocations: 322.8 kB / 1.367 GB, free: 10.7 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.082e-05/0.7428, allocations: 16 kB / 1.367 GB, free: 10.69 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.693e-05/0.7429, allocations: 39.45 kB / 1.367 GB, free: 10.64 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.214e-05/0.743, allocations: 70.11 kB / 1.367 GB, free: 10.57 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.41e-07/0.743, allocations: 0 / 1.367 GB, free: 10.57 MB / 1.092 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001201/0.7431, allocations: 93.67 kB / 1.367 GB, free: 10.47 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/0.7431, allocations: 8 kB / 1.367 GB, free: 10.46 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.055e-06/0.7431, allocations: 0 / 1.367 GB, free: 10.46 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.616e-06/0.7431, allocations: 0 / 1.367 GB, free: 10.46 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.64e-05/0.7432, allocations: 27.92 kB / 1.367 GB, free: 10.44 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.7432, allocations: 0 / 1.367 GB, free: 10.44 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.592e-05/0.7433, allocations: 0 / 1.367 GB, free: 10.44 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.071e-05/0.7433, allocations: 11.94 kB / 1.367 GB, free: 10.43 MB / 1.092 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.278e-05/0.7434, allocations: 117.8 kB / 1.368 GB, free: 10.3 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.605e-05/0.7434, allocations: 11.95 kB / 1.368 GB, free: 10.29 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.779e-05/0.7434, allocations: 7.969 kB / 1.368 GB, free: 10.28 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-06/0.7434, allocations: 0 / 1.368 GB, free: 10.28 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.7434, allocations: 0 / 1.368 GB, free: 10.28 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.7434, allocations: 3.984 kB / 1.368 GB, free: 10.28 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001227/0.7435, allocations: 177.5 kB / 1.368 GB, free: 10.05 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.7436, allocations: 0 / 1.368 GB, free: 10.05 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.7437, allocations: 23.98 kB / 1.368 GB, free: 10.03 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.7437, allocations: 8 kB / 1.368 GB, free: 10.02 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.482e-06/0.7437, allocations: 0 / 1.368 GB, free: 10.02 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.7437, allocations: 0 / 1.368 GB, free: 10.02 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.7437, allocations: 0 / 1.368 GB, free: 10.02 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001762/0.7439, allocations: 140.9 kB / 1.368 GB, free: 9.867 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 5.813e-05/0.7439, allocations: 81.11 kB / 1.368 GB, free: 9.77 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.243e-05/0.744, allocations: 0 / 1.368 GB, free: 9.77 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.45e-05/0.744, allocations: 15.97 kB / 1.368 GB, free: 9.754 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.166e-05/0.7441, allocations: 4 kB / 1.368 GB, free: 9.75 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.314e-06/0.7441, allocations: 4 kB / 1.368 GB, free: 9.746 MB / 1.092 GB Notification: Performance of sorting global known variables: time 3.728e-05/0.7441, allocations: 83.2 kB / 1.368 GB, free: 9.664 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7441, allocations: 0 / 1.368 GB, free: 9.664 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.0001688/0.7443, allocations: 16 kB / 1.368 GB, free: 9.648 MB / 1.092 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.0004034/0.7447, allocations: 0.6716 MB / 1.369 GB, free: 8.945 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.0001066/0.7448, allocations: 55.95 kB / 1.369 GB, free: 8.891 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.7448, allocations: 3.938 kB / 1.369 GB, free: 8.887 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 3.563e-05/0.7449, allocations: 27.94 kB / 1.369 GB, free: 8.859 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001769/0.745, allocations: 7.984 kB / 1.369 GB, free: 8.852 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.7463, allocations: 1.453 MB / 1.37 GB, free: 7.312 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000254/0.7465, allocations: 0.6923 MB / 1.371 GB, free: 6.594 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 4.73e-05/0.7466, allocations: 8.672 kB / 1.371 GB, free: 6.586 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.458e-05/0.7466, allocations: 19.42 kB / 1.371 GB, free: 6.566 MB / 1.092 GB Notification: Performance of SimCode: time 2.1e-07/0.7466, allocations: 4 kB / 1.371 GB, free: 6.562 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.203/3.949, allocations: 1.687 MB / 1.373 GB, free: 5.012 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.34/14.29, allocations: 19.05 kB / 1.373 GB, free: 4.996 MB / 1.092 GB (rm -f Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat --tempDir=temp_Buildings_11_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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