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.004666/0.004666, allocations: 99.02 kB / 15.73 MB, free: 6.047 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.001308/0.001308, allocations: 194.5 kB / 16.68 MB, free: 5.969 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.263/1.263, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.349/2.349, allocations: 437.1 MB / 0.7106 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 67.89 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2337, allocations: 151.6 MB / 1.166 GB, free: 7.312 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.001886/0.2357, allocations: 1.334 MB / 1.167 GB, free: 5.961 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.5661/0.8018, allocations: 148.1 MB / 1.312 GB, free: 12.44 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.641e-05/0.8019, allocations: 0 / 1.312 GB, free: 12.44 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.278e-05/0.8019, allocations: 6.469 kB / 1.312 GB, free: 12.43 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.672e-05/0.802, allocations: 12.64 kB / 1.312 GB, free: 12.43 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007427/0.8028, allocations: 329.4 kB / 1.312 GB, free: 12.35 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 8.642e-05/0.8028, allocations: 63.8 kB / 1.312 GB, free: 12.34 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 2.77e-05/0.8029, allocations: 3.172 kB / 1.312 GB, free: 12.34 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 3.507e-05/0.8029, allocations: 35.69 kB / 1.313 GB, free: 12.33 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 7.639e-05/0.803, allocations: 36.09 kB / 1.313 GB, free: 12.33 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.11e-05/0.803, allocations: 2.5 kB / 1.313 GB, free: 12.33 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006417/0.8037, allocations: 412.2 kB / 1.313 GB, free: 12.27 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 4.344e-05/0.8037, allocations: 22.69 kB / 1.313 GB, free: 12.27 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.485e-05/0.8038, allocations: 27.19 kB / 1.313 GB, free: 12.26 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000261/0.804, allocations: 158 kB / 1.313 GB, free: 12.25 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.804, allocations: 0 / 1.313 GB, free: 12.25 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.022e-06/0.804, allocations: 0 / 1.313 GB, free: 12.25 MB / 1.014 GB Notification: Performance of Transformations before backend: time 3.997e-06/0.804, allocations: 0 / 1.313 GB, free: 12.25 MB / 1.014 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.000378/0.8044, allocations: 390.8 kB / 1.314 GB, free: 11.87 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 2.846e-05/0.8045, allocations: 9.797 kB / 1.314 GB, free: 11.87 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.809e-05/0.8045, allocations: 38.25 kB / 1.314 GB, free: 11.83 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000323/0.8048, allocations: 36.95 kB / 1.314 GB, free: 11.83 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001/0.8049, allocations: 173.8 kB / 1.314 GB, free: 11.62 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.805, allocations: 6.156 kB / 1.314 GB, free: 11.62 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.317e-05/0.805, allocations: 14.38 kB / 1.314 GB, free: 11.62 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001347/0.8051, allocations: 81.72 kB / 1.314 GB, free: 11.58 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.822e-06/0.8051, allocations: 3.938 kB / 1.314 GB, free: 11.58 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.628e-06/0.8052, allocations: 2.031 kB / 1.314 GB, free: 11.58 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.8052, allocations: 1.156 kB / 1.314 GB, free: 11.58 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.749e-05/0.8052, allocations: 45 kB / 1.314 GB, free: 11.58 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001702/0.8054, allocations: 186.2 kB / 1.314 GB, free: 11.39 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001463/0.8056, allocations: 95.52 kB / 1.314 GB, free: 11.36 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.595e-05/0.8056, allocations: 36.27 kB / 1.314 GB, free: 11.34 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001959/0.8058, allocations: 172.9 kB / 1.314 GB, free: 11.16 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.8059, allocations: 36.92 kB / 1.314 GB, free: 11.12 MB / 1.014 GB Notification: Performance of pre-optimization done (n=12): time 2.755e-06/0.8059, allocations: 0 / 1.314 GB, free: 11.12 MB / 1.014 GB Notification: Performance of matching and sorting (n=19): time 0.001062/0.8069, allocations: 0.5444 MB / 1.315 GB, free: 10.84 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.408e-05/0.807, allocations: 58.23 kB / 1.315 GB, free: 10.77 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.682e-05/0.807, allocations: 102 kB / 1.315 GB, free: 10.67 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.8071, allocations: 30.64 kB / 1.315 GB, free: 10.64 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 3.177e-05/0.8071, allocations: 85.64 kB / 1.315 GB, free: 10.55 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 5.312e-05/0.8072, allocations: 74.17 kB / 1.315 GB, free: 10.51 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.863e-05/0.8072, allocations: 49.55 kB / 1.315 GB, free: 10.48 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.8073, allocations: 318.7 kB / 1.316 GB, free: 10.17 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.33e-05/0.8074, allocations: 36.55 kB / 1.316 GB, free: 10.17 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.314e-05/0.8075, allocations: 66.77 kB / 1.316 GB, free: 10.14 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001311/0.8076, allocations: 120.1 kB / 1.316 GB, free: 10.1 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.8076, allocations: 0.8438 kB / 1.316 GB, free: 10.1 MB / 1.014 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0001816/0.8078, allocations: 153.2 kB / 1.316 GB, free: 10.06 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 9.077e-06/0.8078, allocations: 5.469 kB / 1.316 GB, free: 10.06 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.477e-06/0.8078, allocations: 1.094 kB / 1.316 GB, free: 10.06 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.8078, allocations: 3.094 kB / 1.316 GB, free: 10.06 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.808, allocations: 38.91 kB / 1.316 GB, free: 10.06 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.808, allocations: 4.625 kB / 1.316 GB, free: 10.06 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.843e-05/0.8081, allocations: 8.906 kB / 1.316 GB, free: 10.05 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.8081, allocations: 14.19 kB / 1.316 GB, free: 10.05 MB / 1.014 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.715e-05/0.8082, allocations: 122.2 kB / 1.316 GB, free: 9.934 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.833e-05/0.8082, allocations: 8.422 kB / 1.316 GB, free: 9.93 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.05e-05/0.8082, allocations: 16.02 kB / 1.316 GB, free: 9.922 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.8082, allocations: 3 kB / 1.316 GB, free: 9.922 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.8082, allocations: 0.6094 kB / 1.316 GB, free: 9.922 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.8082, allocations: 4.5 kB / 1.316 GB, free: 9.918 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001477/0.8084, allocations: 195.5 kB / 1.316 GB, free: 9.73 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.8084, allocations: 3.219 kB / 1.316 GB, free: 9.73 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000163/0.8086, allocations: 38.78 kB / 1.316 GB, free: 9.727 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.8086, allocations: 1.125 kB / 1.316 GB, free: 9.727 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.749e-06/0.8086, allocations: 4.906 kB / 1.316 GB, free: 9.727 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.8086, allocations: 1.062 kB / 1.316 GB, free: 9.727 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.8086, allocations: 1.859 kB / 1.316 GB, free: 9.727 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000249/0.8089, allocations: 212.3 kB / 1.317 GB, free: 9.645 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 6.378e-05/0.8089, allocations: 90.3 kB / 1.317 GB, free: 9.551 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.632e-05/0.8089, allocations: 5.328 kB / 1.317 GB, free: 9.547 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.8091, allocations: 13.66 kB / 1.317 GB, free: 9.543 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.292e-05/0.8091, allocations: 25.16 kB / 1.317 GB, free: 9.527 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.8091, allocations: 9.453 kB / 1.317 GB, free: 9.527 MB / 1.014 GB Notification: Performance of sorting global known variables: time 3.234e-05/0.8091, allocations: 77.17 kB / 1.317 GB, free: 9.453 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8091, allocations: 1.312 kB / 1.317 GB, free: 9.453 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0001836/0.8093, allocations: 27.97 kB / 1.317 GB, free: 9.453 MB / 1.014 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.0004985/0.8098, allocations: 0.7476 MB / 1.318 GB, free: 8.848 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0001577/0.81, allocations: 99.72 kB / 1.318 GB, free: 8.844 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.81, allocations: 3.125 kB / 1.318 GB, free: 8.844 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 6.39e-05/0.8101, allocations: 55.42 kB / 1.318 GB, free: 8.836 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002009/0.8103, allocations: 21.02 kB / 1.318 GB, free: 8.832 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001561/0.8119, allocations: 1.828 MB / 1.32 GB, free: 7.426 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.8121, allocations: 0.7063 MB / 1.32 GB, free: 6.723 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 8.576e-05/0.8122, allocations: 23.64 kB / 1.32 GB, free: 6.715 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.428e-05/0.8123, allocations: 24.89 kB / 1.32 GB, free: 6.707 MB / 1.014 GB Notification: Performance of SimCode: time 2.51e-07/0.8123, allocations: 0 / 1.32 GB, free: 6.707 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 8.418/9.23, allocations: 2.429 MB / 1.323 GB, free: 6.25 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/22.24, allocations: 5.219 kB / 1.323 GB, free: 6.25 MB / 1.014 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=400 --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