Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_latest_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.007333/0.007333, allocations: 99.98 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.001829/0.001829, allocations: 187.6 kB / 16.67 MB, free: 5.93 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.285/1.285, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.561/2.561, allocations: 469.4 MB / 0.7422 GB, free: 3.492 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 71.89 kB / 1.064 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6455/0.6468, allocations: 159.1 MB / 1.22 GB, free: 2.316 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002113/0.6489, allocations: 1.279 MB / 1.221 GB, free: 1.027 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.1398/0.7888, allocations: 147 MB / 1.365 GB, free: 13.45 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.008e-05/0.7888, allocations: 0 / 1.365 GB, free: 13.45 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 1.997e-05/0.7889, allocations: 3.938 kB / 1.365 GB, free: 13.44 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 5.184e-05/0.789, allocations: 0 / 1.365 GB, free: 13.44 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004388/0.7894, allocations: 99.5 kB / 1.365 GB, free: 13.34 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 7.658e-05/0.7895, allocations: 43.77 kB / 1.365 GB, free: 13.3 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 3.378e-05/0.7895, allocations: 4 kB / 1.365 GB, free: 13.3 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 3.989e-05/0.7896, allocations: 12 kB / 1.365 GB, free: 13.29 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 5.664e-05/0.7896, allocations: 19.91 kB / 1.365 GB, free: 13.27 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 1.263e-05/0.7897, allocations: 4 kB / 1.365 GB, free: 13.26 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002509/0.7899, allocations: 75.83 kB / 1.365 GB, free: 13.19 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 1.598e-05/0.7899, allocations: 7.984 kB / 1.365 GB, free: 13.18 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 3.062e-05/0.79, allocations: 19.86 kB / 1.365 GB, free: 13.16 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.0001472/0.7901, allocations: 67.55 kB / 1.365 GB, free: 13.1 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.7901, allocations: 0 / 1.365 GB, free: 13.1 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.152e-06/0.7901, allocations: 0 / 1.365 GB, free: 13.1 MB / 1.092 GB Notification: Performance of Transformations before backend: time 7.885e-06/0.7902, allocations: 0 / 1.365 GB, free: 13.1 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.000347/0.7905, allocations: 351.3 kB / 1.365 GB, free: 12.71 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.7906, allocations: 12.62 kB / 1.365 GB, free: 12.7 MB / 1.092 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.722e-05/0.7906, allocations: 34.75 kB / 1.365 GB, free: 12.65 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001917/0.7908, allocations: 16.88 kB / 1.365 GB, free: 12.64 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.878e-05/0.7909, allocations: 168.1 kB / 1.365 GB, free: 12.43 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.7909, allocations: 8 kB / 1.365 GB, free: 12.43 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.342e-05/0.7909, allocations: 8 kB / 1.365 GB, free: 12.42 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001152/0.7911, allocations: 49.67 kB / 1.365 GB, free: 12.36 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.7911, allocations: 0 / 1.365 GB, free: 12.36 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.7911, allocations: 0 / 1.365 GB, free: 12.36 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.7911, allocations: 0 / 1.365 GB, free: 12.36 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.55e-05/0.7912, allocations: 19.92 kB / 1.365 GB, free: 12.34 MB / 1.092 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000162/0.7913, allocations: 173.5 kB / 1.366 GB, free: 12.12 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 9.159e-05/0.7914, allocations: 54.5 kB / 1.366 GB, free: 12.06 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.921e-05/0.7915, allocations: 16.84 kB / 1.366 GB, free: 12.04 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 1.254e-05/0.7915, allocations: 3.984 kB / 1.366 GB, free: 12.04 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/0.7915, allocations: 38.56 kB / 1.366 GB, free: 11.99 MB / 1.092 GB Notification: Performance of pre-optimization done (n=7): time 1.022e-06/0.7915, allocations: 0 / 1.366 GB, free: 11.99 MB / 1.092 GB Notification: Performance of matching and sorting (n=11): time 0.0007315/0.7922, allocations: 378.3 kB / 1.366 GB, free: 11.57 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.558e-05/0.7923, allocations: 51.41 kB / 1.366 GB, free: 11.51 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.449e-05/0.7924, allocations: 93.86 kB / 1.366 GB, free: 11.41 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.7924, allocations: 29.7 kB / 1.366 GB, free: 11.37 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 2.412e-05/0.7924, allocations: 84.12 kB / 1.366 GB, free: 11.29 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 4.034e-05/0.7925, allocations: 35.66 kB / 1.366 GB, free: 11.25 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.377e-05/0.7925, allocations: 33.7 kB / 1.366 GB, free: 11.21 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 9.068e-05/0.7926, allocations: 322.9 kB / 1.367 GB, free: 10.89 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.473e-05/0.7926, allocations: 19.98 kB / 1.367 GB, free: 10.87 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.72e-05/0.7927, allocations: 37.7 kB / 1.367 GB, free: 10.82 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.557e-05/0.7928, allocations: 57.72 kB / 1.367 GB, free: 10.76 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.7928, allocations: 0 / 1.367 GB, free: 10.76 MB / 1.092 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001334/0.7929, allocations: 101.5 kB / 1.367 GB, free: 10.66 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.793, allocations: 4 kB / 1.367 GB, free: 10.65 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.793, allocations: 0.7031 kB / 1.367 GB, free: 10.65 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.793, allocations: 0 / 1.367 GB, free: 10.65 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.7931, allocations: 35.92 kB / 1.367 GB, free: 10.62 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.7931, allocations: 0 / 1.367 GB, free: 10.62 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.364e-05/0.7932, allocations: 3.938 kB / 1.367 GB, free: 10.61 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.7932, allocations: 7.938 kB / 1.367 GB, free: 10.61 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.586e-05/0.7933, allocations: 114.4 kB / 1.367 GB, free: 10.48 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.815e-05/0.7933, allocations: 7.953 kB / 1.367 GB, free: 10.48 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.174e-05/0.7933, allocations: 11.97 kB / 1.367 GB, free: 10.46 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.7933, allocations: 0 / 1.367 GB, free: 10.46 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.7933, allocations: 0 / 1.367 GB, free: 10.46 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.7933, allocations: 4 kB / 1.367 GB, free: 10.46 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001162/0.7935, allocations: 177.6 kB / 1.367 GB, free: 10.24 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.7935, allocations: 0 / 1.367 GB, free: 10.24 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000129/0.7936, allocations: 27.92 kB / 1.367 GB, free: 10.21 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.7936, allocations: 0 / 1.367 GB, free: 10.21 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-06/0.7936, allocations: 4 kB / 1.367 GB, free: 10.21 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.7936, allocations: 0 / 1.367 GB, free: 10.21 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.7936, allocations: 0 / 1.367 GB, free: 10.21 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001931/0.7938, allocations: 136.9 kB / 1.367 GB, free: 10.05 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 6.11e-05/0.7939, allocations: 89.14 kB / 1.368 GB, free: 9.949 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.469e-05/0.7939, allocations: 0 / 1.368 GB, free: 9.949 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.798e-05/0.794, allocations: 4 kB / 1.368 GB, free: 9.945 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.009e-05/0.794, allocations: 11.98 kB / 1.368 GB, free: 9.934 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.743e-06/0.7941, allocations: 0 / 1.368 GB, free: 9.934 MB / 1.092 GB Notification: Performance of sorting global known variables: time 3.282e-05/0.7941, allocations: 83.22 kB / 1.368 GB, free: 9.852 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7941, allocations: 0 / 1.368 GB, free: 9.852 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.000211/0.7943, allocations: 16 kB / 1.368 GB, free: 9.836 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.0003894/0.7947, allocations: 0.671 MB / 1.368 GB, free: 9.133 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.0001247/0.7949, allocations: 59.95 kB / 1.368 GB, free: 9.074 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.7949, allocations: 0 / 1.368 GB, free: 9.074 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 4.067e-05/0.7949, allocations: 31.92 kB / 1.368 GB, free: 9.043 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000229/0.7951, allocations: 8 kB / 1.368 GB, free: 9.035 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00125/0.7964, allocations: 1.458 MB / 1.37 GB, free: 7.492 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002067/0.7966, allocations: 0.6924 MB / 1.371 GB, free: 6.773 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 5.747e-05/0.7967, allocations: 12.61 kB / 1.371 GB, free: 6.762 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.94e-05/0.7967, allocations: 15.44 kB / 1.371 GB, free: 6.746 MB / 1.092 GB Notification: Performance of SimCode: time 3.5e-07/0.7967, allocations: 0 / 1.371 GB, free: 6.746 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0164/0.8131, allocations: 1.697 MB / 1.372 GB, free: 5.188 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.097/7.91, allocations: 5.906 kB / 1.372 GB, free: 5.184 MB / 1.092 GB (rm -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches