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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001558/0.001558, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001828/0.001828, allocations: 191.8 kB / 16.25 MB, free: 6.625 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.287/1.287, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.21/2.21, allocations: 437.1 MB / 0.7101 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 63.91 kB / 0.8689 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4646/0.4657, allocations: 151.6 MB / 1.017 GB, free: 2.684 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001822/0.4676, allocations: 1.342 MB / 1.018 GB, free: 1.332 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.1232/0.5908, allocations: 144.8 MB / 1.16 GB, free: 15.93 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.545e-05/0.5909, allocations: 0 / 1.16 GB, free: 15.93 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.979e-05/0.591, allocations: 3.984 kB / 1.16 GB, free: 15.93 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.725e-05/0.591, allocations: 3.938 kB / 1.16 GB, free: 15.93 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003646/0.5914, allocations: 79.7 kB / 1.16 GB, free: 15.85 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.223e-05/0.5914, allocations: 47.77 kB / 1.16 GB, free: 15.8 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.003e-05/0.5915, allocations: 8 kB / 1.16 GB, free: 15.79 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.419e-05/0.5915, allocations: 8 kB / 1.16 GB, free: 15.79 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.645e-05/0.5916, allocations: 19.91 kB / 1.16 GB, free: 15.77 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 9.007e-06/0.5916, allocations: 0 / 1.16 GB, free: 15.77 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002297/0.5918, allocations: 75.83 kB / 1.16 GB, free: 15.69 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.271e-05/0.5918, allocations: 7.984 kB / 1.16 GB, free: 15.68 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.481e-05/0.5919, allocations: 15.94 kB / 1.16 GB, free: 15.67 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001301/0.592, allocations: 66.12 kB / 1.16 GB, free: 15.61 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.592, allocations: 0 / 1.16 GB, free: 15.61 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.102e-06/0.592, allocations: 0 / 1.16 GB, free: 15.61 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.592, allocations: 4 kB / 1.16 GB, free: 15.6 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.0003468/0.5924, allocations: 359.4 kB / 1.16 GB, free: 15.2 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.5924, allocations: 8.031 kB / 1.16 GB, free: 15.2 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.149e-05/0.5925, allocations: 38.69 kB / 1.16 GB, free: 15.15 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001683/0.5926, allocations: 8.938 kB / 1.16 GB, free: 15.14 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.255e-05/0.5927, allocations: 172.1 kB / 1.161 GB, free: 14.93 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.5928, allocations: 4 kB / 1.161 GB, free: 14.93 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.221e-05/0.5928, allocations: 7.906 kB / 1.161 GB, free: 14.92 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001029/0.5929, allocations: 53.69 kB / 1.161 GB, free: 14.86 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.891e-06/0.5929, allocations: 3.938 kB / 1.161 GB, free: 14.86 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.5929, allocations: 0 / 1.161 GB, free: 14.86 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.5929, allocations: 4 kB / 1.161 GB, free: 14.86 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.44e-05/0.593, allocations: 19.97 kB / 1.161 GB, free: 14.84 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001508/0.5931, allocations: 169.5 kB / 1.161 GB, free: 14.62 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 7.712e-05/0.5932, allocations: 50.5 kB / 1.161 GB, free: 14.56 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.221e-05/0.5933, allocations: 20.86 kB / 1.161 GB, free: 14.54 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.103e-05/0.5933, allocations: 0 / 1.161 GB, free: 14.54 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.116e-05/0.5933, allocations: 34.55 kB / 1.161 GB, free: 14.5 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 8.62e-07/0.5933, allocations: 0 / 1.161 GB, free: 14.5 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0006347/0.594, allocations: 366.3 kB / 1.161 GB, free: 14.09 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/0.594, allocations: 59.34 kB / 1.161 GB, free: 14.02 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.2e-05/0.5941, allocations: 97.86 kB / 1.161 GB, free: 13.91 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.5941, allocations: 25.7 kB / 1.161 GB, free: 13.88 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 2.863e-05/0.5941, allocations: 84.14 kB / 1.162 GB, free: 13.79 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.577e-05/0.5942, allocations: 39.45 kB / 1.162 GB, free: 13.75 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.905e-05/0.5942, allocations: 29.7 kB / 1.162 GB, free: 13.72 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.383e-05/0.5943, allocations: 314.8 kB / 1.162 GB, free: 13.4 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.49e-05/0.5943, allocations: 23.98 kB / 1.162 GB, free: 13.38 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.826e-05/0.5944, allocations: 41.77 kB / 1.162 GB, free: 13.33 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.274e-05/0.5945, allocations: 58.25 kB / 1.162 GB, free: 13.27 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.72e-07/0.5945, allocations: 0 / 1.162 GB, free: 13.27 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001186/0.5946, allocations: 97.59 kB / 1.162 GB, free: 13.17 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.5946, allocations: 5.406 kB / 1.162 GB, free: 13.16 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.5946, allocations: 4 kB / 1.162 GB, free: 13.16 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.719e-06/0.5946, allocations: 0 / 1.162 GB, free: 13.16 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.5947, allocations: 19.94 kB / 1.162 GB, free: 13.14 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.5948, allocations: 7.984 kB / 1.162 GB, free: 13.13 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.06e-05/0.5948, allocations: 8 kB / 1.162 GB, free: 13.12 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-06/0.5948, allocations: 7.938 kB / 1.162 GB, free: 13.12 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 6.552e-05/0.5949, allocations: 114.4 kB / 1.162 GB, free: 13 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.371e-05/0.5949, allocations: 3.906 kB / 1.162 GB, free: 12.99 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.096e-05/0.5949, allocations: 11.97 kB / 1.162 GB, free: 12.98 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.595, allocations: 7.984 kB / 1.162 GB, free: 12.97 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.595, allocations: 4 kB / 1.162 GB, free: 12.97 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.595, allocations: 0 / 1.162 GB, free: 12.97 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001134/0.5951, allocations: 181.5 kB / 1.162 GB, free: 12.74 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.5951, allocations: 4 kB / 1.162 GB, free: 12.74 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000112/0.5952, allocations: 23.92 kB / 1.162 GB, free: 12.71 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.5952, allocations: 0 / 1.162 GB, free: 12.71 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.5952, allocations: 4 kB / 1.162 GB, free: 12.71 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.5952, allocations: 0 / 1.162 GB, free: 12.71 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.5952, allocations: 0 / 1.162 GB, free: 12.71 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001752/0.5954, allocations: 136.9 kB / 1.163 GB, free: 12.56 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.433e-05/0.5955, allocations: 81.14 kB / 1.163 GB, free: 12.46 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.51e-05/0.5955, allocations: 12 kB / 1.163 GB, free: 12.45 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.914e-05/0.5956, allocations: 0 / 1.163 GB, free: 12.45 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.901e-05/0.5956, allocations: 7.984 kB / 1.163 GB, free: 12.44 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-06/0.5956, allocations: 8 kB / 1.163 GB, free: 12.43 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.329e-05/0.5957, allocations: 79.22 kB / 1.163 GB, free: 12.36 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5957, allocations: 0 / 1.163 GB, free: 12.36 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0001852/0.5959, allocations: 16 kB / 1.163 GB, free: 12.34 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.0003713/0.5962, allocations: 0.6789 MB / 1.163 GB, free: 11.63 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001146/0.5964, allocations: 55.97 kB / 1.164 GB, free: 11.58 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.5964, allocations: 0 / 1.164 GB, free: 11.58 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 3.689e-05/0.5964, allocations: 27.92 kB / 1.164 GB, free: 11.55 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001942/0.5966, allocations: 8 kB / 1.164 GB, free: 11.54 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001189/0.5978, allocations: 1.47 MB / 1.165 GB, free: 9.988 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002102/0.598, allocations: 0.6885 MB / 1.166 GB, free: 9.273 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 6.499e-05/0.5981, allocations: 12.66 kB / 1.166 GB, free: 9.262 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.62e-05/0.5982, allocations: 15.44 kB / 1.166 GB, free: 9.246 MB / 0.92 GB Notification: Performance of SimCode: time 2.01e-07/0.5982, allocations: 0 / 1.166 GB, free: 9.246 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9592/1.557, allocations: 1.575 MB / 1.167 GB, free: 7.832 MB / 0.92 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003197/1.558, allocations: 224 kB / 1.167 GB, free: 7.578 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.538/3.095, allocations: 0 / 1.167 GB, free: 7.578 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