Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.Examples.AirDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_AirDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.AirDerivativeCheck,fileNamePrefix="Buildings_latest_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.005698/0.005698, allocations: 101 kB / 15.73 MB, free: 5.996 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.001309/0.001309, allocations: 190.5 kB / 16.67 MB, free: 5.926 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.388/1.388, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.72/2.72, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 63.91 kB / 1.054 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8039/0.8051, allocations: 157.4 MB / 1.207 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.002347/0.8075, allocations: 1.33 MB / 1.209 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.1536/0.9611, allocations: 148.1 MB / 1.353 GB, free: 7.543 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.784e-05/0.9612, allocations: 4 kB / 1.353 GB, free: 7.539 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 3.643e-05/0.9612, allocations: 3.938 kB / 1.353 GB, free: 7.535 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0001007/0.9614, allocations: 15.92 kB / 1.353 GB, free: 7.52 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009273/0.9623, allocations: 330.5 kB / 1.353 GB, free: 7.195 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0001068/0.9624, allocations: 67.75 kB / 1.354 GB, free: 7.129 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 3.781e-05/0.9625, allocations: 4 kB / 1.354 GB, free: 7.125 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 4.499e-05/0.9625, allocations: 35.84 kB / 1.354 GB, free: 7.09 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 9.002e-05/0.9626, allocations: 35.89 kB / 1.354 GB, free: 7.055 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.086e-05/0.9627, allocations: 0 / 1.354 GB, free: 7.055 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007611/0.9634, allocations: 406.8 kB / 1.354 GB, free: 6.656 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 4.693e-05/0.9635, allocations: 15.97 kB / 1.354 GB, free: 6.641 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 4.296e-05/0.9635, allocations: 27.86 kB / 1.354 GB, free: 6.613 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0003107/0.9638, allocations: 162 kB / 1.354 GB, free: 6.457 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.9639, allocations: 4 kB / 1.354 GB, free: 6.453 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.162e-06/0.9639, allocations: 0 / 1.354 GB, free: 6.453 MB / 1.076 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.9639, allocations: 0 / 1.354 GB, free: 6.453 MB / 1.076 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.0004336/0.9643, allocations: 395.3 kB / 1.355 GB, free: 6.02 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.9644, allocations: 8.031 kB / 1.355 GB, free: 6.012 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.895e-05/0.9644, allocations: 38.75 kB / 1.355 GB, free: 5.965 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003873/0.9648, allocations: 36.89 kB / 1.355 GB, free: 5.93 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.9649, allocations: 184 kB / 1.355 GB, free: 5.711 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.356e-06/0.9649, allocations: 0 / 1.355 GB, free: 5.711 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.133e-05/0.965, allocations: 12 kB / 1.355 GB, free: 5.699 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001558/0.9651, allocations: 77.64 kB / 1.355 GB, free: 5.617 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.9651, allocations: 0 / 1.355 GB, free: 5.617 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.9652, allocations: 0 / 1.355 GB, free: 5.617 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.9652, allocations: 4 kB / 1.355 GB, free: 5.613 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.029e-05/0.9653, allocations: 47.89 kB / 1.355 GB, free: 5.566 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001817/0.9655, allocations: 189.5 kB / 1.355 GB, free: 5.332 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001706/0.9656, allocations: 98.61 kB / 1.355 GB, free: 5.227 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.963e-05/0.9657, allocations: 32.84 kB / 1.355 GB, free: 5.191 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002196/0.9659, allocations: 174.2 kB / 1.355 GB, free: 4.984 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.966, allocations: 34.56 kB / 1.355 GB, free: 4.941 MB / 1.076 GB Notification: Performance of pre-optimization done (n=12): time 1.142e-06/0.966, allocations: 4 kB / 1.355 GB, free: 4.938 MB / 1.076 GB Notification: Performance of matching and sorting (n=19): time 0.001257/0.9672, allocations: 0.5385 MB / 1.356 GB, free: 4.348 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/0.9673, allocations: 55.41 kB / 1.356 GB, free: 4.281 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.79e-05/0.9673, allocations: 101.8 kB / 1.356 GB, free: 4.172 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.161e-05/0.9674, allocations: 33.7 kB / 1.356 GB, free: 4.133 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 3.23e-05/0.9674, allocations: 84.5 kB / 1.356 GB, free: 4.047 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 6.198e-05/0.9675, allocations: 70.91 kB / 1.356 GB, free: 3.977 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.464e-05/0.9675, allocations: 41.7 kB / 1.356 GB, free: 3.93 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 9.824e-05/0.9676, allocations: 318.8 kB / 1.357 GB, free: 3.609 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.532e-05/0.9677, allocations: 35.97 kB / 1.357 GB, free: 3.574 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.877e-05/0.9678, allocations: 71.53 kB / 1.357 GB, free: 3.492 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000145/0.9679, allocations: 111.4 kB / 1.357 GB, free: 3.371 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.968, allocations: 0 / 1.357 GB, free: 3.371 MB / 1.076 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002095/0.9682, allocations: 165.5 kB / 1.357 GB, free: 3.203 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.9682, allocations: 4 kB / 1.357 GB, free: 3.199 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.9682, allocations: 0 / 1.357 GB, free: 3.199 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.9682, allocations: 4 kB / 1.357 GB, free: 3.195 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001684/0.9684, allocations: 35.98 kB / 1.357 GB, free: 3.16 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.9684, allocations: 7.938 kB / 1.357 GB, free: 3.152 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.54e-05/0.9685, allocations: 8 kB / 1.357 GB, free: 3.145 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.051e-05/0.9685, allocations: 4 kB / 1.357 GB, free: 3.141 MB / 1.076 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 8.395e-05/0.9686, allocations: 133.6 kB / 1.357 GB, free: 3 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.085e-05/0.9686, allocations: 4 kB / 1.357 GB, free: 2.996 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.793e-05/0.9687, allocations: 20.44 kB / 1.357 GB, free: 2.977 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.9687, allocations: 0 / 1.357 GB, free: 2.977 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.9687, allocations: 3.938 kB / 1.357 GB, free: 2.973 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.9687, allocations: 0 / 1.357 GB, free: 2.973 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001582/0.9688, allocations: 201.6 kB / 1.357 GB, free: 2.727 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.9688, allocations: 0 / 1.357 GB, free: 2.727 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001947/0.969, allocations: 39.92 kB / 1.357 GB, free: 2.688 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.9691, allocations: 3.984 kB / 1.358 GB, free: 2.684 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.9691, allocations: 8 kB / 1.358 GB, free: 2.676 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.9691, allocations: 0 / 1.358 GB, free: 2.676 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.9691, allocations: 3.938 kB / 1.358 GB, free: 2.672 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002853/0.9694, allocations: 205.3 kB / 1.358 GB, free: 2.457 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 7.147e-05/0.9695, allocations: 101.1 kB / 1.358 GB, free: 2.34 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.79e-05/0.9695, allocations: 0 / 1.358 GB, free: 2.34 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/0.9696, allocations: 11.98 kB / 1.358 GB, free: 2.328 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.579e-05/0.9696, allocations: 15.86 kB / 1.358 GB, free: 2.312 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.9697, allocations: 8 kB / 1.358 GB, free: 2.305 MB / 1.076 GB Notification: Performance of sorting global known variables: time 3.419e-05/0.9697, allocations: 79.28 kB / 1.358 GB, free: 2.227 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9697, allocations: 0 / 1.358 GB, free: 2.227 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002224/0.9699, allocations: 28 kB / 1.358 GB, free: 2.199 MB / 1.076 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.0005536/0.9705, allocations: 0.749 MB / 1.359 GB, free: 1.418 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0001849/0.9707, allocations: 104 kB / 1.359 GB, free: 1.316 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.9707, allocations: 0 / 1.359 GB, free: 1.316 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 7.466e-05/0.9708, allocations: 62.14 kB / 1.359 GB, free: 1.258 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002508/0.971, allocations: 16.91 kB / 1.359 GB, free: 1.242 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001687/0.9727, allocations: 1.823 MB / 1.361 GB, free: 15.32 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000222/0.973, allocations: 0.7009 MB / 1.361 GB, free: 14.59 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.0001004/0.9731, allocations: 24.56 kB / 1.361 GB, free: 14.57 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.343e-05/0.9731, allocations: 23.44 kB / 1.361 GB, free: 14.55 MB / 1.092 GB Notification: Performance of SimCode: time 2.4e-07/0.9731, allocations: 7.938 kB / 1.361 GB, free: 14.54 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01906/0.9922, allocations: 2.464 MB / 1.364 GB, free: 12.16 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.512/8.505, allocations: 0 / 1.364 GB, free: 12.16 MB / 1.092 GB (rm -f Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_AirDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Media_Examples_AirDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_AirDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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[2]=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