Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00172/0.00172, allocations: 113 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002163/0.002163, allocations: 209.8 kB / 22.25 MB, free: 5.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.483/1.483, allocations: 230.6 MB / 256 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.295/3.295, allocations: 0.49 GB / 0.7951 GB, free: 33.25 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_12_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_12_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002038/0.002038, allocations: 69.03 kB / 1.154 GB, free: 25.72 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3796/0.3817, allocations: 176.1 MB / 1.326 GB, free: 1.98 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002395/0.384, allocations: 1.283 MB / 1.327 GB, free: 0.6914 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.004232/0.3883, allocations: 3.359 MB / 1.33 GB, free: 13.31 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.36e-05/0.3883, allocations: 0 / 1.33 GB, free: 13.31 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 1.987e-05/0.3883, allocations: 0 / 1.33 GB, free: 13.31 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.539e-05/0.3884, allocations: 3.938 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004854/0.3889, allocations: 107.5 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 9.531e-05/0.389, allocations: 43.83 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 3.397e-05/0.389, allocations: 3.938 kB / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 4.557e-05/0.389, allocations: 27.92 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.315e-05/0.3891, allocations: 15.92 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.281e-05/0.3891, allocations: 4 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002261/0.3893, allocations: 79.8 kB / 1.331 GB, free: 13.03 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.712e-05/0.3894, allocations: 11.98 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.086e-05/0.3894, allocations: 15.92 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001902/0.3896, allocations: 68.02 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.3896, allocations: 4 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3896, allocations: 0 / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.149e-06/0.3896, allocations: 0 / 1.331 GB, free: 12.93 MB / 1.029 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.0004355/0.39, allocations: 278.2 kB / 1.331 GB, free: 12.63 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.3901, allocations: 8.031 kB / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.3e-05/0.3901, allocations: 38.75 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.08e-05/0.3902, allocations: 4.938 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.3903, allocations: 110.5 kB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.3903, allocations: 4.375 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.587e-05/0.3903, allocations: 8.375 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001303/0.3905, allocations: 57.55 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.3905, allocations: 4 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.3905, allocations: 4 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.3905, allocations: 0 / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.448e-05/0.3906, allocations: 15.98 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001741/0.3907, allocations: 136.7 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 9.866e-05/0.3908, allocations: 54.61 kB / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.78e-05/0.3909, allocations: 8.859 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005622/0.3914, allocations: 253.8 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.3915, allocations: 38.55 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of pre-optimization done (n=5): time 1.032e-06/0.3915, allocations: 0 / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0005407/0.392, allocations: 233.8 kB / 1.332 GB, free: 11.51 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.392, allocations: 51.41 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.481e-05/0.3921, allocations: 105.8 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.3921, allocations: 29.7 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.654e-05/0.3922, allocations: 84.09 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.379e-05/0.3922, allocations: 31.73 kB / 1.332 GB, free: 11.18 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.234e-05/0.3922, allocations: 25.72 kB / 1.332 GB, free: 11.15 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001263/0.3924, allocations: 318.8 kB / 1.333 GB, free: 10.83 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.028e-05/0.3924, allocations: 12 kB / 1.333 GB, free: 10.82 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.37e-05/0.3925, allocations: 61.08 kB / 1.333 GB, free: 10.74 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.223e-05/0.3926, allocations: 73.08 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.3926, allocations: 4 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001373/0.3927, allocations: 89.55 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.3927, allocations: 11.94 kB / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.3927, allocations: 0 / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.3927, allocations: 4 kB / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.362e-05/0.3928, allocations: 16 kB / 1.333 GB, free: 10.52 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.3928, allocations: 3.938 kB / 1.333 GB, free: 10.52 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.998e-05/0.3928, allocations: 11.94 kB / 1.333 GB, free: 10.51 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.997e-06/0.3929, allocations: 7.984 kB / 1.333 GB, free: 10.5 MB / 1.029 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 7.98e-05/0.3929, allocations: 118.5 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.783e-05/0.393, allocations: 3.953 kB / 1.333 GB, free: 10.37 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.714e-05/0.393, allocations: 8.062 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.393, allocations: 4 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.393, allocations: 0 / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/0.393, allocations: 3.938 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002315/0.3932, allocations: 144.7 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3932, allocations: 0 / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.878e-05/0.3933, allocations: 19.98 kB / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.3933, allocations: 11.94 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.764e-06/0.3933, allocations: 0 / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.3933, allocations: 0 / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.3933, allocations: 0 / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002144/0.3936, allocations: 175.6 kB / 1.333 GB, free: 9.953 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.567e-05/0.3936, allocations: 7.953 kB / 1.333 GB, free: 9.945 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.274e-05/0.3936, allocations: 0 / 1.333 GB, free: 9.945 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.3937, allocations: 8 kB / 1.333 GB, free: 9.938 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.89e-05/0.3937, allocations: 12.3 kB / 1.333 GB, free: 9.926 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.039e-06/0.3937, allocations: 4 kB / 1.333 GB, free: 9.922 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.347e-05/0.3938, allocations: 83.27 kB / 1.333 GB, free: 9.84 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3938, allocations: 0 / 1.333 GB, free: 9.84 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000236/0.394, allocations: 12 kB / 1.333 GB, free: 9.828 MB / 1.029 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.0004876/0.3945, allocations: 0.7085 MB / 1.334 GB, free: 9.094 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001218/0.3946, allocations: 43.89 kB / 1.334 GB, free: 9.051 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3946, allocations: 0 / 1.334 GB, free: 9.051 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 2.803e-05/0.3946, allocations: 19.94 kB / 1.334 GB, free: 9.031 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003001/0.3949, allocations: 9.188 kB / 1.334 GB, free: 9.023 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001548/0.3965, allocations: 1.54 MB / 1.336 GB, free: 7.371 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003039/0.3968, allocations: 0.6885 MB / 1.336 GB, free: 6.656 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.409e-05/0.3968, allocations: 4 kB / 1.336 GB, free: 6.652 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.129e-05/0.3969, allocations: 15.44 kB / 1.336 GB, free: 6.637 MB / 1.029 GB Notification: Performance of SimCode: time 4.31e-07/0.3969, allocations: 4 kB / 1.336 GB, free: 6.633 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02924/0.4261, allocations: 1.817 MB / 1.338 GB, free: 4.949 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/11.22, allocations: 2.438 kB / 1.338 GB, free: 4.949 MB / 1.029 GB " [Timeout remaining time 289] (rm -f Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable der(hLiqSym) in file Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.csv. Warning: Get data of variable der(hLiqSym) from file Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.csv failed! Error: Could not read variable der(hLiqCod) in file Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.csv. Warning: Get data of variable der(hLiqCod) from file Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.csv failed! Error: Could not read variable der(cpSym) in file Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.csv. Warning: Get data of variable der(cpSym) from file Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.csv failed! Error: Could not read variable der(cpCod) in file Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.csv. Warning: Get data of variable der(cpCod) from file Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.csv failed! Error: Could not read variable der(cvSym) in file Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.csv. Warning: Get data of variable der(cvSym) from file Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.csv failed! Error: Could not read variable der(cvCod) in file Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.csv. Warning: Get data of variable der(cvCod) from file Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.252411830999336]