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.001197/0.001197, 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.001152/0.001152, allocations: 190.2 kB / 16.25 MB, free: 6.641 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.189/1.189, 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 10.1.1-maint.10.0.x/package.mo): time 2.142/2.142, allocations: 437 MB / 0.7101 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001098/0.001098, allocations: 60.05 kB / 0.8688 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4427/0.4438, allocations: 151.6 MB / 1.017 GB, free: 2.82 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.001902/0.4457, allocations: 1.397 MB / 1.018 GB, free: 1.414 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.1223/0.568, allocations: 145.9 MB / 1.161 GB, free: 14.92 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.368e-05/0.5681, allocations: 0 / 1.161 GB, free: 14.92 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.242e-05/0.5681, allocations: 0 / 1.161 GB, free: 14.92 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.067e-05/0.5682, allocations: 15.91 kB / 1.161 GB, free: 14.91 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007234/0.569, allocations: 306.8 kB / 1.161 GB, free: 14.61 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.814e-05/0.5691, allocations: 63.77 kB / 1.161 GB, free: 14.54 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.172e-05/0.5691, allocations: 4 kB / 1.161 GB, free: 14.54 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 4.463e-05/0.5691, allocations: 43.84 kB / 1.161 GB, free: 14.5 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7e-05/0.5692, allocations: 31.89 kB / 1.161 GB, free: 14.46 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.128e-05/0.5692, allocations: 4 kB / 1.161 GB, free: 14.46 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006244/0.5699, allocations: 438.8 kB / 1.162 GB, free: 14.03 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.729e-05/0.5699, allocations: 11.98 kB / 1.162 GB, free: 14.02 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.435e-05/0.57, allocations: 31.86 kB / 1.162 GB, free: 13.99 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002622/0.5702, allocations: 185.8 kB / 1.162 GB, free: 13.81 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.5702, allocations: 0 / 1.162 GB, free: 13.81 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.133e-06/0.5702, allocations: 0 / 1.162 GB, free: 13.81 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.5703, allocations: 4 kB / 1.162 GB, free: 13.8 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.0003612/0.5706, allocations: 395.3 kB / 1.162 GB, free: 13.37 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.04e-05/0.5707, allocations: 8.031 kB / 1.162 GB, free: 13.36 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.095e-05/0.5707, allocations: 38.73 kB / 1.162 GB, free: 13.32 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003384/0.571, allocations: 36.81 kB / 1.162 GB, free: 13.28 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.693e-05/0.5711, allocations: 168.1 kB / 1.162 GB, free: 13.08 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.5712, allocations: 4 kB / 1.163 GB, free: 13.07 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.29e-05/0.5712, allocations: 15.94 kB / 1.163 GB, free: 13.06 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000137/0.5713, allocations: 77.64 kB / 1.163 GB, free: 12.98 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.38e-06/0.5713, allocations: 0 / 1.163 GB, free: 12.98 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.5714, allocations: 4 kB / 1.163 GB, free: 12.97 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.708e-06/0.5714, allocations: 4 kB / 1.163 GB, free: 12.97 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.759e-05/0.5714, allocations: 47.89 kB / 1.163 GB, free: 12.92 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001618/0.5716, allocations: 193.4 kB / 1.163 GB, free: 12.68 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001532/0.5718, allocations: 94.58 kB / 1.163 GB, free: 12.58 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.376e-05/0.5718, allocations: 28.89 kB / 1.163 GB, free: 12.55 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001953/0.572, allocations: 182.2 kB / 1.163 GB, free: 12.34 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.017e-05/0.5721, allocations: 30.56 kB / 1.163 GB, free: 12.3 MB / 0.92 GB Notification: Performance of pre-optimization done (n=12): time 1.102e-06/0.5721, allocations: 0 / 1.163 GB, free: 12.3 MB / 0.92 GB Notification: Performance of matching and sorting (n=19): time 0.001093/0.5732, allocations: 0.5509 MB / 1.164 GB, free: 11.7 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.737e-05/0.5732, allocations: 55.41 kB / 1.164 GB, free: 11.63 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.822e-05/0.5733, allocations: 97.78 kB / 1.164 GB, free: 11.52 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.5733, allocations: 33.7 kB / 1.164 GB, free: 11.48 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 2.81e-05/0.5733, allocations: 84.64 kB / 1.164 GB, free: 11.4 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.901e-05/0.5734, allocations: 74.94 kB / 1.164 GB, free: 11.32 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.657e-05/0.5734, allocations: 37.7 kB / 1.164 GB, free: 11.28 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.531e-05/0.5735, allocations: 322.8 kB / 1.164 GB, free: 10.96 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.122e-05/0.5736, allocations: 31.98 kB / 1.164 GB, free: 10.93 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.072e-05/0.5736, allocations: 67.41 kB / 1.164 GB, free: 10.85 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001336/0.5738, allocations: 119.3 kB / 1.165 GB, free: 10.72 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.5738, allocations: 4 kB / 1.165 GB, free: 10.71 MB / 0.92 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0001863/0.574, allocations: 153.5 kB / 1.165 GB, free: 10.56 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/0.574, allocations: 7.984 kB / 1.165 GB, free: 10.55 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.546e-06/0.574, allocations: 0 / 1.165 GB, free: 10.55 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.574, allocations: 4 kB / 1.165 GB, free: 10.55 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001498/0.5742, allocations: 43.92 kB / 1.165 GB, free: 10.5 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.5742, allocations: 3.938 kB / 1.165 GB, free: 10.5 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.076e-05/0.5742, allocations: 4 kB / 1.165 GB, free: 10.5 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/0.5743, allocations: 15.94 kB / 1.165 GB, free: 10.48 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.544e-05/0.5743, allocations: 122.3 kB / 1.165 GB, free: 10.35 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.743e-05/0.5744, allocations: 7.906 kB / 1.165 GB, free: 10.34 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.39e-05/0.5744, allocations: 16.44 kB / 1.165 GB, free: 10.33 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.125e-06/0.5744, allocations: 4 kB / 1.165 GB, free: 10.32 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.5744, allocations: 3.938 kB / 1.165 GB, free: 10.32 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.5744, allocations: 7.969 kB / 1.165 GB, free: 10.31 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001325/0.5746, allocations: 189.6 kB / 1.165 GB, free: 10.08 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.5746, allocations: 0 / 1.165 GB, free: 10.08 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001778/0.5748, allocations: 47.92 kB / 1.165 GB, free: 10.03 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.5748, allocations: 0 / 1.165 GB, free: 10.03 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.5748, allocations: 0 / 1.165 GB, free: 10.03 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.5748, allocations: 4 kB / 1.165 GB, free: 10.03 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.5748, allocations: 3.938 kB / 1.165 GB, free: 10.02 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002497/0.5751, allocations: 204.9 kB / 1.165 GB, free: 9.805 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.587e-05/0.5751, allocations: 89 kB / 1.165 GB, free: 9.699 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.5751, allocations: 8.062 kB / 1.165 GB, free: 9.691 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.5753, allocations: 8 kB / 1.165 GB, free: 9.684 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.164e-05/0.5753, allocations: 15.92 kB / 1.165 GB, free: 9.668 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.949e-06/0.5753, allocations: 4 kB / 1.166 GB, free: 9.664 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.389e-05/0.5753, allocations: 83.27 kB / 1.166 GB, free: 9.582 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.11e-07/0.5753, allocations: 0 / 1.166 GB, free: 9.582 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0001929/0.5755, allocations: 28 kB / 1.166 GB, free: 9.555 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.0004649/0.576, allocations: 0.7469 MB / 1.166 GB, free: 8.781 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001806/0.5762, allocations: 116.1 kB / 1.166 GB, free: 8.668 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.5762, allocations: 3.938 kB / 1.166 GB, free: 8.664 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 6.789e-05/0.5763, allocations: 53.47 kB / 1.167 GB, free: 8.613 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002112/0.5765, allocations: 20.39 kB / 1.167 GB, free: 8.594 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001529/0.578, allocations: 1.845 MB / 1.168 GB, free: 6.652 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002035/0.5783, allocations: 0.7008 MB / 1.169 GB, free: 5.926 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0001133/0.5784, allocations: 24.56 kB / 1.169 GB, free: 5.902 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.735e-05/0.5784, allocations: 23.44 kB / 1.169 GB, free: 5.879 MB / 0.92 GB Notification: Performance of SimCode: time 3.3e-07/0.5784, allocations: 4 kB / 1.169 GB, free: 5.875 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.162/2.74, allocations: 2.299 MB / 1.171 GB, free: 3.676 MB / 0.92 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002108/2.74, allocations: 193.4 kB / 1.171 GB, free: 3.418 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.957/7.697, allocations: 1.875 kB / 1.171 GB, free: 3.418 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