Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.WaterDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_10_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.004694/0.004694, allocations: 97.92 kB / 15.73 MB, free: 6.062 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.001304/0.001304, allocations: 194.9 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.603/2.603, allocations: 437 MB / 0.7105 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002529/0.002529, allocations: 63.91 kB / 1.018 GB, free: 9.938 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8764/0.8789, allocations: 151.6 MB / 1.166 GB, free: 3.758 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.00249/0.8815, allocations: 1.252 MB / 1.167 GB, free: 2.496 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.004132/0.8856, allocations: 3.266 MB / 1.171 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.991e-05/0.8857, allocations: 3.938 kB / 1.171 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 2.503e-05/0.8857, allocations: 7.922 kB / 1.171 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 4.866e-05/0.8858, allocations: 0 / 1.171 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.000526/0.8863, allocations: 111.4 kB / 1.171 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 8.063e-05/0.8864, allocations: 39.91 kB / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 3.312e-05/0.8864, allocations: 0 / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 5.039e-05/0.8865, allocations: 23.86 kB / 1.171 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 6.369e-05/0.8866, allocations: 15.97 kB / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 1.225e-05/0.8866, allocations: 4 kB / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002363/0.8868, allocations: 75.81 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 2.455e-05/0.8869, allocations: 15.92 kB / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 2.783e-05/0.8869, allocations: 8 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0001837/0.8871, allocations: 67.5 kB / 1.171 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.8871, allocations: 4 kB / 1.171 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.302e-06/0.8871, allocations: 0 / 1.171 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.8871, allocations: 0 / 1.171 GB, free: 14.84 MB / 0.9044 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.0004555/0.8876, allocations: 351.4 kB / 1.171 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.8876, allocations: 12.86 kB / 1.171 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.767e-05/0.8877, allocations: 38.75 kB / 1.171 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.106e-05/0.8878, allocations: 4.938 kB / 1.171 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.8879, allocations: 168.3 kB / 1.171 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.284e-06/0.8879, allocations: 384 / 1.171 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.406e-05/0.888, allocations: 20.31 kB / 1.171 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000144/0.8881, allocations: 49.62 kB / 1.172 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.8882, allocations: 0 / 1.172 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.8882, allocations: 7.984 kB / 1.172 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.8882, allocations: 4 kB / 1.172 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.192e-05/0.8882, allocations: 11.98 kB / 1.172 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002036/0.8885, allocations: 161.7 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001097/0.8886, allocations: 62.55 kB / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.665e-05/0.8886, allocations: 16.86 kB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007589/0.8894, allocations: 0.5907 MB / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.64e-05/0.8894, allocations: 42.55 kB / 1.172 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=5): time 1.432e-06/0.8894, allocations: 0 / 1.172 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0006703/0.8901, allocations: 298.6 kB / 1.173 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/0.8902, allocations: 51.41 kB / 1.173 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.525e-05/0.8903, allocations: 101.7 kB / 1.173 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.059e-05/0.8903, allocations: 33.64 kB / 1.173 GB, free: 12.49 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.734e-05/0.8904, allocations: 96.06 kB / 1.173 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.619e-05/0.8904, allocations: 27.75 kB / 1.173 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.376e-05/0.8905, allocations: 29.7 kB / 1.173 GB, free: 12.33 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001462/0.8906, allocations: 318.8 kB / 1.173 GB, free: 12.01 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.245e-05/0.8907, allocations: 15.98 kB / 1.173 GB, free: 11.99 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.875e-05/0.8907, allocations: 53.09 kB / 1.173 GB, free: 11.92 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001066/0.8908, allocations: 81.25 kB / 1.173 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.8908, allocations: 0 / 1.173 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001441/0.891, allocations: 97.5 kB / 1.174 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.891, allocations: 4 kB / 1.174 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.891, allocations: 0 / 1.174 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.891, allocations: 4 kB / 1.174 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.67e-05/0.8911, allocations: 23.92 kB / 1.174 GB, free: 11.69 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.645e-06/0.8911, allocations: 8.125 kB / 1.174 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4e-05/0.8912, allocations: 8.375 kB / 1.174 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/0.8912, allocations: 4 kB / 1.174 GB, free: 11.67 MB / 0.9044 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 8.28e-05/0.8913, allocations: 113.8 kB / 1.174 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.919e-05/0.8913, allocations: 4 kB / 1.174 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.096e-05/0.8914, allocations: 11.91 kB / 1.174 GB, free: 11.53 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.8914, allocations: 0 / 1.174 GB, free: 11.53 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.8914, allocations: 4 kB / 1.174 GB, free: 11.53 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.8914, allocations: 7.922 kB / 1.174 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000252/0.8916, allocations: 169.7 kB / 1.174 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.8917, allocations: 0 / 1.174 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.022e-05/0.8918, allocations: 23.98 kB / 1.174 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.8918, allocations: 0 / 1.174 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.8918, allocations: 0 / 1.174 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.8918, allocations: 0 / 1.174 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.8918, allocations: 0 / 1.174 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001965/0.892, allocations: 179.4 kB / 1.174 GB, free: 11.09 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.519e-05/0.8921, allocations: 81.09 kB / 1.174 GB, free: 10.99 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.8921, allocations: 7.984 kB / 1.174 GB, free: 10.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.929e-05/0.8922, allocations: 4 kB / 1.174 GB, free: 10.98 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.917e-05/0.8922, allocations: 11.94 kB / 1.174 GB, free: 10.97 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.56e-06/0.8922, allocations: 0 / 1.174 GB, free: 10.97 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.869e-05/0.8923, allocations: 83.27 kB / 1.174 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8923, allocations: 0 / 1.174 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002428/0.8925, allocations: 12 kB / 1.174 GB, free: 10.88 MB / 0.9044 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.0004881/0.893, allocations: 0.7139 MB / 1.175 GB, free: 10.13 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001167/0.8931, allocations: 47.94 kB / 1.175 GB, free: 10.09 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.8932, allocations: 0 / 1.175 GB, free: 10.09 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 2.893e-05/0.8932, allocations: 19.98 kB / 1.175 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002823/0.8935, allocations: 12.17 kB / 1.175 GB, free: 10.05 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001545/0.895, allocations: 1.531 MB / 1.177 GB, free: 8.414 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003134/0.8954, allocations: 0.6807 MB / 1.177 GB, free: 7.707 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.655e-05/0.8954, allocations: 8 kB / 1.177 GB, free: 7.699 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.65e-05/0.8955, allocations: 19.42 kB / 1.177 GB, free: 7.684 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/0.8955, allocations: 0 / 1.177 GB, free: 7.684 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02442/0.9199, allocations: 1.652 MB / 1.179 GB, free: 6.105 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.161/9.081, allocations: 3.312 kB / 1.179 GB, free: 6.105 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches