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.001592/0.001592, allocations: 106.4 kB / 16.41 MB, free: 6.504 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.001656/0.001656, allocations: 189.7 kB / 17.34 MB, free: 5.742 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.339/1.339, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.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.47/2.47, allocations: 437 MB / 0.7112 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 63.91 kB / 1.019 GB, free: 9.445 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7734/0.7747, allocations: 151.6 MB / 1.167 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002184/0.777, allocations: 1.276 MB / 1.168 GB, free: 2.559 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.003617/0.7806, allocations: 3.262 MB / 1.172 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.594e-05/0.7806, allocations: 0 / 1.172 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 1.464e-05/0.7807, allocations: 0 / 1.172 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 4.902e-05/0.7807, allocations: 15.91 kB / 1.172 GB, free: 15.26 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005052/0.7812, allocations: 99.55 kB / 1.172 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 7.221e-05/0.7813, allocations: 39.91 kB / 1.172 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 3.269e-05/0.7814, allocations: 3.938 kB / 1.172 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 4.561e-05/0.7814, allocations: 23.97 kB / 1.172 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 6.338e-05/0.7815, allocations: 15.92 kB / 1.172 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 1.071e-05/0.7815, allocations: 4 kB / 1.172 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002201/0.7817, allocations: 79.8 kB / 1.172 GB, free: 15 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 1.249e-05/0.7818, allocations: 4 kB / 1.172 GB, free: 15 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 2.921e-05/0.7818, allocations: 15.92 kB / 1.172 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0001637/0.782, allocations: 67.86 kB / 1.172 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.782, allocations: 0 / 1.172 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.633e-06/0.782, allocations: 4 kB / 1.172 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.782, allocations: 0 / 1.172 GB, free: 14.91 MB / 0.9044 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.0003905/0.7824, allocations: 347.4 kB / 1.172 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.7824, allocations: 8.031 kB / 1.172 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.7825, allocations: 12.78 kB / 1.172 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.7827, allocations: 162.2 kB / 1.173 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.7827, allocations: 4.375 kB / 1.173 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.697e-05/0.7827, allocations: 8.375 kB / 1.173 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001276/0.7828, allocations: 61.78 kB / 1.173 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.7829, allocations: 3.938 kB / 1.173 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.7829, allocations: 4 kB / 1.173 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-06/0.7829, allocations: 0 / 1.173 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.119e-05/0.7829, allocations: 19.97 kB / 1.173 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001736/0.7831, allocations: 161.7 kB / 1.173 GB, free: 14 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 8.939e-05/0.7832, allocations: 54.44 kB / 1.173 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.726e-05/0.7833, allocations: 20.84 kB / 1.173 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006944/0.784, allocations: 0.6026 MB / 1.173 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/0.784, allocations: 34.56 kB / 1.173 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=5): time 1.233e-06/0.784, allocations: 0 / 1.173 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.000569/0.7846, allocations: 294.2 kB / 1.174 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.088e-05/0.7846, allocations: 59.41 kB / 1.174 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.117e-05/0.7847, allocations: 101.8 kB / 1.174 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.7847, allocations: 29.7 kB / 1.174 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.064e-05/0.7848, allocations: 87.98 kB / 1.174 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.736e-05/0.7848, allocations: 27.61 kB / 1.174 GB, free: 12.49 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.955e-05/0.7849, allocations: 25.72 kB / 1.174 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.785, allocations: 318.8 kB / 1.174 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.724e-05/0.785, allocations: 12 kB / 1.174 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.141e-05/0.7851, allocations: 57.14 kB / 1.174 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.506e-05/0.7852, allocations: 81.08 kB / 1.175 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.7852, allocations: 0 / 1.175 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001314/0.7853, allocations: 93.48 kB / 1.175 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.7853, allocations: 11.94 kB / 1.175 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.7854, allocations: 0 / 1.175 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.7854, allocations: 4 kB / 1.175 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.762e-05/0.7855, allocations: 16 kB / 1.175 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.7855, allocations: 3.984 kB / 1.175 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.352e-05/0.7855, allocations: 12.38 kB / 1.175 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-06/0.7855, allocations: 8.125 kB / 1.175 GB, free: 11.8 MB / 0.9044 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.144e-05/0.7856, allocations: 117.7 kB / 1.175 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.843e-05/0.7857, allocations: 7.906 kB / 1.175 GB, free: 11.67 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.899e-05/0.7857, allocations: 7.969 kB / 1.175 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.7857, allocations: 4 kB / 1.175 GB, free: 11.65 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.7857, allocations: 4 kB / 1.175 GB, free: 11.65 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.676e-06/0.7857, allocations: 3.938 kB / 1.175 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002381/0.786, allocations: 173.7 kB / 1.175 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.786, allocations: 0 / 1.175 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.73e-05/0.7861, allocations: 23.98 kB / 1.175 GB, free: 11.4 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.7861, allocations: 0 / 1.175 GB, free: 11.4 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.837e-06/0.7861, allocations: 4 kB / 1.175 GB, free: 11.4 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.7861, allocations: 0 / 1.175 GB, free: 11.4 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.7861, allocations: 0 / 1.175 GB, free: 11.4 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001812/0.7863, allocations: 175.5 kB / 1.175 GB, free: 11.21 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.123e-05/0.7863, allocations: 88.95 kB / 1.175 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.7864, allocations: 0 / 1.175 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.7865, allocations: 16.03 kB / 1.175 GB, free: 11.09 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.725e-05/0.7865, allocations: 0 / 1.175 GB, free: 11.09 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.948e-06/0.7865, allocations: 7.938 kB / 1.175 GB, free: 11.08 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.8e-05/0.7866, allocations: 75.28 kB / 1.175 GB, free: 11.01 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7866, allocations: 0 / 1.175 GB, free: 11.01 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002431/0.7868, allocations: 16 kB / 1.175 GB, free: 10.99 MB / 0.9044 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.0001194/0.7869, allocations: 103.8 kB / 1.175 GB, free: 10.88 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001169/0.7871, allocations: 47.91 kB / 1.176 GB, free: 10.83 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.7871, allocations: 0 / 1.176 GB, free: 10.83 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 2.626e-05/0.7871, allocations: 19.94 kB / 1.176 GB, free: 10.81 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002781/0.7874, allocations: 7.984 kB / 1.176 GB, free: 10.8 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005828/0.788, allocations: 340.2 kB / 1.176 GB, free: 10.44 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002509/0.7882, allocations: 0.6846 MB / 1.177 GB, free: 9.73 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.672e-05/0.7883, allocations: 15.38 kB / 1.177 GB, free: 9.719 MB / 0.9044 GB Notification: Performance of SimCode: time 2.31e-07/0.7883, allocations: 4 kB / 1.177 GB, free: 9.715 MB / 0.9044 GB Notification: Performance of Templates: time 0.001986/0.7903, allocations: 0.7811 MB / 1.177 GB, free: 8.934 MB / 0.9044 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches