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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.008849/0.008849, allocations: 98.09 kB / 15.73 MB, free: 6.047 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.001837/0.001837, allocations: 197.5 kB / 16.67 MB, free: 5.977 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.35/2.35, allocations: 390.2 MB / 0.6648 GB, free: 252 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 65.62 kB / 0.9504 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2791, allocations: 140.4 MB / 1.087 GB, free: 2.062 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002393/0.2815, allocations: 1.27 MB / 1.089 GB, free: 0.7812 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.1487/0.4302, allocations: 147 MB / 1.232 GB, free: 13.19 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.343e-05/0.4303, allocations: 0 / 1.232 GB, free: 13.19 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.756e-05/0.4304, allocations: 3.938 kB / 1.232 GB, free: 13.19 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.456e-05/0.4305, allocations: 0 / 1.232 GB, free: 13.19 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004789/0.431, allocations: 99.53 kB / 1.232 GB, free: 13.09 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 7.374e-05/0.4311, allocations: 31.86 kB / 1.232 GB, free: 13.06 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.308e-05/0.4311, allocations: 4 kB / 1.232 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.205e-05/0.4312, allocations: 15.97 kB / 1.232 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.522e-05/0.4312, allocations: 15.94 kB / 1.232 GB, free: 13.02 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.12e-05/0.4312, allocations: 0 / 1.232 GB, free: 13.02 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002486/0.4315, allocations: 83.81 kB / 1.232 GB, free: 12.94 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.233e-05/0.4315, allocations: 0 / 1.232 GB, free: 12.94 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.238e-05/0.4316, allocations: 19.92 kB / 1.233 GB, free: 12.92 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001597/0.4317, allocations: 66.69 kB / 1.233 GB, free: 12.86 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.4317, allocations: 0 / 1.233 GB, free: 12.86 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.433e-06/0.4317, allocations: 0 / 1.233 GB, free: 12.86 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.003e-05/0.4318, allocations: 0 / 1.233 GB, free: 12.86 MB / 0.9981 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.0003696/0.4321, allocations: 364.3 kB / 1.233 GB, free: 12.46 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.4322, allocations: 11.97 kB / 1.233 GB, free: 12.45 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.454e-05/0.4322, allocations: 30.75 kB / 1.233 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001948/0.4324, allocations: 16.83 kB / 1.233 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.588e-05/0.4325, allocations: 172.1 kB / 1.233 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.4325, allocations: 0 / 1.233 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.125e-05/0.4326, allocations: 4 kB / 1.233 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001144/0.4327, allocations: 57.67 kB / 1.233 GB, free: 12.12 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.4327, allocations: 0 / 1.233 GB, free: 12.12 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.4327, allocations: 0 / 1.233 GB, free: 12.12 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.4327, allocations: 0 / 1.233 GB, free: 12.12 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.965e-05/0.4328, allocations: 23.92 kB / 1.233 GB, free: 12.09 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001632/0.4329, allocations: 161.6 kB / 1.233 GB, free: 11.89 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 8.575e-05/0.433, allocations: 50.55 kB / 1.233 GB, free: 11.83 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.846e-05/0.4331, allocations: 16.84 kB / 1.233 GB, free: 11.81 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.155e-05/0.4331, allocations: 8 kB / 1.233 GB, free: 11.8 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.493e-05/0.4331, allocations: 34.56 kB / 1.233 GB, free: 11.76 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.4331, allocations: 0 / 1.233 GB, free: 11.76 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11): time 0.0007131/0.4338, allocations: 374.2 kB / 1.234 GB, free: 11.34 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.32e-05/0.4339, allocations: 55.34 kB / 1.234 GB, free: 11.27 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.468e-05/0.434, allocations: 105.8 kB / 1.234 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.434, allocations: 29.7 kB / 1.234 GB, free: 11.12 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.704e-05/0.434, allocations: 80.14 kB / 1.234 GB, free: 11.04 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.857e-05/0.4341, allocations: 39.39 kB / 1.234 GB, free: 11 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.365e-05/0.4341, allocations: 29.72 kB / 1.234 GB, free: 10.97 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001024/0.4342, allocations: 322.8 kB / 1.234 GB, free: 10.64 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.357e-05/0.4342, allocations: 16 kB / 1.234 GB, free: 10.63 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.714e-05/0.4343, allocations: 42.69 kB / 1.235 GB, free: 10.58 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.345e-05/0.4344, allocations: 61.64 kB / 1.235 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.31e-07/0.4344, allocations: 0 / 1.235 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001279/0.4345, allocations: 94.2 kB / 1.235 GB, free: 10.42 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.4346, allocations: 4 kB / 1.235 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.4346, allocations: 0 / 1.235 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.4346, allocations: 4 kB / 1.235 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.4347, allocations: 27.92 kB / 1.235 GB, free: 10.38 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.4347, allocations: 0 / 1.235 GB, free: 10.38 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.163e-05/0.4348, allocations: 4 kB / 1.235 GB, free: 10.38 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.285e-06/0.4348, allocations: 11.94 kB / 1.235 GB, free: 10.37 MB / 0.9981 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.373e-05/0.4348, allocations: 109.8 kB / 1.235 GB, free: 10.25 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.602e-05/0.4349, allocations: 4 kB / 1.235 GB, free: 10.25 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.209e-05/0.4349, allocations: 11.97 kB / 1.235 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.92e-06/0.4349, allocations: 4 kB / 1.235 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.4349, allocations: 3.984 kB / 1.235 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.4349, allocations: 0 / 1.235 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001181/0.4351, allocations: 165.6 kB / 1.235 GB, free: 10.02 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.4351, allocations: 3.938 kB / 1.235 GB, free: 10.01 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001217/0.4352, allocations: 31.92 kB / 1.235 GB, free: 9.984 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.4352, allocations: 0 / 1.235 GB, free: 9.984 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.4352, allocations: 4 kB / 1.235 GB, free: 9.98 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.4352, allocations: 4.078 kB / 1.235 GB, free: 9.977 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.4352, allocations: 3.984 kB / 1.235 GB, free: 9.973 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000195/0.4354, allocations: 132.9 kB / 1.235 GB, free: 9.824 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.887e-05/0.4355, allocations: 85.11 kB / 1.235 GB, free: 9.723 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.4355, allocations: 48 / 1.235 GB, free: 9.723 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.597e-05/0.4356, allocations: 11.98 kB / 1.235 GB, free: 9.711 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.815e-05/0.4356, allocations: 12.02 kB / 1.235 GB, free: 9.699 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.452e-05/0.4357, allocations: 8 kB / 1.235 GB, free: 9.691 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.705e-05/0.4357, allocations: 83.2 kB / 1.235 GB, free: 9.609 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4357, allocations: 0 / 1.235 GB, free: 9.609 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001987/0.4359, allocations: 16 kB / 1.235 GB, free: 9.594 MB / 0.9981 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.0004234/0.4364, allocations: 0.6671 MB / 1.236 GB, free: 8.895 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001675/0.4365, allocations: 59.95 kB / 1.236 GB, free: 8.836 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4365, allocations: 0 / 1.236 GB, free: 8.836 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 4.198e-05/0.4366, allocations: 27.94 kB / 1.236 GB, free: 8.809 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002365/0.4368, allocations: 15.61 kB / 1.236 GB, free: 8.797 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001291/0.4381, allocations: 1.451 MB / 1.238 GB, free: 7.262 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002508/0.4384, allocations: 0.6962 MB / 1.238 GB, free: 6.539 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 5.375e-05/0.4385, allocations: 4.672 kB / 1.238 GB, free: 6.535 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.332e-05/0.4385, allocations: 23.42 kB / 1.238 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of SimCode: time 4.11e-07/0.4385, allocations: 0 / 1.238 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01798/0.4565, allocations: 1.686 MB / 1.24 GB, free: 4.941 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.765/8.222, allocations: 11.12 kB / 1.24 GB, free: 4.934 MB / 0.9981 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[2]=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