Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.BuriedPipes.Examples.TwoBuriedPipes.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Fluid.Geothermal.BuriedPipes.Examples.TwoBuriedPipes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTemChWIn.T|senTemChWOut.T|senTemHotWIn.T|senTemHotWOut.T|gro.soi.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.BuriedPipes.Examples.TwoBuriedPipes") translateModel(Buildings.Fluid.Geothermal.BuriedPipes.Examples.TwoBuriedPipes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTemChWIn.T|senTemChWOut.T|senTemHotWIn.T|senTemHotWOut.T|gro.soi.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.BuriedPipes.Examples.TwoBuriedPipes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001008, allocations: 99.91 kB / 15.71 MB, free: 440 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 170.4 kB / 16.58 MB, free: 6.422 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.542/1.542, allocations: 223.3 MB / 240.6 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.513/2.513, allocations: 390.4 MB / 0.6662 GB, free: 2.871 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004261/0.0004262, allocations: 15.98 kB / 0.8154 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9043/0.9048, allocations: 142.3 MB / 0.9544 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.BuriedPipes.Examples.TwoBuriedPipes): time 0.1102/1.015, allocations: 109.1 MB / 1.061 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.03979/1.055, allocations: 26.03 MB / 1.086 GB, free: 8.652 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.009847/1.065, allocations: 111.2 kB / 1.086 GB, free: 8.543 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.006421/1.071, allocations: 1.06 MB / 1.088 GB, free: 7.477 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.01462/1.086, allocations: 3.586 MB / 1.091 GB, free: 3.875 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.009103/1.095, allocations: 2.204 MB / 1.093 GB, free: 1.688 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01524/1.11, allocations: 9.328 MB / 1.102 GB, free: 8.332 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004108/1.114, allocations: 1.901 MB / 1.104 GB, free: 6.391 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007787/1.122, allocations: 2.637 MB / 1.107 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005108/1.127, allocations: 2.085 MB / 1.109 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0004814/1.128, allocations: 116 kB / 1.109 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01211/1.14, allocations: 2.296 MB / 1.111 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.00179/1.142, allocations: 0.5133 MB / 1.112 GB, free: 14.72 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.00238/1.144, allocations: 0.6173 MB / 1.112 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.008076/1.152, allocations: 3.971 MB / 1.116 GB, free: 10.11 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/1.152, allocations: 0 / 1.116 GB, free: 10.11 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.745e-06/1.152, allocations: 0 / 1.116 GB, free: 10.11 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 5.354e-05/1.152, allocations: 0 / 1.116 GB, free: 10.11 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 435 * Number of variables: 435 Notification: Performance of Generate backend data structure: time 0.006041/1.158, allocations: 3.013 MB / 1.119 GB, free: 7.035 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/1.159, allocations: 8.031 kB / 1.119 GB, free: 7.027 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000719/1.159, allocations: 344 kB / 1.119 GB, free: 6.688 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004114/1.163, allocations: 2.456 MB / 1.122 GB, free: 4.16 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001008/1.163, allocations: 131.4 kB / 1.122 GB, free: 4.031 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002361/1.164, allocations: 179.8 kB / 1.122 GB, free: 3.855 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003275/1.167, allocations: 1.887 MB / 1.124 GB, free: 1.898 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.251e-05/1.167, allocations: 7.938 kB / 1.124 GB, free: 1.891 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001631/1.167, allocations: 79.95 kB / 1.124 GB, free: 1.812 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.849e-05/1.167, allocations: 47.98 kB / 1.124 GB, free: 1.766 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002374/1.17, allocations: 1.395 MB / 1.125 GB, free: 376 kB / 0.8731 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01205/1.182, allocations: 9.997 MB / 1.135 GB, free: 5.621 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001483/1.183, allocations: 0.9028 MB / 1.136 GB, free: 4.707 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008448/1.184, allocations: 0.5463 MB / 1.137 GB, free: 4.16 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002923/1.187, allocations: 3.088 MB / 1.14 GB, free: 400 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.998e-05/1.187, allocations: 51.52 kB / 1.14 GB, free: 336 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=121): time 4.128e-06/1.187, allocations: 3.938 kB / 1.14 GB, free: 332 kB / 0.8887 GB Notification: Performance of matching and sorting (n=121): time 0.005851/1.193, allocations: 2.244 MB / 1.142 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.39e-05/1.193, allocations: 68.39 kB / 1.142 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002867/1.196, allocations: 2.095 MB / 1.144 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 9.147e-05/1.196, allocations: 53.7 kB / 1.144 GB, free: 11.8 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009749/1.197, allocations: 1.165 MB / 1.145 GB, free: 10.62 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004044/1.197, allocations: 437.6 kB / 1.146 GB, free: 10.19 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.94e-05/1.197, allocations: 28 kB / 1.146 GB, free: 10.16 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001739/1.198, allocations: 361.9 kB / 1.146 GB, free: 9.805 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007996/1.198, allocations: 467.8 kB / 1.146 GB, free: 9.348 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001128/1.2, allocations: 0.8191 MB / 1.147 GB, free: 8.395 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001007/1.201, allocations: 0.592 MB / 1.148 GB, free: 7.801 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.718e-06/1.201, allocations: 7.953 kB / 1.148 GB, free: 7.793 MB / 0.9044 GB Notification: Performance of matching and sorting (n=185) (initialization): time 0.003634/1.204, allocations: 1.885 MB / 1.15 GB, free: 5.895 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002622/1.205, allocations: 376.3 kB / 1.15 GB, free: 5.398 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.205e-05/1.205, allocations: 15.98 kB / 1.15 GB, free: 5.383 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/1.206, allocations: 380.5 kB / 1.15 GB, free: 5.008 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009047/1.207, allocations: 299.5 kB / 1.151 GB, free: 4.715 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001071/1.208, allocations: 0.8683 MB / 1.151 GB, free: 3.82 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001683/1.21, allocations: 234.3 kB / 1.152 GB, free: 3.59 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000135/1.21, allocations: 75.95 kB / 1.152 GB, free: 3.516 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.881e-06/1.21, allocations: 4 kB / 1.152 GB, free: 3.512 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003278/1.213, allocations: 1.648 MB / 1.153 GB, free: 1.859 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.629e-05/1.213, allocations: 12 kB / 1.153 GB, free: 1.848 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001468/1.215, allocations: 376.6 kB / 1.154 GB, free: 1.477 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008653/1.216, allocations: 291.5 kB / 1.154 GB, free: 1.191 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000993/1.217, allocations: 0.8723 MB / 1.155 GB, free: 300 kB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001342/1.218, allocations: 218.6 kB / 1.155 GB, free: 80 kB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001316/1.218, allocations: 79.97 kB / 1.155 GB, free: 0 / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (168): * Single equations (assignments): 162 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.001071/1.219, allocations: 0.5671 MB / 1.156 GB, free: 15.42 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003403/1.22, allocations: 249 kB / 1.156 GB, free: 15.18 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004605/1.224, allocations: 2.38 MB / 1.158 GB, free: 12.8 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-05/1.224, allocations: 27.97 kB / 1.158 GB, free: 12.78 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.417e-06/1.224, allocations: 7.891 kB / 1.158 GB, free: 12.77 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003111/1.227, allocations: 1.79 MB / 1.16 GB, free: 10.92 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008647/1.236, allocations: 5.148 MB / 1.165 GB, free: 5.562 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.032e-05/1.236, allocations: 19.92 kB / 1.165 GB, free: 5.543 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008098/1.237, allocations: 235.6 kB / 1.165 GB, free: 5.312 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001253/1.238, allocations: 306 kB / 1.166 GB, free: 5.012 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.351e-05/1.238, allocations: 51.97 kB / 1.166 GB, free: 4.961 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001014/1.239, allocations: 0.8606 MB / 1.167 GB, free: 4.074 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.298e-05/1.239, allocations: 19.92 kB / 1.167 GB, free: 4.055 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005049/1.244, allocations: 3.003 MB / 1.169 GB, free: 0.9492 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001358/1.246, allocations: 0.614 MB / 1.17 GB, free: 320 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002886/1.246, allocations: 43.98 kB / 1.17 GB, free: 276 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001296/1.247, allocations: 139.2 kB / 1.17 GB, free: 140 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002192/1.248, allocations: 137 kB / 1.17 GB, free: 0 / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001546/1.248, allocations: 75.95 kB / 1.17 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.002534/1.25, allocations: 1.531 MB / 1.172 GB, free: 14.39 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.6e-07/1.25, allocations: 0 / 1.172 GB, free: 14.39 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.004171/1.255, allocations: 1.49 MB / 1.173 GB, free: 12.9 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 12 (pipChW.del.x,pipChW.timDel.x,pipChW.vol_b.dynBal.U,pipChW.vol_a.dynBal.U,senTemChWIn.T,senTemChWOut.T,pipHotW.del.x,pipHotW.timDel.x,pipHotW.vol_b.dynBal.U,pipHotW.vol_a.dynBal.U,senTemHotWIn.T,senTemHotWOut.T) * 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 (141): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 28 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.002116/1.257, allocations: 0.9498 MB / 1.174 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.004653/1.261, allocations: 2.45 MB / 1.177 GB, free: 9.465 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/1.261, allocations: 0 / 1.177 GB, free: 9.465 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.001738/1.263, allocations: 1.028 MB / 1.178 GB, free: 8.418 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006626/1.27, allocations: 1.397 MB / 1.179 GB, free: 7.047 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008751/1.279, allocations: 5.976 MB / 1.185 GB, free: 0.9531 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001348/1.28, allocations: 1.67 MB / 1.187 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006952/1.281, allocations: 239.3 kB / 1.187 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of SimCode: time 1.272e-06/1.281, allocations: 0 / 1.187 GB, free: 15.01 MB / 0.9512 GB [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 1 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 3 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 5 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 7 .