Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.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.Examples.AirDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Examples_AirDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.AirDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Examples_AirDerivativeCheck",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.001238/0.001238, 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.001267/0.001267, allocations: 189.7 kB / 16.25 MB, free: 6.629 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.269/1.269, allocations: 222.9 MB / 239.9 MB, free: 4.516 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.125/2.125, allocations: 390.2 MB / 0.6644 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 67.89 kB / 0.8121 GB, free: 14.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5231/0.5246, allocations: 140.4 MB / 0.9492 GB, free: 9.066 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.001844/0.5264, allocations: 1.387 MB / 0.9506 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1301/0.6565, allocations: 145.9 MB / 1.093 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.598e-05/0.6566, allocations: 0 / 1.093 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.006e-05/0.6567, allocations: 7.922 kB / 1.093 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.867e-05/0.6568, allocations: 15.92 kB / 1.093 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009317/0.6577, allocations: 290.9 kB / 1.093 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.299e-05/0.6578, allocations: 71.75 kB / 1.093 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 2.973e-05/0.6579, allocations: 4 kB / 1.093 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.025e-05/0.6579, allocations: 31.91 kB / 1.094 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.713e-05/0.658, allocations: 35.89 kB / 1.094 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.108e-05/0.658, allocations: 4 kB / 1.094 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007394/0.6588, allocations: 438.8 kB / 1.094 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.979e-05/0.6588, allocations: 19.86 kB / 1.094 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.411e-05/0.6589, allocations: 27.91 kB / 1.094 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003516/0.6592, allocations: 181.8 kB / 1.094 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.6593, allocations: 0 / 1.094 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.362e-06/0.6593, allocations: 0 / 1.094 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 3.927e-06/0.6593, allocations: 0 / 1.094 GB, free: 13.05 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000423/0.6597, allocations: 395.3 kB / 1.095 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.6598, allocations: 16.03 kB / 1.095 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.486e-05/0.6598, allocations: 38.69 kB / 1.095 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003854/0.6602, allocations: 44.75 kB / 1.095 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.116e-05/0.6603, allocations: 168.1 kB / 1.095 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.6603, allocations: 4 kB / 1.095 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.812e-05/0.6603, allocations: 8 kB / 1.095 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001488/0.6605, allocations: 73.66 kB / 1.095 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.6605, allocations: 0 / 1.095 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.498e-05/0.6605, allocations: 7.984 kB / 1.095 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.6605, allocations: 4 kB / 1.095 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.467e-05/0.6606, allocations: 43.91 kB / 1.095 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001768/0.6608, allocations: 197.4 kB / 1.095 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001513/0.661, allocations: 86.69 kB / 1.095 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.888e-05/0.661, allocations: 33.17 kB / 1.095 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002169/0.6612, allocations: 190.1 kB / 1.095 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.542e-05/0.6613, allocations: 30.56 kB / 1.095 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.132e-06/0.6613, allocations: 3.938 kB / 1.095 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19): time 0.001176/0.6625, allocations: 0.5381 MB / 1.096 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.674e-05/0.6625, allocations: 55.41 kB / 1.096 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.296e-05/0.6626, allocations: 101.8 kB / 1.096 GB, free: 10.76 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.897e-05/0.6626, allocations: 29.7 kB / 1.096 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.179e-05/0.6626, allocations: 80.52 kB / 1.096 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.295e-05/0.6627, allocations: 70.98 kB / 1.096 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.124e-05/0.6627, allocations: 45.7 kB / 1.096 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.853e-05/0.6628, allocations: 319 kB / 1.097 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.79e-05/0.6629, allocations: 35.97 kB / 1.097 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.72e-05/0.663, allocations: 71.34 kB / 1.097 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001379/0.6631, allocations: 115.4 kB / 1.097 GB, free: 9.961 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.6631, allocations: 0 / 1.097 GB, free: 9.961 MB / 0.8575 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002021/0.6633, allocations: 157.4 kB / 1.097 GB, free: 9.801 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.6633, allocations: 9.406 kB / 1.097 GB, free: 9.793 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.6634, allocations: 0 / 1.097 GB, free: 9.793 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.6634, allocations: 4 kB / 1.097 GB, free: 9.789 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.6635, allocations: 39.92 kB / 1.097 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.6635, allocations: 3.938 kB / 1.097 GB, free: 9.746 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.341e-05/0.6636, allocations: 8 kB / 1.097 GB, free: 9.738 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.6636, allocations: 8 kB / 1.097 GB, free: 9.73 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (24): * Single equations (assignments): 24 * 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.64e-05/0.6637, allocations: 117.8 kB / 1.097 GB, free: 9.605 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.165e-05/0.6637, allocations: 15.89 kB / 1.097 GB, free: 9.59 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.437e-05/0.6638, allocations: 20.44 kB / 1.097 GB, free: 9.566 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.6638, allocations: 128 / 1.097 GB, free: 9.566 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.6638, allocations: 11.88 kB / 1.097 GB, free: 9.555 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.6638, allocations: 0 / 1.097 GB, free: 9.555 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.6639, allocations: 197.6 kB / 1.097 GB, free: 9.312 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.664, allocations: 0 / 1.097 GB, free: 9.312 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001819/0.6641, allocations: 35.98 kB / 1.097 GB, free: 9.277 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.6641, allocations: 0 / 1.097 GB, free: 9.277 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.6642, allocations: 8 kB / 1.097 GB, free: 9.27 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.6642, allocations: 3.984 kB / 1.097 GB, free: 9.266 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.6642, allocations: 11.88 kB / 1.097 GB, free: 9.254 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000265/0.6644, allocations: 211.6 kB / 1.098 GB, free: 9.031 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.102e-05/0.6645, allocations: 93 kB / 1.098 GB, free: 8.922 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.628e-05/0.6645, allocations: 0 / 1.098 GB, free: 8.922 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001226/0.6647, allocations: 12.05 kB / 1.098 GB, free: 8.91 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.55e-05/0.6647, allocations: 11.92 kB / 1.098 GB, free: 8.898 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.6647, allocations: 8 kB / 1.098 GB, free: 8.891 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.715e-05/0.6647, allocations: 83.28 kB / 1.098 GB, free: 8.809 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.6648, allocations: 0 / 1.098 GB, free: 8.809 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002115/0.665, allocations: 28 kB / 1.098 GB, free: 8.781 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (hLiqSym,hSteSym,hAirSym,cpSym,cvSym) * 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 (19): * Single equations (assignments): 19 * 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.0004853/0.6655, allocations: 0.7388 MB / 1.099 GB, free: 8.016 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001946/0.6657, allocations: 130.3 kB / 1.099 GB, free: 7.891 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.6657, allocations: 0 / 1.099 GB, free: 7.891 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 6.548e-05/0.6657, allocations: 55.91 kB / 1.099 GB, free: 7.836 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002326/0.666, allocations: 15.94 kB / 1.099 GB, free: 7.82 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001559/0.6676, allocations: 1.84 MB / 1.101 GB, free: 5.883 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001941/0.6678, allocations: 0.7047 MB / 1.101 GB, free: 5.152 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001243/0.6679, allocations: 24.64 kB / 1.101 GB, free: 5.129 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.789e-05/0.6679, allocations: 23.44 kB / 1.101 GB, free: 5.105 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.668, allocations: 0 / 1.101 GB, free: 5.105 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.786/2.454, allocations: 2.301 MB / 1.104 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001876/2.454, allocations: 186.7 kB / 1.104 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.538/4.992, allocations: 0 / 1.104 GB, free: 2.652 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.AirDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_AirDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Media_Examples_AirDerivativeCheck.fmu > Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.AirDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_AirDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.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(cpSym),der(cpCod),der(cvSym),der(cvCod) Variables in the result:T,X[1],cpCod,cpSym,cvCod,cvSym,der(T),der(X[1]),der(cpCod),der(cpSym),der(cvCod),der(cvSym),der(hAirCod),der(hAirSym),der(hLiqCod),der(hLiqSym),der(hSteCod),der(hSteSym),hAirCod,hAirSym,hLiqCod,hLiqSym,hSteCod,hSteSym,time