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: translateModel(Buildings.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck") translateModel(Buildings.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000934/0.0009341, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.008545/0.008545, allocations: 170.1 kB / 16.27 MB, free: 6.66 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.501/1.501, allocations: 223.3 MB / 240.3 MB, free: 5.336 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.741/2.741, allocations: 437.8 MB / 0.7121 GB, free: 7 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004125/0.0004127, allocations: 12.28 kB / 0.8728 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7991/0.7995, allocations: 153.8 MB / 1.023 GB, free: 136 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.001452/0.801, allocations: 0.9877 MB / 1.024 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00413/0.8052, allocations: 3.198 MB / 1.027 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.105e-05/0.8052, allocations: 0 / 1.027 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.899e-05/0.8052, allocations: 3.938 kB / 1.027 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.883e-05/0.8053, allocations: 7.969 kB / 1.027 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006077/0.8059, allocations: 91.61 kB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.386e-05/0.806, allocations: 35.86 kB / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.489e-05/0.806, allocations: 8 kB / 1.027 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.602e-05/0.8061, allocations: 15.92 kB / 1.027 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.859e-05/0.8062, allocations: 19.97 kB / 1.027 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.188e-05/0.8062, allocations: 0 / 1.027 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002334/0.8064, allocations: 75.81 kB / 1.027 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.882e-05/0.8065, allocations: 11.92 kB / 1.027 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.834e-05/0.8065, allocations: 45.62 kB / 1.027 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001942/0.8067, allocations: 61.97 kB / 1.027 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.832e-06/0.8067, allocations: 4 kB / 1.027 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.773e-06/0.8067, allocations: 0 / 1.027 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.019e-06/0.8068, allocations: 4 kB / 1.027 GB, free: 11.54 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.0004404/0.8072, allocations: 341.2 kB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.8073, allocations: 8.031 kB / 1.028 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.8074, allocations: 8.922 kB / 1.028 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002474/0.8076, allocations: 164.4 kB / 1.028 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.8077, allocations: 4.375 kB / 1.028 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.372e-05/0.8077, allocations: 8.281 kB / 1.028 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001673/0.8079, allocations: 53.8 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.8079, allocations: 8 kB / 1.028 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.987e-05/0.8079, allocations: 4 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.8079, allocations: 0 / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.184e-05/0.808, allocations: 23.92 kB / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001942/0.8082, allocations: 169.6 kB / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 9.264e-05/0.8083, allocations: 46.56 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.06e-05/0.8083, allocations: 16.84 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000795/0.8091, allocations: 0.5946 MB / 1.029 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.796e-05/0.8092, allocations: 30.56 kB / 1.029 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.292e-06/0.8092, allocations: 3.938 kB / 1.029 GB, free: 9.805 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0006387/0.8098, allocations: 306.5 kB / 1.029 GB, free: 9.453 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.767e-05/0.8099, allocations: 55.41 kB / 1.029 GB, free: 9.387 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.72e-05/0.81, allocations: 101.8 kB / 1.029 GB, free: 9.277 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.927e-05/0.81, allocations: 33.64 kB / 1.029 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.222e-05/0.81, allocations: 84.05 kB / 1.029 GB, free: 9.152 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.934e-05/0.8101, allocations: 27.64 kB / 1.029 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.867e-05/0.8101, allocations: 17.72 kB / 1.029 GB, free: 9.102 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000124/0.8102, allocations: 314.8 kB / 1.03 GB, free: 8.785 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.771e-05/0.8103, allocations: 15.98 kB / 1.03 GB, free: 8.77 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.632e-05/0.8103, allocations: 57.08 kB / 1.03 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001023/0.8105, allocations: 77.03 kB / 1.03 GB, free: 8.602 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.8105, allocations: 4 kB / 1.03 GB, free: 8.598 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001425/0.8106, allocations: 93.45 kB / 1.03 GB, free: 8.5 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.8106, allocations: 8 kB / 1.03 GB, free: 8.492 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.8106, allocations: 3.984 kB / 1.03 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.8107, allocations: 4.281 kB / 1.03 GB, free: 8.484 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.02e-05/0.8107, allocations: 16 kB / 1.03 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.8108, allocations: 0 / 1.03 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.99e-05/0.8108, allocations: 11.94 kB / 1.03 GB, free: 8.457 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.165e-06/0.8108, allocations: 4.125 kB / 1.03 GB, free: 8.453 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 0.0001013/0.8109, allocations: 122.3 kB / 1.03 GB, free: 8.324 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.491e-05/0.811, allocations: 7.984 kB / 1.03 GB, free: 8.316 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.802e-05/0.811, allocations: 7.969 kB / 1.03 GB, free: 8.305 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.811, allocations: 4 kB / 1.03 GB, free: 8.301 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.811, allocations: 0 / 1.03 GB, free: 8.301 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.811, allocations: 3.938 kB / 1.03 GB, free: 8.297 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000245/0.8113, allocations: 169.7 kB / 1.03 GB, free: 8.082 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.8113, allocations: 0 / 1.03 GB, free: 8.082 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.066e-05/0.8114, allocations: 12 kB / 1.03 GB, free: 8.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.8114, allocations: 7.984 kB / 1.03 GB, free: 8.062 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/0.8114, allocations: 8.438 kB / 1.03 GB, free: 8.055 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.8114, allocations: 0 / 1.03 GB, free: 8.055 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.8114, allocations: 4 kB / 1.03 GB, free: 8.051 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001871/0.8116, allocations: 175.3 kB / 1.031 GB, free: 7.863 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.317e-05/0.8117, allocations: 85.14 kB / 1.031 GB, free: 7.762 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.48e-05/0.8117, allocations: 0 / 1.031 GB, free: 7.762 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.8118, allocations: 8 kB / 1.031 GB, free: 7.754 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.208e-05/0.8119, allocations: 7.984 kB / 1.031 GB, free: 7.746 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.328e-06/0.8119, allocations: 7.938 kB / 1.031 GB, free: 7.738 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.826e-05/0.8119, allocations: 75.28 kB / 1.031 GB, free: 7.664 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8119, allocations: 0 / 1.031 GB, free: 7.664 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002366/0.8122, allocations: 16 kB / 1.031 GB, free: 7.648 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.0001408/0.8123, allocations: 107 kB / 1.031 GB, free: 7.539 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001175/0.8124, allocations: 55.84 kB / 1.031 GB, free: 7.484 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.8124, allocations: 0 / 1.031 GB, free: 7.484 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.094e-05/0.8125, allocations: 12 kB / 1.031 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000281/0.8127, allocations: 11.94 kB / 1.031 GB, free: 7.461 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006307/0.8134, allocations: 386.9 kB / 1.031 GB, free: 7.055 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002978/0.8137, allocations: 0.6887 MB / 1.032 GB, free: 6.34 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.467e-05/0.8138, allocations: 11.86 kB / 1.032 GB, free: 6.328 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.414e-05/0.8138, allocations: 11.44 kB / 1.032 GB, free: 6.316 MB / 0.7794 GB Notification: Performance of SimCode: time 3.71e-07/0.8138, allocations: 0 / 1.032 GB, free: 6.316 MB / 0.7794 GB Notification: Performance of Templates: time 0.003102/0.8169, allocations: 0.5868 MB / 1.033 GB, free: 5.73 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.makefile (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 & ./Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches