Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001344/0.001344, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001177/0.001177, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.399/1.399, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.659/2.659, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 63.89 kB / 1.055 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7847/0.7861, allocations: 157.4 MB / 1.208 GB, free: 13.77 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002212/0.7883, allocations: 1.26 MB / 1.21 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003609/0.792, allocations: 3.26 MB / 1.213 GB, free: 9.215 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.762e-05/0.792, allocations: 3.938 kB / 1.213 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.064e-05/0.7921, allocations: 7.938 kB / 1.213 GB, free: 9.203 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.221e-05/0.7921, allocations: 4 kB / 1.213 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005054/0.7926, allocations: 103.5 kB / 1.213 GB, free: 9.098 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 8.174e-05/0.7927, allocations: 35.91 kB / 1.213 GB, free: 9.062 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 3.811e-05/0.7928, allocations: 3.984 kB / 1.213 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 4.508e-05/0.7928, allocations: 12 kB / 1.213 GB, free: 9.047 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.273e-05/0.7929, allocations: 23.91 kB / 1.213 GB, free: 9.023 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.451e-05/0.7929, allocations: 4 kB / 1.213 GB, free: 9.02 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002546/0.7932, allocations: 83.75 kB / 1.213 GB, free: 8.938 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.626e-05/0.7932, allocations: 11.97 kB / 1.213 GB, free: 8.926 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.666e-05/0.7932, allocations: 11.94 kB / 1.213 GB, free: 8.914 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001698/0.7934, allocations: 67.86 kB / 1.213 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.7934, allocations: 3.984 kB / 1.213 GB, free: 8.844 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.242e-06/0.7934, allocations: 0 / 1.213 GB, free: 8.844 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.711e-06/0.7934, allocations: 0 / 1.213 GB, free: 8.844 MB / 0.9356 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.0003915/0.7938, allocations: 345.3 kB / 1.213 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.7939, allocations: 16.03 kB / 1.213 GB, free: 8.445 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001005/0.794, allocations: 8.844 kB / 1.214 GB, free: 8.438 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/0.7941, allocations: 164.4 kB / 1.214 GB, free: 8.238 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.7941, allocations: 4.375 kB / 1.214 GB, free: 8.234 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.221e-05/0.7941, allocations: 4.375 kB / 1.214 GB, free: 8.23 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001268/0.7943, allocations: 61.73 kB / 1.214 GB, free: 8.164 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.106e-06/0.7943, allocations: 0 / 1.214 GB, free: 8.164 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.7943, allocations: 7.938 kB / 1.214 GB, free: 8.156 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.7943, allocations: 0 / 1.214 GB, free: 8.156 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.281e-05/0.7944, allocations: 15.98 kB / 1.214 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001763/0.7945, allocations: 169.6 kB / 1.214 GB, free: 7.926 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 8.948e-05/0.7946, allocations: 62.44 kB / 1.214 GB, free: 7.855 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.352e-05/0.7947, allocations: 16.86 kB / 1.214 GB, free: 7.836 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006664/0.7954, allocations: 0.5945 MB / 1.215 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.189e-05/0.7954, allocations: 38.56 kB / 1.215 GB, free: 7.086 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.7954, allocations: 0 / 1.215 GB, free: 7.086 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0005971/0.796, allocations: 298.6 kB / 1.215 GB, free: 6.742 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/0.7961, allocations: 55.41 kB / 1.215 GB, free: 6.676 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.87e-05/0.7961, allocations: 101.8 kB / 1.215 GB, free: 6.566 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.7962, allocations: 25.7 kB / 1.215 GB, free: 6.535 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.241e-05/0.7962, allocations: 91.98 kB / 1.215 GB, free: 6.441 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.77e-05/0.7962, allocations: 23.62 kB / 1.215 GB, free: 6.418 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.484e-05/0.7963, allocations: 29.7 kB / 1.215 GB, free: 6.383 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.477e-05/0.7964, allocations: 314.8 kB / 1.216 GB, free: 6.066 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.163e-05/0.7964, allocations: 19.92 kB / 1.216 GB, free: 6.047 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.965e-05/0.7965, allocations: 53.14 kB / 1.216 GB, free: 5.977 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.697e-05/0.7966, allocations: 77.09 kB / 1.216 GB, free: 5.883 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.7966, allocations: 0 / 1.216 GB, free: 5.883 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001252/0.7967, allocations: 89.55 kB / 1.216 GB, free: 5.789 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.7967, allocations: 8.125 kB / 1.216 GB, free: 5.781 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.7967, allocations: 7.938 kB / 1.216 GB, free: 5.773 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.7968, allocations: 0 / 1.216 GB, free: 5.773 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.479e-05/0.7968, allocations: 27.92 kB / 1.216 GB, free: 5.746 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.7969, allocations: 4 kB / 1.216 GB, free: 5.742 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.781e-05/0.7969, allocations: 3.938 kB / 1.216 GB, free: 5.738 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.7969, allocations: 4 kB / 1.216 GB, free: 5.734 MB / 0.9356 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.805e-05/0.797, allocations: 117.8 kB / 1.216 GB, free: 5.609 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.96e-05/0.797, allocations: 7.906 kB / 1.216 GB, free: 5.602 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.903e-05/0.7971, allocations: 15.95 kB / 1.216 GB, free: 5.59 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.7971, allocations: 0 / 1.216 GB, free: 5.59 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.7971, allocations: 0 / 1.216 GB, free: 5.59 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.7971, allocations: 7.938 kB / 1.216 GB, free: 5.582 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002349/0.7973, allocations: 173.7 kB / 1.216 GB, free: 5.363 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.7973, allocations: 0 / 1.216 GB, free: 5.363 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.546e-05/0.7974, allocations: 15.94 kB / 1.216 GB, free: 5.348 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.7974, allocations: 0 / 1.216 GB, free: 5.348 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.7974, allocations: 448 / 1.216 GB, free: 5.348 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.7974, allocations: 0 / 1.216 GB, free: 5.348 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.7975, allocations: 12.06 kB / 1.216 GB, free: 5.336 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001686/0.7976, allocations: 175.5 kB / 1.216 GB, free: 5.148 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.617e-05/0.7977, allocations: 92.98 kB / 1.216 GB, free: 5.039 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.321e-05/0.7977, allocations: 0 / 1.216 GB, free: 5.039 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/0.7978, allocations: 4 kB / 1.216 GB, free: 5.035 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.808e-05/0.7978, allocations: 7.984 kB / 1.216 GB, free: 5.027 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.955e-06/0.7979, allocations: 3.938 kB / 1.216 GB, free: 5.023 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.051e-05/0.7979, allocations: 87.58 kB / 1.216 GB, free: 4.938 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2e-07/0.7979, allocations: 4 kB / 1.216 GB, free: 4.934 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000253/0.7982, allocations: 16 kB / 1.216 GB, free: 4.918 MB / 0.9356 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.0001176/0.7983, allocations: 99.25 kB / 1.217 GB, free: 4.809 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001125/0.7984, allocations: 39.92 kB / 1.217 GB, free: 4.77 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.7984, allocations: 0 / 1.217 GB, free: 4.77 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 3.203e-05/0.7985, allocations: 19.98 kB / 1.217 GB, free: 4.75 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000308/0.7988, allocations: 13.91 kB / 1.217 GB, free: 4.738 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005709/0.7993, allocations: 344.1 kB / 1.217 GB, free: 4.367 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002348/0.7996, allocations: 0.6807 MB / 1.218 GB, free: 3.66 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.982e-05/0.7996, allocations: 11.44 kB / 1.218 GB, free: 3.648 MB / 0.9356 GB Notification: Performance of SimCode: time 2.41e-07/0.7996, allocations: 3.938 kB / 1.218 GB, free: 3.645 MB / 0.9356 GB Notification: Performance of Templates: time 0.002182/0.8018, allocations: 0.7811 MB / 1.218 GB, free: 2.863 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches