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.001398/0.001397, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 192.7 kB / 16.53 MB, free: 6.391 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.395/1.395, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.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.665/2.665, allocations: 437.1 MB / 0.7104 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001599/0.001599, allocations: 63.89 kB / 0.8693 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6668/0.6685, allocations: 151.6 MB / 1.017 GB, free: 2.484 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002965/0.6715, allocations: 1.264 MB / 1.019 GB, free: 1.211 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.004217/0.6757, allocations: 3.256 MB / 1.022 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.386e-05/0.6758, allocations: 0 / 1.022 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.572e-05/0.6758, allocations: 3.938 kB / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.122e-05/0.6759, allocations: 7.922 kB / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007412/0.6767, allocations: 107.5 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001028/0.6768, allocations: 27.92 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.382e-05/0.6768, allocations: 4 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 5.928e-05/0.6769, allocations: 31.84 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.556e-05/0.677, allocations: 15.98 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.249e-05/0.677, allocations: 0 / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003291/0.6773, allocations: 83.73 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.162e-05/0.6774, allocations: 11.94 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.199e-05/0.6774, allocations: 11.98 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002574/0.6777, allocations: 66.11 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.6777, allocations: 4 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.743e-06/0.6777, allocations: 0 / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.775e-06/0.6777, allocations: 0 / 1.022 GB, free: 13.57 MB / 0.7794 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.0004674/0.6782, allocations: 347.5 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.6783, allocations: 11.97 kB / 1.023 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.817e-05/0.6783, allocations: 46.69 kB / 1.023 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.6785, allocations: 4.938 kB / 1.023 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.6786, allocations: 164.4 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.6786, allocations: 384 / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.048e-05/0.6786, allocations: 12.28 kB / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001371/0.6788, allocations: 53.61 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.6788, allocations: 4 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.6788, allocations: 4 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.6788, allocations: 0 / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.684e-05/0.6789, allocations: 15.98 kB / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000172/0.6791, allocations: 173.6 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 9.149e-05/0.6792, allocations: 50.56 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.205e-05/0.6792, allocations: 12.86 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007724/0.68, allocations: 0.5985 MB / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.68, allocations: 34.56 kB / 1.024 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.413e-06/0.68, allocations: 0 / 1.024 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0007058/0.6807, allocations: 306.4 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.802e-05/0.6808, allocations: 55.41 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.553e-05/0.6809, allocations: 105.8 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/0.6809, allocations: 33.7 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.061e-05/0.681, allocations: 84.05 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.504e-05/0.681, allocations: 27.64 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.988e-05/0.6811, allocations: 25.72 kB / 1.024 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001111/0.6812, allocations: 310.8 kB / 1.025 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.681e-05/0.6812, allocations: 15.98 kB / 1.025 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.762e-05/0.6813, allocations: 61.02 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.135e-05/0.6814, allocations: 69.09 kB / 1.025 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.6814, allocations: 11.94 kB / 1.025 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001437/0.6816, allocations: 93.73 kB / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.6816, allocations: 4 kB / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.6816, allocations: 7.984 kB / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.6816, allocations: 0 / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.729e-05/0.6817, allocations: 23.92 kB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.6817, allocations: 4 kB / 1.025 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.122e-05/0.6818, allocations: 8.375 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.834e-06/0.6818, allocations: 4.125 kB / 1.025 GB, free: 10.41 MB / 0.7794 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.45e-05/0.6819, allocations: 121.8 kB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.057e-05/0.6819, allocations: 4 kB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.579e-05/0.682, allocations: 11.95 kB / 1.025 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.682, allocations: 0 / 1.025 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.682, allocations: 4 kB / 1.025 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.682, allocations: 3.938 kB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002322/0.6822, allocations: 169.7 kB / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.6822, allocations: 0 / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.23e-05/0.6823, allocations: 16 kB / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.6823, allocations: 4 kB / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.6824, allocations: 7.984 kB / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.6824, allocations: 0 / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.6824, allocations: 0 / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000177/0.6825, allocations: 179.3 kB / 1.025 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.848e-05/0.6826, allocations: 81.14 kB / 1.025 GB, free: 9.723 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.776e-05/0.6826, allocations: 4 kB / 1.025 GB, free: 9.719 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.6827, allocations: 4 kB / 1.025 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.967e-05/0.6828, allocations: 15.92 kB / 1.025 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.523e-06/0.6828, allocations: 0 / 1.025 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.233e-05/0.6828, allocations: 79.28 kB / 1.026 GB, free: 9.621 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.6828, allocations: 0 / 1.026 GB, free: 9.621 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002558/0.6831, allocations: 16 kB / 1.026 GB, free: 9.605 MB / 0.7794 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.0005408/0.6836, allocations: 0.7161 MB / 1.026 GB, free: 8.863 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001397/0.6838, allocations: 43.95 kB / 1.026 GB, free: 8.82 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.6838, allocations: 0 / 1.026 GB, free: 8.82 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.215e-05/0.6838, allocations: 23.92 kB / 1.026 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003758/0.6842, allocations: 11.94 kB / 1.026 GB, free: 8.785 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001549/0.6858, allocations: 1.521 MB / 1.028 GB, free: 7.156 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002379/0.686, allocations: 0.6884 MB / 1.028 GB, free: 6.441 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.014e-05/0.6861, allocations: 7.859 kB / 1.028 GB, free: 6.434 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.394e-05/0.6861, allocations: 23.42 kB / 1.028 GB, free: 6.41 MB / 0.7794 GB Notification: Performance of SimCode: time 5.11e-07/0.6861, allocations: 0 / 1.028 GB, free: 6.41 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02263/0.7088, allocations: 1.602 MB / 1.03 GB, free: 4.863 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.341/8.05, allocations: 10.83 kB / 1.03 GB, free: 4.855 MB / 0.7794 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