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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0009907/0.0009907, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007984/0.007984, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.252/1.252, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.283/2.283, allocations: 437.8 MB / 0.7121 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000338/0.0003381, allocations: 8 kB / 0.8729 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5222/0.5226, allocations: 153.8 MB / 1.023 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.001125/0.5237, allocations: 1.062 MB / 1.024 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1298/0.6536, allocations: 144.2 MB / 1.165 GB, free: 13.95 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.487e-05/0.6536, allocations: 8 kB / 1.165 GB, free: 13.94 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.021e-05/0.6537, allocations: 3.984 kB / 1.165 GB, free: 13.93 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.982e-05/0.6538, allocations: 3.938 kB / 1.165 GB, free: 13.93 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008289/0.6546, allocations: 310.8 kB / 1.165 GB, free: 13.62 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.00011/0.6547, allocations: 87.67 kB / 1.165 GB, free: 13.54 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.058e-05/0.6547, allocations: 4 kB / 1.165 GB, free: 13.54 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.961e-05/0.6548, allocations: 31.91 kB / 1.165 GB, free: 13.5 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.143e-05/0.6549, allocations: 31.89 kB / 1.165 GB, free: 13.47 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.072e-05/0.6549, allocations: 4 kB / 1.165 GB, free: 13.47 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007759/0.6557, allocations: 494.7 kB / 1.166 GB, free: 12.98 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.393e-05/0.6557, allocations: 11.98 kB / 1.166 GB, free: 12.97 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.661e-05/0.6558, allocations: 61.55 kB / 1.166 GB, free: 12.91 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002969/0.6561, allocations: 189.8 kB / 1.166 GB, free: 12.72 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.6561, allocations: 0 / 1.166 GB, free: 12.72 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.312e-06/0.6561, allocations: 0 / 1.166 GB, free: 12.72 MB / 0.92 GB Notification: Performance of Transformations before backend: time 3.617e-06/0.6561, allocations: 0 / 1.166 GB, free: 12.72 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.0003654/0.6565, allocations: 379.3 kB / 1.167 GB, free: 12.3 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.6565, allocations: 12.03 kB / 1.167 GB, free: 12.29 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.685e-05/0.6566, allocations: 34.75 kB / 1.167 GB, free: 12.25 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003791/0.657, allocations: 36.81 kB / 1.167 GB, free: 12.21 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.999e-05/0.6571, allocations: 184 kB / 1.167 GB, free: 12 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.6571, allocations: 8 kB / 1.167 GB, free: 11.99 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.37e-05/0.6571, allocations: 8 kB / 1.167 GB, free: 11.98 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001363/0.6573, allocations: 69.66 kB / 1.167 GB, free: 11.91 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.6573, allocations: 3.984 kB / 1.167 GB, free: 11.9 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.6573, allocations: 8 kB / 1.167 GB, free: 11.89 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-06/0.6573, allocations: 0 / 1.167 GB, free: 11.89 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.912e-05/0.6574, allocations: 43.95 kB / 1.167 GB, free: 11.85 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001733/0.6576, allocations: 193.4 kB / 1.167 GB, free: 11.61 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001631/0.6577, allocations: 102.6 kB / 1.167 GB, free: 11.5 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.763e-05/0.6578, allocations: 28.84 kB / 1.167 GB, free: 11.47 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000206/0.658, allocations: 174.2 kB / 1.167 GB, free: 11.27 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.658, allocations: 38.56 kB / 1.167 GB, free: 11.22 MB / 0.92 GB Notification: Performance of pre-optimization done (n=12): time 1.112e-06/0.6581, allocations: 0 / 1.167 GB, free: 11.22 MB / 0.92 GB Notification: Performance of matching and sorting (n=19): time 0.001165/0.6592, allocations: 0.5464 MB / 1.168 GB, free: 10.62 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/0.6593, allocations: 55.41 kB / 1.168 GB, free: 10.55 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.024e-05/0.6593, allocations: 101.8 kB / 1.168 GB, free: 10.45 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.6594, allocations: 29.7 kB / 1.168 GB, free: 10.41 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.035e-05/0.6594, allocations: 84.52 kB / 1.168 GB, free: 10.32 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.232e-05/0.6594, allocations: 70.98 kB / 1.168 GB, free: 10.25 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.247e-05/0.6595, allocations: 29.7 kB / 1.168 GB, free: 10.22 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 8.875e-05/0.6596, allocations: 314.8 kB / 1.169 GB, free: 9.902 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.548e-05/0.6596, allocations: 39.97 kB / 1.169 GB, free: 9.863 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.569e-05/0.6597, allocations: 67.53 kB / 1.169 GB, free: 9.785 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001442/0.6599, allocations: 115.4 kB / 1.169 GB, free: 9.66 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.91e-07/0.6599, allocations: 0 / 1.169 GB, free: 9.66 MB / 0.92 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002103/0.6601, allocations: 165.4 kB / 1.169 GB, free: 9.492 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.6601, allocations: 4 kB / 1.169 GB, free: 9.488 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.6601, allocations: 4 kB / 1.169 GB, free: 9.484 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.067e-06/0.6601, allocations: 0 / 1.169 GB, free: 9.484 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.6603, allocations: 35.98 kB / 1.169 GB, free: 9.449 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.268e-06/0.6603, allocations: 11.94 kB / 1.169 GB, free: 9.438 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.22e-05/0.6604, allocations: 4 kB / 1.169 GB, free: 9.434 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.539e-05/0.6604, allocations: 4 kB / 1.169 GB, free: 9.43 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.855e-05/0.6605, allocations: 126.3 kB / 1.169 GB, free: 9.297 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.991e-05/0.6605, allocations: 11.89 kB / 1.169 GB, free: 9.285 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.626e-05/0.6606, allocations: 20.38 kB / 1.169 GB, free: 9.266 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.6606, allocations: 0 / 1.169 GB, free: 9.266 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.6606, allocations: 7.938 kB / 1.169 GB, free: 9.258 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.6606, allocations: 4 kB / 1.169 GB, free: 9.254 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001433/0.6607, allocations: 193.6 kB / 1.169 GB, free: 9.016 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.6607, allocations: 0 / 1.169 GB, free: 9.016 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.6609, allocations: 39.86 kB / 1.169 GB, free: 8.977 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.6609, allocations: 4 kB / 1.169 GB, free: 8.973 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/0.6609, allocations: 4 kB / 1.169 GB, free: 8.969 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.661, allocations: 3.984 kB / 1.169 GB, free: 8.965 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.765e-06/0.661, allocations: 3.938 kB / 1.169 GB, free: 8.961 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002619/0.6612, allocations: 199.3 kB / 1.17 GB, free: 8.75 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 6.656e-05/0.6613, allocations: 101.1 kB / 1.17 GB, free: 8.633 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.453e-05/0.6613, allocations: 0 / 1.17 GB, free: 8.633 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.6615, allocations: 11.98 kB / 1.17 GB, free: 8.621 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.323e-05/0.6615, allocations: 19.86 kB / 1.17 GB, free: 8.602 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.171e-05/0.6615, allocations: 8.25 kB / 1.17 GB, free: 8.594 MB / 0.92 GB Notification: Performance of sorting global known variables: time 2.788e-05/0.6615, allocations: 75.28 kB / 1.17 GB, free: 8.52 MB / 0.92 GB Notification: Performance of sort global known variables: time 1e-07/0.6615, allocations: 0 / 1.17 GB, free: 8.52 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002138/0.6618, allocations: 32 kB / 1.17 GB, free: 8.488 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.0004951/0.6623, allocations: 0.7502 MB / 1.171 GB, free: 7.711 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001639/0.6624, allocations: 101.8 kB / 1.171 GB, free: 7.613 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.6624, allocations: 0 / 1.171 GB, free: 7.613 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 7.38e-05/0.6625, allocations: 55.92 kB / 1.171 GB, free: 7.559 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002156/0.6627, allocations: 23.92 kB / 1.171 GB, free: 7.535 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001659/0.6644, allocations: 1.917 MB / 1.173 GB, free: 5.52 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000225/0.6647, allocations: 0.7049 MB / 1.173 GB, free: 4.789 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0001214/0.6648, allocations: 24.62 kB / 1.173 GB, free: 4.766 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.05e-05/0.6648, allocations: 23.44 kB / 1.173 GB, free: 4.742 MB / 0.92 GB Notification: Performance of SimCode: time 2.1e-07/0.6648, allocations: 0 / 1.173 GB, free: 4.742 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.648/4.313, allocations: 2.167 MB / 1.176 GB, free: 2.684 MB / 0.92 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000505/4.313, allocations: 193.6 kB / 1.176 GB, free: 2.426 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.517/6.83, allocations: 0 / 1.176 GB, free: 2.426 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