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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001343/0.001343, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001597/0.001597, allocations: 192.3 kB / 16.13 MB, free: 6.703 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.256/1.256, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.359/2.359, allocations: 461.8 MB / 0.7342 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001107/0.001107, allocations: 67.89 kB / 0.8985 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2114/0.2125, allocations: 157.4 MB / 1.052 GB, free: 8.18 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.001945/0.2145, allocations: 1.391 MB / 1.054 GB, free: 6.773 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.1255/0.34, allocations: 145.8 MB / 1.196 GB, free: 4.422 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.526e-05/0.3401, allocations: 4 kB / 1.196 GB, free: 4.418 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.304e-05/0.3401, allocations: 3.938 kB / 1.196 GB, free: 4.414 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 8.851e-05/0.3403, allocations: 11.91 kB / 1.196 GB, free: 4.402 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007822/0.3411, allocations: 298.9 kB / 1.196 GB, free: 4.109 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 9.115e-05/0.3412, allocations: 87.67 kB / 1.196 GB, free: 4.023 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 2.819e-05/0.3412, allocations: 7.984 kB / 1.196 GB, free: 4.016 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 3.478e-05/0.3412, allocations: 31.92 kB / 1.196 GB, free: 3.984 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.335e-05/0.3413, allocations: 31.91 kB / 1.196 GB, free: 3.953 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.167e-05/0.3413, allocations: 4 kB / 1.196 GB, free: 3.949 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007848/0.3421, allocations: 0.4908 MB / 1.197 GB, free: 3.457 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 4.325e-05/0.3422, allocations: 15.97 kB / 1.197 GB, free: 3.441 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.858e-05/0.3422, allocations: 23.88 kB / 1.197 GB, free: 3.418 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003102/0.3425, allocations: 187.8 kB / 1.197 GB, free: 3.234 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.3425, allocations: 0 / 1.197 GB, free: 3.234 MB / 0.9512 GB Notification: Performance of FrontEnd: time 7.92e-07/0.3426, allocations: 0 / 1.197 GB, free: 3.234 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.3426, allocations: 4 kB / 1.197 GB, free: 3.23 MB / 0.9512 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.000375/0.3429, allocations: 387.4 kB / 1.197 GB, free: 2.805 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.343, allocations: 15.97 kB / 1.197 GB, free: 2.789 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.357e-05/0.343, allocations: 42.67 kB / 1.198 GB, free: 2.738 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003651/0.3434, allocations: 36.81 kB / 1.198 GB, free: 2.703 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.007e-05/0.3435, allocations: 168.1 kB / 1.198 GB, free: 2.5 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.3435, allocations: 8 kB / 1.198 GB, free: 2.492 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.673e-05/0.3436, allocations: 15.89 kB / 1.198 GB, free: 2.477 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001414/0.3437, allocations: 77.66 kB / 1.198 GB, free: 2.395 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.032e-06/0.3437, allocations: 0 / 1.198 GB, free: 2.395 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.3437, allocations: 4 kB / 1.198 GB, free: 2.391 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.3437, allocations: 0 / 1.198 GB, free: 2.391 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.493e-05/0.3438, allocations: 51.83 kB / 1.198 GB, free: 2.34 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000169/0.344, allocations: 193.6 kB / 1.198 GB, free: 2.102 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001611/0.3442, allocations: 94.59 kB / 1.198 GB, free: 2 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.759e-05/0.3442, allocations: 28.94 kB / 1.198 GB, free: 1.969 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002014/0.3444, allocations: 178.2 kB / 1.198 GB, free: 1.758 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/0.3445, allocations: 38.5 kB / 1.198 GB, free: 1.711 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=12): time 1.102e-06/0.3445, allocations: 4 kB / 1.198 GB, free: 1.707 MB / 0.9512 GB Notification: Performance of matching and sorting (n=19): time 0.001162/0.3456, allocations: 0.5388 MB / 1.199 GB, free: 1.117 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.122e-05/0.3457, allocations: 55.41 kB / 1.199 GB, free: 1.051 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.067e-05/0.3457, allocations: 105.8 kB / 1.199 GB, free: 0.9375 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.395e-05/0.3458, allocations: 25.7 kB / 1.199 GB, free: 0.9062 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 2.459e-05/0.3458, allocations: 88.64 kB / 1.199 GB, free: 0.8164 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.658e-05/0.3459, allocations: 63.02 kB / 1.199 GB, free: 0.7539 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.984e-05/0.3459, allocations: 41.7 kB / 1.199 GB, free: 0.707 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.573e-05/0.346, allocations: 318.8 kB / 1.2 GB, free: 396 kB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.681e-05/0.3461, allocations: 35.98 kB / 1.2 GB, free: 360 kB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.554e-05/0.3462, allocations: 71.34 kB / 1.2 GB, free: 276 kB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001432/0.3463, allocations: 123.3 kB / 1.2 GB, free: 140 kB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.3463, allocations: 0 / 1.2 GB, free: 140 kB / 0.9512 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002162/0.3465, allocations: 157.6 kB / 1.2 GB, free: 15.97 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.3466, allocations: 4.781 kB / 1.2 GB, free: 15.97 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.3466, allocations: 4 kB / 1.2 GB, free: 15.96 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.887e-06/0.3466, allocations: 0 / 1.2 GB, free: 15.96 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.3467, allocations: 39.92 kB / 1.2 GB, free: 15.93 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.3467, allocations: 3.938 kB / 1.2 GB, free: 15.92 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.426e-05/0.3468, allocations: 8 kB / 1.2 GB, free: 15.91 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.3468, allocations: 11.94 kB / 1.2 GB, free: 15.9 MB / 0.9669 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.413e-05/0.3469, allocations: 121.8 kB / 1.2 GB, free: 15.77 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.62e-05/0.3469, allocations: 11.91 kB / 1.2 GB, free: 15.76 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.792e-05/0.347, allocations: 16.44 kB / 1.2 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.626e-06/0.347, allocations: 4.109 kB / 1.2 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.347, allocations: 11.88 kB / 1.2 GB, free: 15.73 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.347, allocations: 4 kB / 1.2 GB, free: 15.73 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001384/0.3471, allocations: 189.5 kB / 1.2 GB, free: 15.5 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.3472, allocations: 4 kB / 1.2 GB, free: 15.5 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001733/0.3473, allocations: 35.98 kB / 1.2 GB, free: 15.46 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.3473, allocations: 0 / 1.2 GB, free: 15.46 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.3474, allocations: 8 kB / 1.2 GB, free: 15.45 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3474, allocations: 0 / 1.2 GB, free: 15.45 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.3474, allocations: 3.938 kB / 1.2 GB, free: 15.45 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002672/0.3476, allocations: 205.7 kB / 1.201 GB, free: 15.23 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.094e-05/0.3477, allocations: 93 kB / 1.201 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.853e-05/0.3477, allocations: 4.062 kB / 1.201 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/0.3479, allocations: 12 kB / 1.201 GB, free: 15.11 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.183e-05/0.3479, allocations: 11.92 kB / 1.201 GB, free: 15.09 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.3479, allocations: 15.98 kB / 1.201 GB, free: 15.08 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.423e-05/0.3479, allocations: 75.28 kB / 1.201 GB, free: 15 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3479, allocations: 0 / 1.201 GB, free: 15 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002012/0.3482, allocations: 24 kB / 1.201 GB, free: 14.98 MB / 0.9669 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.0004905/0.3486, allocations: 0.7492 MB / 1.202 GB, free: 14.2 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001744/0.3488, allocations: 107.9 kB / 1.202 GB, free: 14.1 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3488, allocations: 0 / 1.202 GB, free: 14.1 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 6.632e-05/0.3489, allocations: 57.08 kB / 1.202 GB, free: 14.04 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000222/0.3491, allocations: 21.75 kB / 1.202 GB, free: 14.02 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.3508, allocations: 1.841 MB / 1.204 GB, free: 12.08 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002248/0.351, allocations: 0.7011 MB / 1.204 GB, free: 11.36 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001199/0.3511, allocations: 24.62 kB / 1.204 GB, free: 11.33 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.068e-05/0.3512, allocations: 27.42 kB / 1.204 GB, free: 11.3 MB / 0.9669 GB Notification: Performance of SimCode: time 2.31e-07/0.3512, allocations: 4 kB / 1.204 GB, free: 11.3 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4249/0.7761, allocations: 2.233 MB / 1.206 GB, free: 9.156 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002212/0.7764, allocations: 192.6 kB / 1.207 GB, free: 8.902 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.591/2.368, allocations: 0 / 1.207 GB, free: 8.902 MB / 0.9669 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[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