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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.002069/0.00208, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.003032/0.003032, allocations: 188.8 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.712/2.712, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 4.05/4.05, allocations: 461.9 MB / 0.7343 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002332/0.002332, allocations: 61.8 kB / 0.8987 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3894/0.3918, allocations: 157.4 MB / 1.052 GB, free: 8.664 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002114/0.3939, allocations: 1.333 MB / 1.054 GB, free: 7.316 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.1394/0.5333, allocations: 144.9 MB / 1.195 GB, free: 5.91 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.548e-05/0.5334, allocations: 0 / 1.195 GB, free: 5.91 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.215e-05/0.5334, allocations: 0 / 1.195 GB, free: 5.91 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 4.516e-05/0.5335, allocations: 3.984 kB / 1.195 GB, free: 5.906 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003859/0.5339, allocations: 87.64 kB / 1.195 GB, free: 5.82 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 5.7e-05/0.5339, allocations: 31.91 kB / 1.195 GB, free: 5.789 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 3.317e-05/0.534, allocations: 4 kB / 1.195 GB, free: 5.785 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 3.586e-05/0.534, allocations: 19.98 kB / 1.195 GB, free: 5.766 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 4.555e-05/0.5341, allocations: 15.91 kB / 1.195 GB, free: 5.75 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 9.157e-06/0.5341, allocations: 3.938 kB / 1.195 GB, free: 5.746 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002066/0.5343, allocations: 75.84 kB / 1.195 GB, free: 5.672 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.554e-05/0.5343, allocations: 15.97 kB / 1.195 GB, free: 5.656 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.142e-05/0.5344, allocations: 7.938 kB / 1.195 GB, free: 5.648 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001289/0.5345, allocations: 68.09 kB / 1.195 GB, free: 5.582 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.5345, allocations: 0 / 1.195 GB, free: 5.582 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.132e-06/0.5345, allocations: 0 / 1.195 GB, free: 5.582 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.198e-06/0.5345, allocations: 7.938 kB / 1.196 GB, free: 5.574 MB / 0.9512 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.0003195/0.5348, allocations: 351.5 kB / 1.196 GB, free: 5.184 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.257e-05/0.5349, allocations: 8.625 kB / 1.196 GB, free: 5.176 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.418e-05/0.5349, allocations: 42.73 kB / 1.196 GB, free: 5.125 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001638/0.5351, allocations: 8.938 kB / 1.196 GB, free: 5.117 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.526e-05/0.5352, allocations: 168 kB / 1.196 GB, free: 4.914 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.5352, allocations: 4 kB / 1.196 GB, free: 4.91 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.823e-05/0.5352, allocations: 4 kB / 1.196 GB, free: 4.906 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001127/0.5353, allocations: 53.67 kB / 1.196 GB, free: 4.848 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-06/0.5354, allocations: 3.938 kB / 1.196 GB, free: 4.844 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.5354, allocations: 4 kB / 1.196 GB, free: 4.84 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.5354, allocations: 0 / 1.196 GB, free: 4.84 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.97e-05/0.5354, allocations: 15.98 kB / 1.196 GB, free: 4.824 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000148/0.5356, allocations: 173.6 kB / 1.196 GB, free: 4.605 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 7.326e-05/0.5357, allocations: 46.56 kB / 1.196 GB, free: 4.551 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.404e-05/0.5357, allocations: 12.86 kB / 1.196 GB, free: 4.535 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.051e-05/0.5357, allocations: 4 kB / 1.196 GB, free: 4.531 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/0.5357, allocations: 38.5 kB / 1.196 GB, free: 4.484 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.5357, allocations: 4 kB / 1.196 GB, free: 4.48 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.0006159/0.5364, allocations: 370.2 kB / 1.197 GB, free: 4.066 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.745e-05/0.5364, allocations: 55.41 kB / 1.197 GB, free: 4 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.536e-05/0.5365, allocations: 93.86 kB / 1.197 GB, free: 3.898 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.859e-05/0.5365, allocations: 33.7 kB / 1.197 GB, free: 3.859 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 2.235e-05/0.5365, allocations: 80.14 kB / 1.197 GB, free: 3.777 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.252e-05/0.5365, allocations: 35.45 kB / 1.197 GB, free: 3.742 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.66e-05/0.5366, allocations: 25.72 kB / 1.197 GB, free: 3.711 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001/0.5367, allocations: 322.8 kB / 1.197 GB, free: 3.387 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.302e-05/0.5367, allocations: 19.98 kB / 1.197 GB, free: 3.367 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.385e-05/0.5368, allocations: 45.83 kB / 1.197 GB, free: 3.316 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.401e-05/0.5369, allocations: 58.19 kB / 1.197 GB, free: 3.254 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/0.5369, allocations: 0 / 1.197 GB, free: 3.254 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001245/0.537, allocations: 101.5 kB / 1.198 GB, free: 3.148 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.537, allocations: 8 kB / 1.198 GB, free: 3.141 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.537, allocations: 0 / 1.198 GB, free: 3.141 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.026e-05/0.537, allocations: 3.984 kB / 1.198 GB, free: 3.137 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.5371, allocations: 23.98 kB / 1.198 GB, free: 3.113 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.498e-06/0.5371, allocations: 0 / 1.198 GB, free: 3.113 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.841e-05/0.5372, allocations: 0 / 1.198 GB, free: 3.113 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/0.5372, allocations: 11.94 kB / 1.198 GB, free: 3.102 MB / 0.9512 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.483e-05/0.5373, allocations: 123.3 kB / 1.198 GB, free: 2.973 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.32e-05/0.5373, allocations: 3.984 kB / 1.198 GB, free: 2.969 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.84e-05/0.5373, allocations: 11.97 kB / 1.198 GB, free: 2.957 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-06/0.5373, allocations: 3.938 kB / 1.198 GB, free: 2.953 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.5373, allocations: 0 / 1.198 GB, free: 2.953 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.5373, allocations: 0 / 1.198 GB, free: 2.953 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001126/0.5375, allocations: 177.6 kB / 1.198 GB, free: 2.73 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.5375, allocations: 0 / 1.198 GB, free: 2.73 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/0.5376, allocations: 20 kB / 1.198 GB, free: 2.711 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.5376, allocations: 0 / 1.198 GB, free: 2.711 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/0.5376, allocations: 11.98 kB / 1.198 GB, free: 2.699 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.5376, allocations: 0 / 1.198 GB, free: 2.699 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.5376, allocations: 0 / 1.198 GB, free: 2.699 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001689/0.5378, allocations: 144 kB / 1.198 GB, free: 2.543 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.142e-05/0.5379, allocations: 81.14 kB / 1.198 GB, free: 2.445 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.327e-05/0.5379, allocations: 4 kB / 1.198 GB, free: 2.441 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.862e-05/0.538, allocations: 8 kB / 1.198 GB, free: 2.434 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.558e-05/0.538, allocations: 7.984 kB / 1.198 GB, free: 2.426 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-06/0.538, allocations: 4 kB / 1.198 GB, free: 2.422 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 2.646e-05/0.538, allocations: 79.22 kB / 1.198 GB, free: 2.344 MB / 0.9512 GB Notification: Performance of sort global known variables: time 9e-08/0.538, allocations: 0 / 1.198 GB, free: 2.344 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0001807/0.5382, allocations: 16 kB / 1.198 GB, free: 2.328 MB / 0.9512 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.0003714/0.5386, allocations: 0.6749 MB / 1.199 GB, free: 1.621 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001238/0.5387, allocations: 59.92 kB / 1.199 GB, free: 1.562 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.5387, allocations: 0 / 1.199 GB, free: 1.562 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 3.532e-05/0.5388, allocations: 31.92 kB / 1.199 GB, free: 1.531 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001973/0.539, allocations: 12.34 kB / 1.199 GB, free: 1.523 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00117/0.5402, allocations: 1.451 MB / 1.2 GB, free: 15.98 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002116/0.5404, allocations: 0.6924 MB / 1.201 GB, free: 15.27 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 6.293e-05/0.5405, allocations: 12.66 kB / 1.201 GB, free: 15.25 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.569e-05/0.5405, allocations: 15.44 kB / 1.201 GB, free: 15.24 MB / 0.9669 GB Notification: Performance of SimCode: time 2.21e-07/0.5405, allocations: 0 / 1.201 GB, free: 15.24 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6331/1.174, allocations: 1.579 MB / 1.203 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000445/1.174, allocations: 229.8 kB / 1.203 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.927/5.102, allocations: 0 / 1.203 GB, free: 13.57 MB / 0.9669 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 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.mat","/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) "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