Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe.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.FixedResistances.Examples.PlugFlowPipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTemIn.T|senTemInNoMix.T|senTemOutNoMix.T|senTemOut.T",fileNamePrefix="Buildings_9_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe") translateModel(Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTemIn.T|senTemInNoMix.T|senTemOutNoMix.T|senTemOut.T",fileNamePrefix="Buildings_9_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001048/0.001049, allocations: 102.7 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.001413/0.001413, allocations: 177.3 kB / 16.58 MB, free: 6.863 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.476/1.476, allocations: 223.3 MB / 240.6 MB, free: 5.434 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.651/2.651, allocations: 390.4 MB / 0.6662 GB, free: 2.859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003466/0.0003467, allocations: 12 kB / 0.8154 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9033/0.9036, allocations: 142.3 MB / 0.9544 GB, free: 8.066 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe): time 0.1052/1.009, allocations: 106.4 MB / 1.058 GB, free: 5.496 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.03752/1.046, allocations: 24.9 MB / 1.083 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005817/1.052, allocations: 99.38 kB / 1.083 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003857/1.056, allocations: 0.7878 MB / 1.083 GB, free: 11.65 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.01074/1.067, allocations: 2.731 MB / 1.086 GB, free: 8.91 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.006887/1.074, allocations: 1.669 MB / 1.088 GB, free: 7.25 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01167/1.086, allocations: 7.012 MB / 1.095 GB, free: 216 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003295/1.089, allocations: 1.418 MB / 1.096 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006416/1.095, allocations: 2.119 MB / 1.098 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004408/1.1, allocations: 1.618 MB / 1.1 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0006186/1.101, allocations: 92 kB / 1.1 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005861/1.106, allocations: 1.571 MB / 1.101 GB, free: 9.352 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.00075/1.107, allocations: 386.2 kB / 1.102 GB, free: 8.973 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0014/1.109, allocations: 488.5 kB / 1.102 GB, free: 8.488 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.005689/1.114, allocations: 2.86 MB / 1.105 GB, free: 5.621 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/1.114, allocations: 3.938 kB / 1.105 GB, free: 5.617 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.006e-06/1.114, allocations: 0 / 1.105 GB, free: 5.617 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.982e-05/1.114, allocations: 0 / 1.105 GB, free: 5.617 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 343 * Number of variables: 343 Notification: Performance of Generate backend data structure: time 0.005541/1.12, allocations: 2.457 MB / 1.107 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/1.12, allocations: 8.031 kB / 1.107 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006834/1.121, allocations: 257 kB / 1.108 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00425/1.125, allocations: 2.026 MB / 1.11 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.713e-05/1.125, allocations: 102.7 kB / 1.11 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001932/1.125, allocations: 140 kB / 1.11 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002598/1.128, allocations: 1.454 MB / 1.111 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.796e-05/1.128, allocations: 7.938 kB / 1.111 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001251/1.128, allocations: 56 kB / 1.111 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-05/1.128, allocations: 39.94 kB / 1.111 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001898/1.13, allocations: 1.017 MB / 1.112 GB, free: 13.86 MB / 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.01013/1.14, allocations: 8.14 MB / 1.12 GB, free: 5.027 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/1.142, allocations: 0.8376 MB / 1.121 GB, free: 4.168 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005863/1.142, allocations: 382.5 kB / 1.121 GB, free: 3.797 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00219/1.145, allocations: 2.807 MB / 1.124 GB, free: 368 kB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.22e-05/1.145, allocations: 43.22 kB / 1.124 GB, free: 316 kB / 0.8731 GB Notification: Performance of pre-optimization done (n=85): time 3.757e-06/1.145, allocations: 0 / 1.124 GB, free: 316 kB / 0.8731 GB Notification: Performance of matching and sorting (n=85): time 0.002478/1.147, allocations: 1.144 MB / 1.125 GB, free: 15.16 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.092e-05/1.147, allocations: 60.06 kB / 1.125 GB, free: 15.09 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002341/1.149, allocations: 1.586 MB / 1.127 GB, free: 13.46 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001137/1.15, allocations: 49.69 kB / 1.127 GB, free: 13.4 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007726/1.15, allocations: 0.9199 MB / 1.128 GB, free: 12.47 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003293/1.151, allocations: 311.5 kB / 1.128 GB, free: 12.16 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.098e-05/1.151, allocations: 20 kB / 1.128 GB, free: 12.14 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001598/1.151, allocations: 353.9 kB / 1.129 GB, free: 11.79 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005771/1.152, allocations: 318.4 kB / 1.129 GB, free: 11.48 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008742/1.152, allocations: 0.6994 MB / 1.129 GB, free: 10.61 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007511/1.153, allocations: 446.7 kB / 1.13 GB, free: 10.17 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.435e-06/1.153, allocations: 4 kB / 1.13 GB, free: 10.16 MB / 0.8887 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002339/1.156, allocations: 1.246 MB / 1.131 GB, free: 8.914 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003537/1.156, allocations: 440.7 kB / 1.132 GB, free: 8.316 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-05/1.156, allocations: 20 kB / 1.132 GB, free: 8.297 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.666e-05/1.156, allocations: 20 kB / 1.132 GB, free: 8.277 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000816/1.157, allocations: 260.4 kB / 1.132 GB, free: 8.023 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.016e-05/1.157, allocations: 27.94 kB / 1.132 GB, free: 7.996 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/1.158, allocations: 186.6 kB / 1.132 GB, free: 7.812 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000133/1.158, allocations: 67.97 kB / 1.132 GB, free: 7.746 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.043e-05/1.159, allocations: 4 kB / 1.132 GB, free: 7.742 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001735/1.16, allocations: 1.05 MB / 1.133 GB, free: 6.695 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.881e-05/1.16, allocations: 12 kB / 1.133 GB, free: 6.684 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/1.16, allocations: 23.94 kB / 1.133 GB, free: 6.66 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007609/1.161, allocations: 272.2 kB / 1.133 GB, free: 6.395 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.62e-05/1.161, allocations: 23.92 kB / 1.133 GB, free: 6.371 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001388/1.163, allocations: 170.9 kB / 1.134 GB, free: 6.203 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/1.163, allocations: 63.94 kB / 1.134 GB, free: 6.141 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (140): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00103/1.164, allocations: 476.6 kB / 1.134 GB, free: 5.664 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003355/1.164, allocations: 189.7 kB / 1.134 GB, free: 5.477 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003117/1.167, allocations: 1.742 MB / 1.136 GB, free: 3.727 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.605e-05/1.167, allocations: 23.97 kB / 1.136 GB, free: 3.703 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.118e-06/1.167, allocations: 4 kB / 1.136 GB, free: 3.699 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001652/1.169, allocations: 1.146 MB / 1.137 GB, free: 2.52 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005862/1.175, allocations: 3.486 MB / 1.141 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.813e-05/1.175, allocations: 12 kB / 1.141 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000698/1.176, allocations: 199.7 kB / 1.141 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.935e-05/1.176, allocations: 12 kB / 1.141 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.533e-05/1.176, allocations: 44.36 kB / 1.141 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.817e-05/1.176, allocations: 23.92 kB / 1.141 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.734e-06/1.176, allocations: 8 kB / 1.141 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003341/1.179, allocations: 2.234 MB / 1.143 GB, free: 12.24 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001036/1.18, allocations: 473.9 kB / 1.143 GB, free: 11.76 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002214/1.18, allocations: 28 kB / 1.144 GB, free: 11.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009296/1.181, allocations: 99.77 kB / 1.144 GB, free: 11.63 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/1.181, allocations: 116.7 kB / 1.144 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001091/1.182, allocations: 63.97 kB / 1.144 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001654/1.183, allocations: 1.06 MB / 1.145 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.443e-06/1.183, allocations: 4 kB / 1.145 GB, free: 10.37 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.003437/1.187, allocations: 1.123 MB / 1.146 GB, free: 9.246 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 6 (pip.del.x,pip.timDel.x,pip.vol_b.dynBal.U,pip.vol_a.dynBal.U,pipNoMix.del.x,pipNoMix.timDel.x) * 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 (129): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 27 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001677/1.188, allocations: 0.7498 MB / 1.147 GB, free: 8.496 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.003187/1.192, allocations: 1.793 MB / 1.148 GB, free: 6.66 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.071e-05/1.192, allocations: 8.25 kB / 1.148 GB, free: 6.652 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001259/1.193, allocations: 0.8182 MB / 1.149 GB, free: 5.812 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004712/1.198, allocations: 0.9332 MB / 1.15 GB, free: 4.887 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008305/1.206, allocations: 4.442 MB / 1.154 GB, free: 336 kB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001289/1.207, allocations: 1.432 MB / 1.156 GB, free: 14.86 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007608/1.208, allocations: 191.4 kB / 1.156 GB, free: 14.67 MB / 0.92 GB Notification: Performance of SimCode: time 2.124e-06/1.208, allocations: 0 / 1.156 GB, free: 14.67 MB / 0.92 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 3 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 5 .