Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.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.WaterDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterDerivativeCheck",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.005808/0.005808, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001313/0.001313, allocations: 196.4 kB / 16.67 MB, free: 5.93 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.701/2.701, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 67.89 kB / 1.054 GB, free: 7.707 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3656/0.3671, allocations: 157.4 MB / 1.207 GB, free: 10.21 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.003246/0.3704, allocations: 1.266 MB / 1.208 GB, free: 8.934 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.005472/0.3759, allocations: 3.272 MB / 1.212 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.572e-05/0.376, allocations: 0 / 1.212 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.429e-05/0.376, allocations: 3.938 kB / 1.212 GB, free: 5.637 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.586e-05/0.3761, allocations: 4 kB / 1.212 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006823/0.3768, allocations: 103.5 kB / 1.212 GB, free: 5.531 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001056/0.3769, allocations: 35.91 kB / 1.212 GB, free: 5.496 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.876e-05/0.377, allocations: 4 kB / 1.212 GB, free: 5.492 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.048e-05/0.377, allocations: 19.92 kB / 1.212 GB, free: 5.473 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.846e-05/0.3771, allocations: 19.97 kB / 1.212 GB, free: 5.453 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.309e-05/0.3772, allocations: 0 / 1.212 GB, free: 5.453 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003365/0.3775, allocations: 83.75 kB / 1.212 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.763e-05/0.3776, allocations: 7.922 kB / 1.212 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.736e-05/0.3776, allocations: 19.92 kB / 1.212 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002371/0.3779, allocations: 64.14 kB / 1.212 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.625e-06/0.3779, allocations: 0 / 1.212 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.004e-06/0.3779, allocations: 3.938 kB / 1.212 GB, free: 5.277 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.58e-06/0.3779, allocations: 4 kB / 1.212 GB, free: 5.273 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005681/0.3785, allocations: 347.5 kB / 1.212 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.45e-05/0.3785, allocations: 12.62 kB / 1.212 GB, free: 4.875 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.599e-05/0.3786, allocations: 30.75 kB / 1.212 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000136/0.3787, allocations: 4.938 kB / 1.212 GB, free: 4.832 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001664/0.3789, allocations: 172.2 kB / 1.213 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.3789, allocations: 8.375 kB / 1.213 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.327e-05/0.379, allocations: 8.312 kB / 1.213 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001685/0.3792, allocations: 61.61 kB / 1.213 GB, free: 4.543 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.3792, allocations: 0 / 1.213 GB, free: 4.543 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.3792, allocations: 0 / 1.213 GB, free: 4.543 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.3792, allocations: 0 / 1.213 GB, free: 4.543 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.905e-05/0.3793, allocations: 19.98 kB / 1.213 GB, free: 4.523 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002435/0.3796, allocations: 165.6 kB / 1.213 GB, free: 4.312 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000144/0.3797, allocations: 50.5 kB / 1.213 GB, free: 4.254 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.266e-05/0.3798, allocations: 16.86 kB / 1.213 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001004/0.3808, allocations: 0.5988 MB / 1.213 GB, free: 3.527 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.3808, allocations: 30.56 kB / 1.213 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=5): time 1.373e-06/0.3808, allocations: 0 / 1.213 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.000824/0.3817, allocations: 306.1 kB / 1.214 GB, free: 3.137 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.817e-05/0.3817, allocations: 55.41 kB / 1.214 GB, free: 3.07 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.205e-05/0.3818, allocations: 109.8 kB / 1.214 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.3819, allocations: 25.7 kB / 1.214 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.623e-05/0.3819, allocations: 84.14 kB / 1.214 GB, free: 2.836 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.456e-05/0.382, allocations: 31.62 kB / 1.214 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.222e-05/0.382, allocations: 29.64 kB / 1.214 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.3822, allocations: 322.8 kB / 1.214 GB, free: 2.445 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.846e-05/0.3823, allocations: 15.98 kB / 1.214 GB, free: 2.43 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.519e-05/0.3824, allocations: 53.14 kB / 1.214 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001259/0.3825, allocations: 69.09 kB / 1.215 GB, free: 2.273 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.3825, allocations: 0 / 1.215 GB, free: 2.273 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002067/0.3827, allocations: 97.45 kB / 1.215 GB, free: 2.172 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.3827, allocations: 8 kB / 1.215 GB, free: 2.164 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.3828, allocations: 0 / 1.215 GB, free: 2.164 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.3828, allocations: 4 kB / 1.215 GB, free: 2.16 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001335/0.3829, allocations: 23.92 kB / 1.215 GB, free: 2.137 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.3829, allocations: 0 / 1.215 GB, free: 2.137 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.421e-05/0.383, allocations: 7.938 kB / 1.215 GB, free: 2.129 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.1e-05/0.383, allocations: 8.125 kB / 1.215 GB, free: 2.121 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (12): * Single equations (assignments): 12 * 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 0.0001007/0.3831, allocations: 113.8 kB / 1.215 GB, free: 2 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.715e-05/0.3832, allocations: 0 / 1.215 GB, free: 2 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.651e-05/0.3832, allocations: 11.95 kB / 1.215 GB, free: 1.992 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.3833, allocations: 4 kB / 1.215 GB, free: 1.988 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3833, allocations: 0 / 1.215 GB, free: 1.988 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.3833, allocations: 3.938 kB / 1.215 GB, free: 1.984 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003755/0.3837, allocations: 177.6 kB / 1.215 GB, free: 1.762 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.3837, allocations: 3.938 kB / 1.215 GB, free: 1.758 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001342/0.3838, allocations: 16 kB / 1.215 GB, free: 1.742 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.3838, allocations: 0 / 1.215 GB, free: 1.742 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/0.3839, allocations: 4 kB / 1.215 GB, free: 1.738 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.74e-06/0.3839, allocations: 3.984 kB / 1.215 GB, free: 1.734 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3839, allocations: 0 / 1.215 GB, free: 1.734 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000306/0.3842, allocations: 171.8 kB / 1.215 GB, free: 1.551 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00011/0.3843, allocations: 89.14 kB / 1.215 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.442e-05/0.3844, allocations: 3.938 kB / 1.215 GB, free: 1.441 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001785/0.3845, allocations: 12 kB / 1.215 GB, free: 1.43 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.08e-05/0.3846, allocations: 11.86 kB / 1.215 GB, free: 1.418 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.3846, allocations: 4 kB / 1.215 GB, free: 1.414 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.322e-05/0.3847, allocations: 79.66 kB / 1.215 GB, free: 1.336 MB / 0.9669 GB Notification: Performance of sort global known variables: time 3.2e-07/0.3847, allocations: 4 kB / 1.215 GB, free: 1.332 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0004512/0.3852, allocations: 8 kB / 1.215 GB, free: 1.324 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,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 (7): * Single equations (assignments): 7 * 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.0007035/0.3859, allocations: 0.7087 MB / 1.216 GB, free: 0.5859 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001711/0.3861, allocations: 48.14 kB / 1.216 GB, free: 0.5391 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3861, allocations: 0 / 1.216 GB, free: 0.5391 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 3.753e-05/0.3861, allocations: 15.97 kB / 1.216 GB, free: 0.5234 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004377/0.3866, allocations: 14.05 kB / 1.216 GB, free: 0.5117 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00226/0.3888, allocations: 1.532 MB / 1.218 GB, free: 14.87 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003534/0.3892, allocations: 0.6846 MB / 1.218 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.903e-05/0.3893, allocations: 11.92 kB / 1.218 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.287e-05/0.3894, allocations: 19.44 kB / 1.218 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of SimCode: time 6.71e-07/0.3894, allocations: 0 / 1.218 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02296/0.4123, allocations: 1.668 MB / 1.22 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.678/8.09, allocations: 5.453 kB / 1.22 GB, free: 12.54 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.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 Error: Could not read variable der(cpCod) in file Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cpCod) from file Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat failed! Error: Could not read variable der(cvCod) in file Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cvCod) from file Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat failed! " Variables in the reference:time,der(hLiqSym),der(hLiqCod),der(cpSym),der(cpCod),der(cvSym),der(cvCod) Variables in the result:T,cpCod,cpSym,cvCod,cvSym,der(T),der(cpSym),der(cvSym),der(hLiqCod),der(hLiqSym),hLiqCod,hLiqSym,time