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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.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.004224/0.004225, allocations: 95.83 kB / 15.73 MB, free: 6.039 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.001259/0.001259, allocations: 200 kB / 16.68 MB, free: 5.969 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.952/2.952, allocations: 482.4 MB / 0.7548 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001928, allocations: 63.91 kB / 1.083 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.2833, allocations: 162.2 MB / 1.241 GB, free: 10.29 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002197/0.2856, allocations: 1.27 MB / 1.243 GB, free: 9.008 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.003837/0.2894, allocations: 3.256 MB / 1.246 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.128e-05/0.2894, allocations: 4 kB / 1.246 GB, free: 5.723 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.518e-05/0.2895, allocations: 3.984 kB / 1.246 GB, free: 5.719 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 3.894e-05/0.2895, allocations: 3.938 kB / 1.246 GB, free: 5.715 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000451/0.29, allocations: 107.5 kB / 1.246 GB, free: 5.609 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 7.253e-05/0.2901, allocations: 35.86 kB / 1.246 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 2.726e-05/0.2901, allocations: 4 kB / 1.246 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.99e-05/0.2901, allocations: 15.92 kB / 1.246 GB, free: 5.555 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.015e-05/0.2902, allocations: 23.97 kB / 1.246 GB, free: 5.531 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.042e-05/0.2902, allocations: 0 / 1.246 GB, free: 5.531 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002213/0.2905, allocations: 75.81 kB / 1.246 GB, free: 5.457 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.786e-05/0.2905, allocations: 11.92 kB / 1.246 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.322e-05/0.2905, allocations: 19.98 kB / 1.246 GB, free: 5.426 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001704/0.2907, allocations: 67.73 kB / 1.246 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.2907, allocations: 0 / 1.246 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2907, allocations: 0 / 1.246 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.958e-06/0.2907, allocations: 0 / 1.246 GB, free: 5.359 MB / 0.9981 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.0004087/0.2911, allocations: 355.3 kB / 1.247 GB, free: 4.965 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.2912, allocations: 12.03 kB / 1.247 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.062e-05/0.2912, allocations: 34.75 kB / 1.247 GB, free: 4.91 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.849e-05/0.2913, allocations: 4.938 kB / 1.247 GB, free: 4.906 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001295/0.2915, allocations: 164.4 kB / 1.247 GB, free: 4.707 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.269e-05/0.2915, allocations: 8.312 kB / 1.247 GB, free: 4.699 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.503e-05/0.2915, allocations: 12.33 kB / 1.247 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001248/0.2916, allocations: 53.61 kB / 1.247 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.2917, allocations: 0 / 1.247 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.168e-05/0.2917, allocations: 7.938 kB / 1.247 GB, free: 4.621 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.2917, allocations: 4 kB / 1.247 GB, free: 4.617 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.124e-05/0.2917, allocations: 15.98 kB / 1.247 GB, free: 4.602 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001888/0.2919, allocations: 165.7 kB / 1.247 GB, free: 4.391 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 9.673e-05/0.292, allocations: 50.55 kB / 1.247 GB, free: 4.332 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.163e-05/0.2921, allocations: 16.86 kB / 1.247 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000725/0.2928, allocations: 0.6023 MB / 1.248 GB, free: 3.602 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.996e-05/0.2928, allocations: 34.56 kB / 1.248 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=5): time 1.112e-06/0.2929, allocations: 0 / 1.248 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.000559/0.2934, allocations: 294.6 kB / 1.248 GB, free: 3.219 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.412e-05/0.2935, allocations: 55.41 kB / 1.248 GB, free: 3.152 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.317e-05/0.2936, allocations: 101.8 kB / 1.248 GB, free: 3.043 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.345e-05/0.2936, allocations: 37.69 kB / 1.248 GB, free: 3 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.629e-05/0.2936, allocations: 88.03 kB / 1.248 GB, free: 2.91 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.304e-05/0.2937, allocations: 23.81 kB / 1.248 GB, free: 2.887 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.453e-05/0.2937, allocations: 29.7 kB / 1.248 GB, free: 2.852 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.2939, allocations: 310.8 kB / 1.249 GB, free: 2.539 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.185e-05/0.2939, allocations: 15.98 kB / 1.249 GB, free: 2.523 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.464e-05/0.294, allocations: 61.08 kB / 1.249 GB, free: 2.445 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.634e-05/0.2941, allocations: 73.47 kB / 1.249 GB, free: 2.355 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.2941, allocations: 0 / 1.249 GB, free: 2.355 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001652/0.2942, allocations: 97.5 kB / 1.249 GB, free: 2.254 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.2943, allocations: 8 kB / 1.249 GB, free: 2.246 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.2943, allocations: 0 / 1.249 GB, free: 2.246 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.2943, allocations: 8 kB / 1.249 GB, free: 2.238 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.161e-05/0.2944, allocations: 19.98 kB / 1.249 GB, free: 2.219 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.2944, allocations: 3.938 kB / 1.249 GB, free: 2.215 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.241e-05/0.2944, allocations: 11.94 kB / 1.249 GB, free: 2.203 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-06/0.2945, allocations: 4 kB / 1.249 GB, free: 2.199 MB / 0.9981 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 9.09e-05/0.2945, allocations: 118.4 kB / 1.249 GB, free: 2.074 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.606e-05/0.2946, allocations: 4 kB / 1.249 GB, free: 2.07 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.491e-05/0.2946, allocations: 7.969 kB / 1.249 GB, free: 2.062 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.2946, allocations: 4 kB / 1.249 GB, free: 2.059 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.2946, allocations: 3.984 kB / 1.249 GB, free: 2.055 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.2946, allocations: 3.938 kB / 1.249 GB, free: 2.051 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003015/0.2949, allocations: 169.7 kB / 1.249 GB, free: 1.836 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.295, allocations: 0 / 1.249 GB, free: 1.836 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.108e-05/0.295, allocations: 19.94 kB / 1.249 GB, free: 1.816 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.2951, allocations: 0 / 1.249 GB, free: 1.816 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.849e-06/0.2951, allocations: 8 kB / 1.249 GB, free: 1.809 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.2951, allocations: 3.938 kB / 1.249 GB, free: 1.805 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2951, allocations: 0 / 1.249 GB, free: 1.805 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001893/0.2953, allocations: 175.4 kB / 1.249 GB, free: 1.617 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.835e-05/0.2953, allocations: 85.14 kB / 1.249 GB, free: 1.516 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.196e-05/0.2954, allocations: 0 / 1.249 GB, free: 1.516 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.2955, allocations: 8 kB / 1.249 GB, free: 1.508 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.455e-05/0.2955, allocations: 3.938 kB / 1.249 GB, free: 1.504 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.2955, allocations: 11.98 kB / 1.249 GB, free: 1.492 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.066e-05/0.2956, allocations: 75.66 kB / 1.25 GB, free: 1.418 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.114e-06/0.2956, allocations: 0 / 1.25 GB, free: 1.418 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002594/0.2958, allocations: 19.94 kB / 1.25 GB, free: 1.398 MB / 0.9981 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.0004937/0.2963, allocations: 0.7128 MB / 1.25 GB, free: 0.6562 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001139/0.2965, allocations: 47.94 kB / 1.25 GB, free: 0.6094 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2965, allocations: 0 / 1.25 GB, free: 0.6094 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 3.003e-05/0.2965, allocations: 19.92 kB / 1.25 GB, free: 0.5898 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002594/0.2968, allocations: 11.56 kB / 1.25 GB, free: 0.582 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4716/0.7683, allocations: 1.512 MB / 1.252 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.118e-05/0.7685, allocations: 0.6832 MB / 1.252 GB, free: 13.66 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 5.679e-05/0.7685, allocations: 9.078 kB / 1.252 GB, free: 13.66 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.595e-05/0.7686, allocations: 15.36 kB / 1.253 GB, free: 13.65 MB / 0.9981 GB Notification: Performance of SimCode: time 9.72e-07/0.7686, allocations: 0.7188 kB / 1.253 GB, free: 13.65 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02279/0.7914, allocations: 1.656 MB / 1.254 GB, free: 13.34 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.683/8.474, allocations: 8.5 kB / 1.254 GB, free: 13.33 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.csv","/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) Reference file matches