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.009252/0.009252, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.002107/0.002107, allocations: 192.9 kB / 16.67 MB, free: 5.52 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.36/1.36, 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 9.1.3-maint.9.1.x/package.mo): time 2.174/2.174, allocations: 390.3 MB / 0.6648 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002107/0.002107, allocations: 67.88 kB / 0.9504 GB, free: 8.133 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6684/0.6705, allocations: 140.4 MB / 1.087 GB, free: 5.242 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.001938/0.6725, allocations: 1.253 MB / 1.089 GB, free: 4.363 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003111/0.6756, allocations: 3.259 MB / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.12e-05/0.6756, allocations: 0 / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.63e-05/0.6757, allocations: 1.891 kB / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.956e-05/0.6757, allocations: 9.531 kB / 1.092 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004721/0.6762, allocations: 101 kB / 1.092 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.655e-05/0.6763, allocations: 46 kB / 1.092 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.856e-05/0.6764, allocations: 3.047 kB / 1.092 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.782e-05/0.6764, allocations: 16.64 kB / 1.092 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.63e-05/0.6765, allocations: 17.62 kB / 1.092 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.198e-05/0.6765, allocations: 1.438 kB / 1.092 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002379/0.6767, allocations: 77.89 kB / 1.092 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.77e-05/0.6768, allocations: 12.09 kB / 1.092 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.8e-05/0.6768, allocations: 19.95 kB / 1.092 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001855/0.677, allocations: 70.69 kB / 1.092 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.677, allocations: 2.062 kB / 1.092 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.473e-06/0.677, allocations: 0 / 1.092 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.677, allocations: 0.8438 kB / 1.092 GB, free: 1.824 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.0003315/0.6774, allocations: 342.4 kB / 1.093 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.6774, allocations: 8.562 kB / 1.093 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.748e-05/0.6774, allocations: 37.84 kB / 1.093 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.625e-05/0.6775, allocations: 13.92 kB / 1.093 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.846e-05/0.6776, allocations: 161.8 kB / 1.093 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.195e-06/0.6776, allocations: 2.5 kB / 1.093 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.488e-05/0.6776, allocations: 8.016 kB / 1.093 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001194/0.6778, allocations: 57.55 kB / 1.093 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.6778, allocations: 1.719 kB / 1.093 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.6778, allocations: 4 kB / 1.093 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.6778, allocations: 1.438 kB / 1.093 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.388e-05/0.6779, allocations: 23.14 kB / 1.093 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001223/0.678, allocations: 170.9 kB / 1.093 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.956e-05/0.6781, allocations: 50 kB / 1.093 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.831e-05/0.6781, allocations: 17.56 kB / 1.093 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005426/0.6787, allocations: 0.5994 MB / 1.094 GB, free: 276 kB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.625e-05/0.6787, allocations: 44.77 kB / 1.094 GB, free: 224 kB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.192e-06/0.6787, allocations: 0 / 1.094 GB, free: 224 kB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0005277/0.6792, allocations: 296.2 kB / 1.094 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.011e-05/0.6793, allocations: 52.38 kB / 1.094 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.765e-05/0.6794, allocations: 104.9 kB / 1.094 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 1.484e-05/0.6794, allocations: 26.77 kB / 1.094 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 4.01e-05/0.6794, allocations: 94.12 kB / 1.094 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 1.93e-05/0.6795, allocations: 29.34 kB / 1.094 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.234e-05/0.6795, allocations: 27.36 kB / 1.094 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 9.566e-05/0.6796, allocations: 313.8 kB / 1.095 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.241e-05/0.6796, allocations: 13.06 kB / 1.095 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.838e-05/0.6797, allocations: 53.14 kB / 1.095 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.24e-05/0.6798, allocations: 80.91 kB / 1.095 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.6798, allocations: 0 / 1.095 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001448/0.68, allocations: 90.94 kB / 1.095 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.68, allocations: 13.38 kB / 1.095 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.68, allocations: 0.9062 kB / 1.095 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.68, allocations: 2.312 kB / 1.095 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.129e-05/0.6801, allocations: 23.14 kB / 1.095 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.6801, allocations: 2.031 kB / 1.095 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.059e-05/0.6802, allocations: 10.06 kB / 1.095 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.6802, allocations: 4.75 kB / 1.095 GB, free: 15.09 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 8.151e-05/0.6803, allocations: 117.5 kB / 1.095 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.181e-05/0.6803, allocations: 6.438 kB / 1.095 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.952e-05/0.6803, allocations: 14.19 kB / 1.095 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.6803, allocations: 0 / 1.095 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.6804, allocations: 5.938 kB / 1.095 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.6804, allocations: 3.938 kB / 1.095 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002377/0.6806, allocations: 172.9 kB / 1.095 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.6806, allocations: 0.8438 kB / 1.095 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.457e-05/0.6807, allocations: 16.16 kB / 1.095 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.6807, allocations: 0.8438 kB / 1.095 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.6807, allocations: 0.8125 kB / 1.095 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.731e-06/0.6807, allocations: 5.266 kB / 1.095 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.6808, allocations: 7.938 kB / 1.095 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001849/0.6809, allocations: 172.1 kB / 1.095 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.248e-05/0.681, allocations: 86.2 kB / 1.095 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.363e-05/0.681, allocations: 1.453 kB / 1.095 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.6811, allocations: 7.359 kB / 1.095 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.071e-05/0.6812, allocations: 7.844 kB / 1.095 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.064e-06/0.6812, allocations: 2.688 kB / 1.095 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 3.447e-05/0.6812, allocations: 82.48 kB / 1.096 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.21e-07/0.6812, allocations: 3.938 kB / 1.096 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002491/0.6815, allocations: 14.66 kB / 1.096 GB, free: 14.4 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.0004062/0.6819, allocations: 0.7053 MB / 1.096 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001154/0.682, allocations: 42.05 kB / 1.096 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.682, allocations: 0.875 kB / 1.096 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 2.868e-05/0.6821, allocations: 20.7 kB / 1.096 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002851/0.6823, allocations: 12.97 kB / 1.096 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001363/0.6837, allocations: 1.523 MB / 1.098 GB, free: 12.25 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002182/0.684, allocations: 0.6829 MB / 1.098 GB, free: 11.56 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.034e-05/0.684, allocations: 12.38 kB / 1.099 GB, free: 11.55 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.717e-05/0.6841, allocations: 16.67 kB / 1.099 GB, free: 11.54 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.6841, allocations: 0 / 1.099 GB, free: 11.54 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01924/0.7033, allocations: 1.652 MB / 1.1 GB, free: 11.13 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.579/8.283, allocations: 11.5 kB / 1.1 GB, free: 11.12 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