Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.BuriedPipes.Examples.TwoPipesConduit.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.TwoPipesConduit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTemInlSup.T|senTemOutSup.T|senTemOutRet.T|senTemInlRet.T|conAir.T|gro.ports.1|1..T",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.BuriedPipes.Examples.TwoPipesConduit") translateModel(Buildings.Fluid.Geothermal.BuriedPipes.Examples.TwoPipesConduit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTemInlSup.T|senTemOutSup.T|senTemOutRet.T|senTemInlRet.T|conAir.T|gro.ports.1|1..T",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.BuriedPipes.Examples.TwoPipesConduit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 102.6 kB / 15.71 MB, free: 460 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.001371/0.001371, allocations: 171.9 kB / 16.58 MB, free: 6.398 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.541/1.541, allocations: 223.3 MB / 240.6 MB, free: 5.406 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.54/2.54, allocations: 390.4 MB / 0.6662 GB, free: 2.848 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.0003601, allocations: 8 kB / 0.8154 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.946/0.9463, allocations: 142.3 MB / 0.9544 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.BuriedPipes.Examples.TwoPipesConduit): time 0.1087/1.055, allocations: 109.5 MB / 1.061 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.03964/1.095, allocations: 26.28 MB / 1.087 GB, free: 7.945 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006385/1.101, allocations: 115.2 kB / 1.087 GB, free: 7.832 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.006047/1.107, allocations: 1.06 MB / 1.088 GB, free: 6.766 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.01436/1.122, allocations: 3.652 MB / 1.092 GB, free: 3.098 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.008777/1.131, allocations: 2.269 MB / 1.094 GB, free: 0.8438 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01605/1.147, allocations: 9.583 MB / 1.103 GB, free: 7.234 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004755/1.151, allocations: 1.941 MB / 1.105 GB, free: 5.254 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008374/1.16, allocations: 2.711 MB / 1.108 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005903/1.166, allocations: 2.17 MB / 1.11 GB, free: 360 kB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.001084/1.167, allocations: 116 kB / 1.11 GB, free: 244 kB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01026/1.177, allocations: 2.308 MB / 1.112 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.001596/1.179, allocations: 0.5327 MB / 1.113 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001972/1.181, allocations: 0.6407 MB / 1.113 GB, free: 12.74 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.008054/1.189, allocations: 4.06 MB / 1.117 GB, free: 8.672 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/1.189, allocations: 0 / 1.117 GB, free: 8.672 MB / 0.8731 GB Notification: Performance of FrontEnd: time 3.697e-06/1.189, allocations: 0 / 1.117 GB, free: 8.672 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001282/1.189, allocations: 0 / 1.117 GB, free: 8.672 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: 445 * Number of variables: 445 Notification: Performance of Generate backend data structure: time 0.007459/1.197, allocations: 3.099 MB / 1.12 GB, free: 5.508 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/1.197, allocations: 12.03 kB / 1.121 GB, free: 5.496 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0011/1.198, allocations: 348 kB / 1.121 GB, free: 5.152 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005289/1.203, allocations: 2.501 MB / 1.123 GB, free: 2.582 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00012/1.203, allocations: 143.5 kB / 1.123 GB, free: 2.441 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002754/1.203, allocations: 191.9 kB / 1.124 GB, free: 2.254 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003596/1.207, allocations: 1.908 MB / 1.125 GB, free: 284 kB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.479e-05/1.207, allocations: 8 kB / 1.125 GB, free: 276 kB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001663/1.207, allocations: 71.94 kB / 1.126 GB, free: 204 kB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.177e-05/1.207, allocations: 52 kB / 1.126 GB, free: 152 kB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002592/1.21, allocations: 1.426 MB / 1.127 GB, free: 14.72 MB / 0.8887 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.01709/1.227, allocations: 9.881 MB / 1.137 GB, free: 4.152 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002044/1.229, allocations: 1.011 MB / 1.138 GB, free: 3.137 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009438/1.23, allocations: 0.573 MB / 1.138 GB, free: 2.559 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002712/1.233, allocations: 3.084 MB / 1.141 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.592e-05/1.233, allocations: 51.5 kB / 1.141 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=127): time 3.246e-06/1.233, allocations: 0 / 1.141 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of matching and sorting (n=127): time 0.003891/1.237, allocations: 1.791 MB / 1.143 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.689e-05/1.237, allocations: 64.41 kB / 1.143 GB, free: 12.84 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003335/1.24, allocations: 2.162 MB / 1.145 GB, free: 10.67 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001859/1.24, allocations: 53.7 kB / 1.145 GB, free: 10.61 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.001004/1.241, allocations: 1.189 MB / 1.146 GB, free: 9.41 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005148/1.242, allocations: 449.4 kB / 1.147 GB, free: 8.965 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.223e-05/1.242, allocations: 32 kB / 1.147 GB, free: 8.934 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001705/1.242, allocations: 373.9 kB / 1.147 GB, free: 8.562 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008512/1.243, allocations: 499.7 kB / 1.148 GB, free: 8.074 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001119/1.244, allocations: 0.8606 MB / 1.149 GB, free: 7.07 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001032/1.245, allocations: 0.6349 MB / 1.149 GB, free: 6.438 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.772e-06/1.245, allocations: 0 / 1.149 GB, free: 6.438 MB / 0.9044 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003363/1.249, allocations: 1.744 MB / 1.151 GB, free: 4.68 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.000307/1.249, allocations: 373.5 kB / 1.151 GB, free: 4.184 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.671e-05/1.249, allocations: 12 kB / 1.151 GB, free: 4.172 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003423/1.249, allocations: 68.81 kB / 1.151 GB, free: 4.102 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/1.25, allocations: 351.4 kB / 1.152 GB, free: 3.758 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/1.252, allocations: 1.436 MB / 1.153 GB, free: 2.191 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002236/1.254, allocations: 250.2 kB / 1.153 GB, free: 1.945 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001586/1.254, allocations: 83.95 kB / 1.153 GB, free: 1.863 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 8.666e-06/1.254, allocations: 4 kB / 1.153 GB, free: 1.859 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002566/1.257, allocations: 1.488 MB / 1.155 GB, free: 376 kB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.942e-05/1.257, allocations: 20.64 kB / 1.155 GB, free: 356 kB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002244/1.257, allocations: 64.81 kB / 1.155 GB, free: 288 kB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/1.258, allocations: 339.5 kB / 1.155 GB, free: 15.95 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001222/1.26, allocations: 1.44 MB / 1.157 GB, free: 14.37 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002111/1.262, allocations: 238.5 kB / 1.157 GB, free: 14.13 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000135/1.262, allocations: 79.97 kB / 1.157 GB, free: 14.05 MB / 0.92 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 (192): * Single equations (assignments): 186 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001352/1.263, allocations: 0.571 MB / 1.157 GB, free: 13.47 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004767/1.264, allocations: 260.8 kB / 1.158 GB, free: 13.21 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003783/1.267, allocations: 2.209 MB / 1.16 GB, free: 11.02 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.756e-05/1.267, allocations: 31.88 kB / 1.16 GB, free: 10.99 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/1.268, allocations: 0 / 1.16 GB, free: 10.99 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002337/1.27, allocations: 1.603 MB / 1.161 GB, free: 9.336 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008684/1.279, allocations: 5.02 MB / 1.166 GB, free: 4.098 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.717e-05/1.279, allocations: 8.812 kB / 1.166 GB, free: 4.09 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/1.28, allocations: 267.7 kB / 1.167 GB, free: 3.828 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002573/1.28, allocations: 60.81 kB / 1.167 GB, free: 3.766 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001058/1.28, allocations: 55.91 kB / 1.167 GB, free: 3.711 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001433/1.281, allocations: 1.429 MB / 1.168 GB, free: 2.148 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-05/1.281, allocations: 15.92 kB / 1.168 GB, free: 2.133 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004729/1.286, allocations: 2.836 MB / 1.171 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001548/1.288, allocations: 0.6333 MB / 1.172 GB, free: 14.54 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000333/1.288, allocations: 32 kB / 1.172 GB, free: 14.51 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001402/1.29, allocations: 155.1 kB / 1.172 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002639/1.29, allocations: 133 kB / 1.172 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001491/1.29, allocations: 79.95 kB / 1.172 GB, free: 14.16 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.002773/1.293, allocations: 1.573 MB / 1.173 GB, free: 12.58 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.8e-07/1.293, allocations: 0 / 1.173 GB, free: 12.58 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.00463/1.297, allocations: 1.556 MB / 1.175 GB, free: 11.02 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 14 (pipSup.del.x,pipSup.timDel.x,pipSup.vol_b.dynBal.U,pipSup.vol_a.dynBal.U,senTemInlSup.T,senTemOutSup.T,pipRet.del.x,pipRet.timDel.x,pipRet.vol_b.dynBal.U,pipRet.vol_a.dynBal.U,senTemOutRet.T,senTemInlRet.T,conAir.T,con.T[1]) * 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 (161): * Single equations (assignments): 132 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002463/1.3, allocations: 0.9531 MB / 1.176 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.00488/1.305, allocations: 2.646 MB / 1.178 GB, free: 7.359 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.128e-05/1.305, allocations: 4 kB / 1.178 GB, free: 7.355 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.001859/1.307, allocations: 1.104 MB / 1.18 GB, free: 6.219 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007533/1.314, allocations: 1.419 MB / 1.181 GB, free: 4.824 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01047/1.325, allocations: 6.307 MB / 1.187 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001578/1.326, allocations: 1.707 MB / 1.189 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001144/1.327, allocations: 259.3 kB / 1.189 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of SimCode: time 1.904e-06/1.327, allocations: 0 / 1.189 GB, free: 12.41 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 .