Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_9_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.00552/0.00552, allocations: 99.97 kB / 15.73 MB, free: 6.004 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.00121/0.00121, allocations: 190.4 kB / 16.67 MB, free: 5.922 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.145/2.145, allocations: 390.3 MB / 0.6648 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 55.91 kB / 0.9504 GB, free: 8.18 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6922/0.6936, allocations: 140.4 MB / 1.087 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.001982/0.6956, allocations: 1.265 MB / 1.089 GB, free: 4.387 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00309/0.6987, allocations: 3.259 MB / 1.092 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.869e-05/0.6988, allocations: 1.188 kB / 1.092 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.937e-05/0.6988, allocations: 0.7031 kB / 1.092 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.005e-05/0.6989, allocations: 10.44 kB / 1.092 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004743/0.6993, allocations: 105.3 kB / 1.092 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.326e-05/0.6994, allocations: 42.56 kB / 1.092 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.595e-05/0.6995, allocations: 2.797 kB / 1.092 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.54e-05/0.6995, allocations: 20.5 kB / 1.092 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.327e-05/0.6996, allocations: 18.12 kB / 1.092 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.096e-05/0.6996, allocations: 1.625 kB / 1.092 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002229/0.6998, allocations: 80.81 kB / 1.092 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.48e-05/0.6999, allocations: 4.094 kB / 1.092 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.046e-05/0.6999, allocations: 20.2 kB / 1.092 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001861/0.7001, allocations: 72.61 kB / 1.092 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.7001, allocations: 0 / 1.092 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.493e-06/0.7001, allocations: 0.7812 kB / 1.092 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.7001, allocations: 0 / 1.092 GB, free: 1.848 MB / 0.8575 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.0003411/0.7005, allocations: 347.1 kB / 1.093 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.7005, allocations: 11.05 kB / 1.093 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.27e-05/0.7005, allocations: 40.55 kB / 1.093 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/0.7007, allocations: 9.781 kB / 1.093 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.248e-05/0.7007, allocations: 162.1 kB / 1.093 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.7008, allocations: 6 kB / 1.093 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.752e-05/0.7008, allocations: 4.828 kB / 1.093 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001281/0.7009, allocations: 60.89 kB / 1.093 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.7009, allocations: 4.641 kB / 1.093 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.701, allocations: 1.172 kB / 1.093 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.701, allocations: 0.7812 kB / 1.093 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.921e-05/0.701, allocations: 23.84 kB / 1.093 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001307/0.7012, allocations: 163.2 kB / 1.093 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 9.029e-05/0.7013, allocations: 49.19 kB / 1.093 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.13e-05/0.7013, allocations: 18.56 kB / 1.093 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005544/0.7019, allocations: 0.6029 MB / 1.094 GB, free: 296 kB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.696e-05/0.7019, allocations: 36.83 kB / 1.094 GB, free: 252 kB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.152e-06/0.7019, allocations: 0 / 1.094 GB, free: 252 kB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0005414/0.7025, allocations: 296.2 kB / 1.094 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.501e-05/0.7025, allocations: 52.34 kB / 1.094 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.158e-05/0.7026, allocations: 116.4 kB / 1.094 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.7026, allocations: 26.64 kB / 1.094 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 4.145e-05/0.7027, allocations: 89.89 kB / 1.094 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 2.015e-05/0.7027, allocations: 25.03 kB / 1.094 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.473e-05/0.7027, allocations: 32.17 kB / 1.094 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001135/0.7029, allocations: 317.4 kB / 1.095 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.897e-05/0.7029, allocations: 9.766 kB / 1.095 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.483e-05/0.7029, allocations: 52.88 kB / 1.095 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.291e-05/0.703, allocations: 81.11 kB / 1.095 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/0.7031, allocations: 0 / 1.095 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001432/0.7032, allocations: 90.86 kB / 1.095 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.7032, allocations: 10.09 kB / 1.095 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.7032, allocations: 1.812 kB / 1.095 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.7033, allocations: 3.234 kB / 1.095 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.215e-05/0.7034, allocations: 22.45 kB / 1.095 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.7034, allocations: 3.234 kB / 1.095 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.163e-05/0.7034, allocations: 8.938 kB / 1.095 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-06/0.7034, allocations: 4.438 kB / 1.095 GB, free: 15.11 MB / 0.8731 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.768e-05/0.7035, allocations: 117.9 kB / 1.095 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.002e-05/0.7035, allocations: 10.36 kB / 1.095 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.699e-05/0.7036, allocations: 9.438 kB / 1.095 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.7036, allocations: 1.656 kB / 1.095 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.7036, allocations: 4.688 kB / 1.095 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.7036, allocations: 8.484 kB / 1.095 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002658/0.7039, allocations: 177.9 kB / 1.095 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.7039, allocations: 0 / 1.095 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.237e-05/0.704, allocations: 15.42 kB / 1.095 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.704, allocations: 1.156 kB / 1.095 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.704, allocations: 0.7969 kB / 1.095 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.704, allocations: 0.875 kB / 1.095 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.704, allocations: 5.125 kB / 1.095 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002107/0.7042, allocations: 171.6 kB / 1.095 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.173e-05/0.7043, allocations: 85.38 kB / 1.095 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.7043, allocations: 5.812 kB / 1.095 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.7044, allocations: 3.219 kB / 1.095 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.702e-05/0.7045, allocations: 7.672 kB / 1.095 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-06/0.7045, allocations: 2.344 kB / 1.095 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 3.443e-05/0.7045, allocations: 82.81 kB / 1.096 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7045, allocations: 0 / 1.096 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002525/0.7048, allocations: 14.91 kB / 1.096 GB, free: 14.42 MB / 0.8731 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.0004512/0.7052, allocations: 0.7091 MB / 1.096 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001129/0.7054, allocations: 46.83 kB / 1.096 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.7054, allocations: 0.9688 kB / 1.096 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 2.241e-05/0.7054, allocations: 11.89 kB / 1.096 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.7057, allocations: 12.53 kB / 1.096 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001428/0.7071, allocations: 1.525 MB / 1.098 GB, free: 12.28 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002652/0.7074, allocations: 0.6866 MB / 1.099 GB, free: 11.58 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.264e-05/0.7075, allocations: 9.141 kB / 1.099 GB, free: 11.57 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.195e-05/0.7075, allocations: 16.58 kB / 1.099 GB, free: 11.56 MB / 0.8731 GB Notification: Performance of SimCode: time 4e-07/0.7075, allocations: 0 / 1.099 GB, free: 11.56 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01877/0.7263, allocations: 1.644 MB / 1.1 GB, free: 11.16 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.59/8.316, allocations: 20.27 kB / 1.1 GB, free: 11.14 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches