Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.BuriedPipes.Examples.SingleBuriedPipe.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.SingleBuriedPipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTemInl.T|senTemOut.T|gro.soi.T|senTemInlRev.T|senTemOutRev.T|groRev.soi.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.BuriedPipes.Examples.SingleBuriedPipe") translateModel(Buildings.Fluid.Geothermal.BuriedPipes.Examples.SingleBuriedPipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTemInl.T|senTemOut.T|gro.soi.T|senTemInlRev.T|senTemOutRev.T|groRev.soi.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.BuriedPipes.Examples.SingleBuriedPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008535/0.0008537, allocations: 99.59 kB / 15.71 MB, free: 452 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.0009733/0.0009733, allocations: 173.8 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.518/1.518, allocations: 223.2 MB / 240.6 MB, free: 5.43 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.5/2.5, allocations: 390.4 MB / 0.6662 GB, free: 2.914 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003558/0.0003559, allocations: 8 kB / 0.8154 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8921/0.8925, allocations: 142.3 MB / 0.9544 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.BuriedPipes.Examples.SingleBuriedPipe): time 0.1093/1.002, allocations: 109.4 MB / 1.061 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.04163/1.044, allocations: 26.1 MB / 1.087 GB, free: 8.34 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006534/1.05, allocations: 115.2 kB / 1.087 GB, free: 8.227 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.005143/1.055, allocations: 1.071 MB / 1.088 GB, free: 7.148 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.01413/1.07, allocations: 3.624 MB / 1.091 GB, free: 3.508 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.009825/1.079, allocations: 2.222 MB / 1.094 GB, free: 1.301 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01577/1.095, allocations: 9.472 MB / 1.103 GB, free: 7.801 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004848/1.1, allocations: 1.906 MB / 1.105 GB, free: 5.855 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008518/1.109, allocations: 2.687 MB / 1.107 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005539/1.114, allocations: 2.131 MB / 1.109 GB, free: 1.016 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.001368/1.116, allocations: 116 kB / 1.11 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01078/1.126, allocations: 2.304 MB / 1.112 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.001733/1.128, allocations: 0.5211 MB / 1.112 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.00213/1.13, allocations: 0.6407 MB / 1.113 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.008426/1.139, allocations: 4.045 MB / 1.117 GB, free: 9.367 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/1.139, allocations: 0 / 1.117 GB, free: 9.367 MB / 0.8731 GB Notification: Performance of FrontEnd: time 3.176e-06/1.139, allocations: 0 / 1.117 GB, free: 9.367 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0002111/1.139, allocations: 0 / 1.117 GB, free: 9.367 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.008434/1.148, allocations: 3.05 MB / 1.12 GB, free: 6.254 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/1.148, allocations: 8.031 kB / 1.12 GB, free: 6.246 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001463/1.149, allocations: 348 kB / 1.12 GB, free: 5.902 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005825/1.155, allocations: 2.508 MB / 1.123 GB, free: 3.324 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000129/1.155, allocations: 135.4 kB / 1.123 GB, free: 3.191 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003358/1.155, allocations: 183.9 kB / 1.123 GB, free: 3.012 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003738/1.159, allocations: 1.872 MB / 1.125 GB, free: 1.07 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.452e-05/1.159, allocations: 4 kB / 1.125 GB, free: 1.066 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001692/1.159, allocations: 75.94 kB / 1.125 GB, free: 0.9922 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.405e-05/1.159, allocations: 48 kB / 1.125 GB, free: 0.9453 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002572/1.162, allocations: 1.375 MB / 1.126 GB, free: 15.56 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.01552/1.178, allocations: 9.987 MB / 1.136 GB, free: 4.832 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001627/1.179, allocations: 0.91 MB / 1.137 GB, free: 3.91 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008468/1.18, allocations: 0.5346 MB / 1.137 GB, free: 3.375 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002699/1.183, allocations: 3.088 MB / 1.14 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.603e-05/1.183, allocations: 47.52 kB / 1.14 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=120): time 3.767e-06/1.183, allocations: 4 kB / 1.14 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of matching and sorting (n=120): time 0.005619/1.189, allocations: 2.13 MB / 1.143 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.715e-05/1.189, allocations: 64.41 kB / 1.143 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003793/1.192, allocations: 2.197 MB / 1.145 GB, free: 11.08 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0002513/1.193, allocations: 49.7 kB / 1.145 GB, free: 11.03 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.001142/1.194, allocations: 1.189 MB / 1.146 GB, free: 9.824 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005441/1.194, allocations: 433.7 kB / 1.146 GB, free: 9.395 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.595e-05/1.194, allocations: 24 kB / 1.146 GB, free: 9.371 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001755/1.195, allocations: 361.9 kB / 1.147 GB, free: 9.012 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008407/1.195, allocations: 479.7 kB / 1.147 GB, free: 8.543 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001093/1.197, allocations: 0.8285 MB / 1.148 GB, free: 7.578 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009581/1.198, allocations: 0.592 MB / 1.149 GB, free: 6.984 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/1.198, allocations: 96 / 1.149 GB, free: 6.984 MB / 0.9044 GB Notification: Performance of matching and sorting (n=187) (initialization): time 0.004058/1.202, allocations: 1.862 MB / 1.15 GB, free: 5.105 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003071/1.202, allocations: 372.2 kB / 1.151 GB, free: 4.613 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.941e-05/1.202, allocations: 15.98 kB / 1.151 GB, free: 4.598 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001404/1.203, allocations: 301.5 kB / 1.151 GB, free: 4.297 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009449/1.204, allocations: 291.5 kB / 1.151 GB, free: 4.012 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00108/1.205, allocations: 1.312 MB / 1.153 GB, free: 2.648 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002295/1.208, allocations: 226.3 kB / 1.153 GB, free: 2.426 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001705/1.208, allocations: 75.97 kB / 1.153 GB, free: 2.352 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/1.208, allocations: 7.938 kB / 1.153 GB, free: 2.344 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003275/1.211, allocations: 1.606 MB / 1.154 GB, free: 0.7305 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.417e-05/1.211, allocations: 12 kB / 1.154 GB, free: 0.7188 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001236/1.213, allocations: 302 kB / 1.155 GB, free: 428 kB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008748/1.213, allocations: 291.5 kB / 1.155 GB, free: 136 kB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001011/1.214, allocations: 1.3 MB / 1.156 GB, free: 14.78 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002274/1.217, allocations: 210.6 kB / 1.157 GB, free: 14.57 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001668/1.217, allocations: 71.97 kB / 1.157 GB, free: 14.5 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 (169): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.001374/1.218, allocations: 0.5748 MB / 1.157 GB, free: 13.92 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006661/1.219, allocations: 257 kB / 1.157 GB, free: 13.66 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004564/1.224, allocations: 2.343 MB / 1.16 GB, free: 11.34 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.223e-05/1.224, allocations: 23.98 kB / 1.16 GB, free: 11.31 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/1.224, allocations: 0 / 1.16 GB, free: 11.31 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002947/1.227, allocations: 1.74 MB / 1.161 GB, free: 9.512 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01079/1.237, allocations: 5.11 MB / 1.166 GB, free: 4.188 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.96e-05/1.237, allocations: 11.98 kB / 1.166 GB, free: 4.176 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000808/1.238, allocations: 223.7 kB / 1.167 GB, free: 3.957 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009489/1.239, allocations: 241.9 kB / 1.167 GB, free: 3.715 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.451e-05/1.239, allocations: 51.91 kB / 1.167 GB, free: 3.664 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001021/1.24, allocations: 1.292 MB / 1.168 GB, free: 2.32 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.698e-06/1.24, allocations: 11.94 kB / 1.168 GB, free: 2.309 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005118/1.246, allocations: 2.94 MB / 1.171 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00182/1.247, allocations: 0.6334 MB / 1.172 GB, free: 14.61 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007428/1.248, allocations: 32 kB / 1.172 GB, free: 14.58 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00153/1.25, allocations: 133.1 kB / 1.172 GB, free: 14.45 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/1.25, allocations: 137 kB / 1.172 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001427/1.25, allocations: 83.83 kB / 1.172 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.002663/1.253, allocations: 1.596 MB / 1.174 GB, free: 12.64 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.364e-06/1.253, allocations: 112 / 1.174 GB, free: 12.64 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.004651/1.257, allocations: 1.513 MB / 1.175 GB, free: 11.12 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 12 (pip.del.x,pip.timDel.x,pip.vol_b.dynBal.U,pip.vol_a.dynBal.U,senTemInl.T,senTemOut.T,pipRev.del.x,pipRev.timDel.x,pipRev.vol_b.dynBal.U,pipRev.vol_a.dynBal.U,senTemOutRev.T,senTemInlRev.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 (142): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.002136/1.26, allocations: 0.9432 MB / 1.176 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.004234/1.264, allocations: 2.35 MB / 1.178 GB, free: 7.789 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/1.264, allocations: 8.062 kB / 1.178 GB, free: 7.781 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.001493/1.265, allocations: 0.9641 MB / 1.179 GB, free: 6.797 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006936/1.272, allocations: 1.417 MB / 1.181 GB, free: 5.402 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008824/1.281, allocations: 6.092 MB / 1.187 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001264/1.282, allocations: 1.694 MB / 1.188 GB, free: 13.47 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007585/1.283, allocations: 243.3 kB / 1.188 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of SimCode: time 1.102e-06/1.283, allocations: 0 / 1.188 GB, free: 13.23 MB / 0.9512 GB [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 0 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 2 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 4 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 6 .