Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck",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.000858/0.0008579, allocations: 98.27 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.007673/0.007673, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.249/1.249, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.146/2.146, allocations: 390.9 MB / 0.6664 GB, free: 2.395 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003073/0.0003073, allocations: 11.98 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5862/0.5865, allocations: 142.4 MB / 0.9552 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck): time 0.00124/0.5878, allocations: 0.9855 MB / 0.9561 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002541/0.5904, allocations: 2.471 MB / 0.9585 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.942e-05/0.5904, allocations: 1.812 kB / 0.9585 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.697e-05/0.5905, allocations: 3.938 kB / 0.9586 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.364e-05/0.5905, allocations: 7.922 kB / 0.9586 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004162/0.5909, allocations: 113.1 kB / 0.9587 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.457e-05/0.591, allocations: 41.09 kB / 0.9587 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.491e-05/0.591, allocations: 1.375 kB / 0.9587 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.932e-05/0.5911, allocations: 21.55 kB / 0.9587 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.101e-05/0.5911, allocations: 14.84 kB / 0.9587 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.065e-05/0.5911, allocations: 5.312 kB / 0.9587 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002343/0.5914, allocations: 108.1 kB / 0.9589 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.406e-05/0.5914, allocations: 18.72 kB / 0.9589 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.983e-05/0.5914, allocations: 40.52 kB / 0.9589 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001586/0.5916, allocations: 80.59 kB / 0.959 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.5916, allocations: 0 / 0.959 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.943e-06/0.5916, allocations: 0 / 0.959 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.097e-06/0.5916, allocations: 0 / 0.959 GB, free: 4.734 MB / 0.7169 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.0002758/0.5919, allocations: 343.8 kB / 0.9593 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.592, allocations: 9.625 kB / 0.9593 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.858e-05/0.592, allocations: 32.09 kB / 0.9594 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000185/0.5922, allocations: 22.27 kB / 0.9594 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.499e-05/0.5923, allocations: 161.7 kB / 0.9595 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.106e-06/0.5923, allocations: 2.094 kB / 0.9595 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.26e-05/0.5923, allocations: 7.75 kB / 0.9595 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001087/0.5924, allocations: 76.92 kB / 0.9596 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.5924, allocations: 1.062 kB / 0.9596 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.5924, allocations: 5 kB / 0.9596 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.5924, allocations: 1.156 kB / 0.9596 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.532e-05/0.5925, allocations: 13.94 kB / 0.9596 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004297/0.5929, allocations: 472 kB / 0.9601 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001016/0.593, allocations: 73.88 kB / 0.9602 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.342e-05/0.5931, allocations: 27.19 kB / 0.9602 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.604e-06/0.5931, allocations: 0.7812 kB / 0.9602 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.601e-05/0.5931, allocations: 36.41 kB / 0.9602 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.042e-06/0.5931, allocations: 1.469 kB / 0.9602 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004864/0.5936, allocations: 306.1 kB / 0.9605 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.547e-05/0.5936, allocations: 107.6 kB / 0.9606 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.9e-05/0.5937, allocations: 95.05 kB / 0.9607 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.094e-05/0.5937, allocations: 31.23 kB / 0.9607 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.278e-05/0.5937, allocations: 84.05 kB / 0.9608 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.607e-05/0.5937, allocations: 31.67 kB / 0.9608 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.196e-05/0.5938, allocations: 21.66 kB / 0.9609 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.854e-05/0.5938, allocations: 323.9 kB / 0.9612 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.344e-05/0.5938, allocations: 6.938 kB / 0.9612 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.705e-05/0.5939, allocations: 60.98 kB / 0.9612 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.23e-05/0.594, allocations: 83.45 kB / 0.9613 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.22e-07/0.594, allocations: 0 / 0.9613 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001142/0.5941, allocations: 94.89 kB / 0.9614 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.5941, allocations: 6.125 kB / 0.9614 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.5941, allocations: 1.094 kB / 0.9614 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.5941, allocations: 6.344 kB / 0.9614 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.203e-05/0.5942, allocations: 20.16 kB / 0.9614 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.5942, allocations: 6.422 kB / 0.9614 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.422e-05/0.5943, allocations: 6.062 kB / 0.9614 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.5943, allocations: 8.156 kB / 0.9615 GB, free: 2.117 MB / 0.7169 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 5.185e-05/0.5943, allocations: 113.6 kB / 0.9616 GB, free: 2 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.383e-05/0.5944, allocations: 2.75 kB / 0.9616 GB, free: 2 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.582e-05/0.5944, allocations: 8.656 kB / 0.9616 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.5944, allocations: 5.594 kB / 0.9616 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.5944, allocations: 1.031 kB / 0.9616 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.5944, allocations: 1 kB / 0.9616 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002781/0.5947, allocations: 185.8 kB / 0.9618 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.5947, allocations: 1.125 kB / 0.9618 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.991e-05/0.5948, allocations: 17.42 kB / 0.9618 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.5948, allocations: 1.156 kB / 0.9618 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.5948, allocations: 1.906 kB / 0.9618 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.5948, allocations: 4.688 kB / 0.9618 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.5949, allocations: 1.594 kB / 0.9618 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001511/0.595, allocations: 332.8 kB / 0.9621 GB, free: 1.453 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.26e-05/0.595, allocations: 84.17 kB / 0.9622 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.5951, allocations: 1.062 kB / 0.9622 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.5952, allocations: 7.781 kB / 0.9622 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.592e-05/0.5952, allocations: 10.69 kB / 0.9622 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.291e-06/0.5953, allocations: 10.69 kB / 0.9622 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.771e-05/0.5953, allocations: 80.64 kB / 0.9623 GB, free: 1.258 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5953, allocations: 1.375 kB / 0.9623 GB, free: 1.258 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002914/0.5956, allocations: 13.62 kB / 0.9623 GB, free: 1.254 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.000279/0.5959, allocations: 0.8643 MB / 0.9631 GB, free: 428 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 8.984e-05/0.596, allocations: 46.03 kB / 0.9632 GB, free: 408 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.596, allocations: 1.375 kB / 0.9632 GB, free: 408 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.292e-05/0.596, allocations: 26.86 kB / 0.9632 GB, free: 392 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003929/0.5964, allocations: 9.438 kB / 0.9632 GB, free: 388 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001288/0.5977, allocations: 1.754 MB / 0.9649 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001986/0.5979, allocations: 0.6828 MB / 0.9656 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.399e-05/0.598, allocations: 14.95 kB / 0.9656 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.373e-05/0.598, allocations: 15.34 kB / 0.9656 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of SimCode: time 2.6e-07/0.598, allocations: 0 / 0.9656 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.307/1.905, allocations: 1.491 MB / 0.9671 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002156/1.905, allocations: 247.6 kB / 0.9673 GB, free: 13.04 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.491/3.396, allocations: 2.922 kB / 0.9673 GB, free: 13.04 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck.fmu > Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.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 Error: Could not read variable der(cpCod) in file Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat. Warning: Get data of variable der(cpCod) from file Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat failed! Error: Could not read variable der(cvCod) in file Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat. Warning: Get data of variable der(cvCod) from file Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_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