Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Examples.AirDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Media_Examples_AirDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.AirDerivativeCheck,fileNamePrefix="Buildings_10_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.001422/0.001422, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0016/0.0016, allocations: 194.1 kB / 16.53 MB, free: 6.664 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.251/1.251, allocations: 222.9 MB / 240.2 MB, free: 4.344 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.376/2.376, allocations: 437.1 MB / 0.7104 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 59.91 kB / 0.8693 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5586/0.5601, allocations: 151.6 MB / 1.017 GB, free: 2.477 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.002168/0.5623, allocations: 1.324 MB / 1.019 GB, free: 1.141 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.1394/0.7017, allocations: 148.1 MB / 1.163 GB, free: 12.47 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.436e-05/0.7018, allocations: 0 / 1.163 GB, free: 12.47 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.38e-05/0.7019, allocations: 3.938 kB / 1.163 GB, free: 12.46 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.57e-05/0.702, allocations: 15.91 kB / 1.163 GB, free: 12.45 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008341/0.7028, allocations: 334.6 kB / 1.164 GB, free: 12.12 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 9.739e-05/0.7029, allocations: 63.77 kB / 1.164 GB, free: 12.06 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.038e-05/0.7029, allocations: 7.984 kB / 1.164 GB, free: 12.05 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 4.29e-05/0.703, allocations: 35.84 kB / 1.164 GB, free: 12.02 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.534e-05/0.7031, allocations: 27.91 kB / 1.164 GB, free: 11.99 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.292e-05/0.7031, allocations: 0 / 1.164 GB, free: 11.99 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007357/0.7038, allocations: 418.8 kB / 1.164 GB, free: 11.58 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.567e-05/0.7039, allocations: 11.98 kB / 1.164 GB, free: 11.57 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4e-05/0.704, allocations: 27.86 kB / 1.164 GB, free: 11.54 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002759/0.7042, allocations: 161.9 kB / 1.164 GB, free: 11.38 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.7042, allocations: 0 / 1.164 GB, free: 11.38 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.572e-06/0.7043, allocations: 0 / 1.164 GB, free: 11.38 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.298e-06/0.7043, allocations: 0 / 1.164 GB, free: 11.38 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003887/0.7047, allocations: 393 kB / 1.165 GB, free: 10.95 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.7047, allocations: 8.031 kB / 1.165 GB, free: 10.95 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.139e-05/0.7047, allocations: 42.73 kB / 1.165 GB, free: 10.89 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003684/0.7051, allocations: 32.81 kB / 1.165 GB, free: 10.86 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.174e-05/0.7052, allocations: 172.1 kB / 1.165 GB, free: 10.66 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.828e-06/0.7052, allocations: 4 kB / 1.165 GB, free: 10.65 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.939e-05/0.7053, allocations: 15.98 kB / 1.165 GB, free: 10.64 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001493/0.7054, allocations: 77.59 kB / 1.165 GB, free: 10.55 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.7054, allocations: 0 / 1.165 GB, free: 10.55 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.7055, allocations: 4 kB / 1.165 GB, free: 10.55 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.7055, allocations: 4 kB / 1.165 GB, free: 10.55 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.529e-05/0.7056, allocations: 43.95 kB / 1.165 GB, free: 10.5 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001757/0.7057, allocations: 197.4 kB / 1.165 GB, free: 10.26 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001611/0.7059, allocations: 86.55 kB / 1.165 GB, free: 10.17 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.085e-05/0.706, allocations: 32.94 kB / 1.165 GB, free: 10.13 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002073/0.7062, allocations: 186.2 kB / 1.166 GB, free: 9.914 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.7062, allocations: 34.56 kB / 1.166 GB, free: 9.871 MB / 0.92 GB Notification: Performance of pre-optimization done (n=12): time 1.222e-06/0.7062, allocations: 0 / 1.166 GB, free: 9.871 MB / 0.92 GB Notification: Performance of matching and sorting (n=19): time 0.00121/0.7074, allocations: 0.5526 MB / 1.166 GB, free: 9.266 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.006e-05/0.7075, allocations: 51.41 kB / 1.166 GB, free: 9.203 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.648e-05/0.7075, allocations: 105.8 kB / 1.166 GB, free: 9.09 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.7076, allocations: 33.7 kB / 1.166 GB, free: 9.051 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.633e-05/0.7076, allocations: 80.52 kB / 1.166 GB, free: 8.969 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.236e-05/0.7077, allocations: 67 kB / 1.167 GB, free: 8.902 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.322e-05/0.7077, allocations: 41.83 kB / 1.167 GB, free: 8.855 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001033/0.7078, allocations: 322.8 kB / 1.167 GB, free: 8.531 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.962e-05/0.7079, allocations: 35.98 kB / 1.167 GB, free: 8.496 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.235e-05/0.708, allocations: 69.23 kB / 1.167 GB, free: 8.418 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001485/0.7081, allocations: 111.3 kB / 1.167 GB, free: 8.297 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.7081, allocations: 0 / 1.167 GB, free: 8.297 MB / 0.92 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002111/0.7084, allocations: 173.5 kB / 1.167 GB, free: 8.121 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.7084, allocations: 4 kB / 1.167 GB, free: 8.117 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.7084, allocations: 0 / 1.167 GB, free: 8.117 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.7084, allocations: 4 kB / 1.167 GB, free: 8.113 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001568/0.7086, allocations: 31.98 kB / 1.167 GB, free: 8.082 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.752e-06/0.7086, allocations: 7.938 kB / 1.167 GB, free: 8.074 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.521e-05/0.7086, allocations: 4 kB / 1.167 GB, free: 8.07 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.054e-05/0.7087, allocations: 11.94 kB / 1.167 GB, free: 8.059 MB / 0.92 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.786e-05/0.7087, allocations: 117.8 kB / 1.167 GB, free: 7.934 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.134e-05/0.7088, allocations: 11.91 kB / 1.167 GB, free: 7.922 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.639e-05/0.7088, allocations: 20.38 kB / 1.167 GB, free: 7.902 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.085e-06/0.7088, allocations: 4 kB / 1.167 GB, free: 7.898 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.7088, allocations: 3.938 kB / 1.167 GB, free: 7.895 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.7089, allocations: 3.984 kB / 1.167 GB, free: 7.891 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001417/0.709, allocations: 193.6 kB / 1.168 GB, free: 7.652 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.709, allocations: 0 / 1.168 GB, free: 7.652 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001834/0.7092, allocations: 39.92 kB / 1.168 GB, free: 7.613 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.7092, allocations: 0 / 1.168 GB, free: 7.613 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.7092, allocations: 4 kB / 1.168 GB, free: 7.609 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.7092, allocations: 8 kB / 1.168 GB, free: 7.602 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.7092, allocations: 3.938 kB / 1.168 GB, free: 7.598 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002779/0.7095, allocations: 206.5 kB / 1.168 GB, free: 7.379 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 6.756e-05/0.7096, allocations: 93.06 kB / 1.168 GB, free: 7.27 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.7096, allocations: 7.938 kB / 1.168 GB, free: 7.262 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001207/0.7097, allocations: 8 kB / 1.168 GB, free: 7.254 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.331e-05/0.7098, allocations: 11.92 kB / 1.168 GB, free: 7.242 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/0.7098, allocations: 15.98 kB / 1.168 GB, free: 7.227 MB / 0.92 GB Notification: Performance of sorting global known variables: time 8.756e-05/0.7099, allocations: 75.28 kB / 1.168 GB, free: 7.152 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7099, allocations: 4 kB / 1.168 GB, free: 7.148 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002046/0.7101, allocations: 24 kB / 1.168 GB, free: 7.125 MB / 0.92 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.0005101/0.7106, allocations: 0.7508 MB / 1.169 GB, free: 6.348 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002029/0.7108, allocations: 112 kB / 1.169 GB, free: 6.238 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.7108, allocations: 0 / 1.169 GB, free: 6.238 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 6.443e-05/0.7109, allocations: 47.92 kB / 1.169 GB, free: 6.191 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002234/0.7111, allocations: 22.14 kB / 1.169 GB, free: 6.172 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/0.7127, allocations: 1.82 MB / 1.171 GB, free: 4.258 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002107/0.713, allocations: 0.6969 MB / 1.171 GB, free: 3.535 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0001195/0.7131, allocations: 32.61 kB / 1.172 GB, free: 3.504 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.04e-05/0.7131, allocations: 23.44 kB / 1.172 GB, free: 3.48 MB / 0.92 GB Notification: Performance of SimCode: time 2.31e-07/0.7132, allocations: 3.938 kB / 1.172 GB, free: 3.477 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08028/0.7934, allocations: 2.377 MB / 1.174 GB, free: 1.156 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.719/8.513, allocations: 9.641 kB / 1.174 GB, free: 1.152 MB / 0.92 GB (rm -f Buildings_10_Buildings.Media.Examples.AirDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.AirDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.AirDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Examples.AirDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Media.Examples.AirDerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Media_Examples_AirDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Media_Examples_AirDerivativeCheck.fmu > Buildings_10_Buildings.Media.Examples.AirDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.AirDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_AirDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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