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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001128/0.001128, allocations: 92.78 kB / 15.36 MB, free: 0.7383 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.008836/0.008836, allocations: 172.9 kB / 16.26 MB, free: 6.613 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.265/1.265, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.138/2.138, allocations: 390.9 MB / 0.6664 GB, free: 2.402 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003021/0.0003022, allocations: 8 kB / 0.8161 GB, free: 13.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5779/0.5782, allocations: 142.4 MB / 0.9552 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.0008999/0.5791, allocations: 1.054 MB / 0.9562 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1254/0.7046, allocations: 144.3 MB / 1.097 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.736e-05/0.7046, allocations: 0 / 1.097 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.948e-05/0.7047, allocations: 3.984 kB / 1.097 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.097e-05/0.7048, allocations: 11.92 kB / 1.097 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007019/0.7055, allocations: 306.8 kB / 1.097 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.713e-05/0.7056, allocations: 83.73 kB / 1.097 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.2e-05/0.7056, allocations: 4 kB / 1.097 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.711e-05/0.7056, allocations: 35.86 kB / 1.097 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.001e-05/0.7057, allocations: 31.89 kB / 1.098 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.14e-05/0.7057, allocations: 4 kB / 1.098 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006977/0.7064, allocations: 494.7 kB / 1.098 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.487e-05/0.7065, allocations: 23.97 kB / 1.098 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.13e-05/0.7066, allocations: 49.56 kB / 1.098 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002677/0.7068, allocations: 189.8 kB / 1.098 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.7068, allocations: 3.938 kB / 1.098 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.082e-06/0.7068, allocations: 0 / 1.098 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 3.146e-06/0.7069, allocations: 4 kB / 1.098 GB, free: 12.26 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.0003327/0.7072, allocations: 371.4 kB / 1.099 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.7072, allocations: 8.031 kB / 1.099 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.674e-05/0.7073, allocations: 34.75 kB / 1.099 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003528/0.7076, allocations: 40.8 kB / 1.099 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.021e-05/0.7077, allocations: 168.1 kB / 1.099 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.7077, allocations: 11.98 kB / 1.099 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.407e-05/0.7078, allocations: 15.94 kB / 1.099 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001373/0.7079, allocations: 77.64 kB / 1.099 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.821e-06/0.7079, allocations: 0 / 1.099 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.182e-05/0.7079, allocations: 4 kB / 1.099 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.7079, allocations: 3.938 kB / 1.099 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.194e-05/0.708, allocations: 51.89 kB / 1.099 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001617/0.7082, allocations: 189.4 kB / 1.099 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001486/0.7084, allocations: 98.62 kB / 1.099 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.761e-05/0.7084, allocations: 32.84 kB / 1.099 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000182/0.7086, allocations: 170.2 kB / 1.099 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.047e-05/0.7086, allocations: 38.56 kB / 1.1 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.092e-06/0.7086, allocations: 0 / 1.1 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19): time 0.001099/0.7097, allocations: 0.539 MB / 1.1 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.483e-05/0.7098, allocations: 51.41 kB / 1.1 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.825e-05/0.7098, allocations: 101.8 kB / 1.1 GB, free: 10 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.7099, allocations: 25.7 kB / 1.1 GB, free: 9.973 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.547e-05/0.7099, allocations: 96.62 kB / 1.1 GB, free: 9.875 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.69e-05/0.7099, allocations: 63 kB / 1.1 GB, free: 9.812 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.088e-05/0.71, allocations: 29.7 kB / 1.1 GB, free: 9.777 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.586e-05/0.7101, allocations: 318.8 kB / 1.101 GB, free: 9.457 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.579e-05/0.7101, allocations: 35.97 kB / 1.101 GB, free: 9.422 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.691e-05/0.7102, allocations: 69.23 kB / 1.101 GB, free: 9.344 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001397/0.7103, allocations: 119.3 kB / 1.101 GB, free: 9.215 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.61e-07/0.7104, allocations: 0 / 1.101 GB, free: 9.215 MB / 0.8575 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000194/0.7105, allocations: 153.5 kB / 1.101 GB, free: 9.059 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.7106, allocations: 8 kB / 1.101 GB, free: 9.051 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.7106, allocations: 0 / 1.101 GB, free: 9.051 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.7106, allocations: 4 kB / 1.101 GB, free: 9.047 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001477/0.7107, allocations: 39.86 kB / 1.101 GB, free: 9.008 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.7108, allocations: 7.938 kB / 1.101 GB, free: 9 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.066e-05/0.7108, allocations: 4 kB / 1.101 GB, free: 8.996 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.7108, allocations: 16 kB / 1.101 GB, free: 8.98 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.1e-05/0.7109, allocations: 121.8 kB / 1.101 GB, free: 8.852 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.606e-05/0.7109, allocations: 7.906 kB / 1.101 GB, free: 8.844 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.654e-05/0.711, allocations: 16.56 kB / 1.101 GB, free: 8.824 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.711, allocations: 4 kB / 1.101 GB, free: 8.82 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.711, allocations: 7.938 kB / 1.101 GB, free: 8.812 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.711, allocations: 0 / 1.101 GB, free: 8.812 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000127/0.7111, allocations: 193.6 kB / 1.101 GB, free: 8.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.7111, allocations: 0 / 1.101 GB, free: 8.574 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001819/0.7113, allocations: 43.92 kB / 1.102 GB, free: 8.531 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.7113, allocations: 0 / 1.102 GB, free: 8.531 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.7113, allocations: 4 kB / 1.102 GB, free: 8.527 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.7114, allocations: 3.984 kB / 1.102 GB, free: 8.523 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.7114, allocations: 7.938 kB / 1.102 GB, free: 8.516 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002582/0.7116, allocations: 206.5 kB / 1.102 GB, free: 8.297 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.586e-05/0.7117, allocations: 89 kB / 1.102 GB, free: 8.191 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.546e-05/0.7117, allocations: 7.938 kB / 1.102 GB, free: 8.184 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001195/0.7118, allocations: 12.05 kB / 1.102 GB, free: 8.172 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.194e-05/0.7119, allocations: 15.92 kB / 1.102 GB, free: 8.156 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.079e-05/0.7119, allocations: 8 kB / 1.102 GB, free: 8.148 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.54e-05/0.7119, allocations: 75.28 kB / 1.102 GB, free: 8.074 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.7119, allocations: 0 / 1.102 GB, free: 8.074 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002008/0.7121, allocations: 32 kB / 1.102 GB, free: 8.043 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.0004526/0.7126, allocations: 0.7434 MB / 1.103 GB, free: 7.273 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001574/0.7127, allocations: 107.8 kB / 1.103 GB, free: 7.168 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.7128, allocations: 4 kB / 1.103 GB, free: 7.164 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 6.442e-05/0.7128, allocations: 51.92 kB / 1.103 GB, free: 7.113 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001991/0.713, allocations: 21.61 kB / 1.103 GB, free: 7.094 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001507/0.7145, allocations: 1.924 MB / 1.105 GB, free: 5.074 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001833/0.7147, allocations: 0.7089 MB / 1.105 GB, free: 4.34 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001138/0.7149, allocations: 20.62 kB / 1.105 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.921e-05/0.7149, allocations: 27.42 kB / 1.105 GB, free: 4.293 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.7149, allocations: 4 kB / 1.105 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.124/1.839, allocations: 2.169 MB / 1.108 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002116/1.839, allocations: 192.6 kB / 1.108 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.515/3.354, allocations: 0 / 1.108 GB, free: 1.969 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