Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe") translateModel(Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.0008479/0.0008483, allocations: 102 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.001157/0.001157, allocations: 175.1 kB / 16.58 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.793/1.793, allocations: 205.4 MB / 222.8 MB, free: 5.625 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.849/1.849, allocations: 292.7 MB / 0.5505 GB, free: 14.55 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000541/0.000541, allocations: 17.84 kB / 0.6743 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2679, allocations: 116.3 MB / 0.7879 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.PlugFlowPipe): time 0.04286/0.3108, allocations: 41.19 MB / 0.8281 GB, free: 2.629 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.02515/0.3361, allocations: 12.15 MB / 0.84 GB, free: 6.445 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003981/0.3401, allocations: 35.75 kB / 0.84 GB, free: 6.41 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.003188/0.3434, allocations: 413.3 kB / 0.8404 GB, free: 6.004 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.008226/0.3517, allocations: 1.543 MB / 0.8419 GB, free: 4.453 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.005648/0.3573, allocations: 0.9415 MB / 0.8429 GB, free: 3.516 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.008736/0.3661, allocations: 3.665 MB / 0.8464 GB, free: 15.84 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003051/0.3692, allocations: 0.75 MB / 0.8472 GB, free: 15.08 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003921/0.3732, allocations: 1.077 MB / 0.8482 GB, free: 14 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002398/0.3756, allocations: 0.8478 MB / 0.8491 GB, free: 13.15 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0004908/0.3761, allocations: 48 kB / 0.8491 GB, free: 13.1 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00437/0.3805, allocations: 1.115 MB / 0.8502 GB, free: 11.98 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.000662/0.3812, allocations: 207 kB / 0.8504 GB, free: 11.78 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0009417/0.3822, allocations: 277.1 kB / 0.8507 GB, free: 11.5 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.003813/0.386, allocations: 1.734 MB / 0.8523 GB, free: 9.766 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 7.635e-06/0.386, allocations: 4 kB / 0.8524 GB, free: 9.762 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.854e-06/0.3861, allocations: 0 / 0.8524 GB, free: 9.762 MB / 0.67 GB Notification: Performance of Transformations before backend: time 6.804e-05/0.3861, allocations: 0 / 0.8524 GB, free: 9.762 MB / 0.67 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.004436/0.3906, allocations: 1.452 MB / 0.8538 GB, free: 8.254 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 5.801e-05/0.3906, allocations: 15.97 kB / 0.8538 GB, free: 8.238 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007818/0.3914, allocations: 142.4 kB / 0.8539 GB, free: 8.098 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003687/0.3951, allocations: 1.164 MB / 0.8551 GB, free: 6.891 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.851e-05/0.3952, allocations: 54 kB / 0.8551 GB, free: 6.84 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002453/0.3955, allocations: 72 kB / 0.8552 GB, free: 6.77 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001871/0.3974, allocations: 0.7599 MB / 0.8559 GB, free: 5.984 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.246e-05/0.3974, allocations: 4 kB / 0.8559 GB, free: 5.98 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.234e-05/0.3975, allocations: 28 kB / 0.856 GB, free: 5.953 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.124e-05/0.3976, allocations: 19.94 kB / 0.856 GB, free: 5.934 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001334/0.3989, allocations: 0.575 MB / 0.8565 GB, free: 5.355 MB / 0.67 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.006584/0.4055, allocations: 4.01 MB / 0.8604 GB, free: 1.023 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001008/0.4065, allocations: 463.7 kB / 0.8609 GB, free: 0.5625 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004066/0.4069, allocations: 232.8 kB / 0.8611 GB, free: 340 kB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001619/0.4086, allocations: 1.519 MB / 0.8626 GB, free: 14.48 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.808e-05/0.4086, allocations: 38.92 kB / 0.8626 GB, free: 14.43 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=46): time 5.1e-06/0.4086, allocations: 3.984 kB / 0.8626 GB, free: 14.43 MB / 0.6856 GB Notification: Performance of matching and sorting (n=46): time 0.001607/0.4103, allocations: 0.6707 MB / 0.8633 GB, free: 13.75 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.043e-05/0.4103, allocations: 55.41 kB / 0.8633 GB, free: 13.69 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001589/0.4119, allocations: 0.9982 MB / 0.8643 GB, free: 12.67 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 7.352e-05/0.412, allocations: 37.7 kB / 0.8644 GB, free: 12.63 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004521/0.4125, allocations: 476.6 kB / 0.8648 GB, free: 12.16 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001804/0.4127, allocations: 169.6 kB / 0.865 GB, free: 11.99 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.129e-05/0.4127, allocations: 12 kB / 0.865 GB, free: 11.98 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001457/0.4129, allocations: 334 kB / 0.8653 GB, free: 11.65 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003582/0.4132, allocations: 185 kB / 0.8655 GB, free: 11.47 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004839/0.4137, allocations: 320.5 kB / 0.8658 GB, free: 11.11 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004476/0.4142, allocations: 236.7 kB / 0.866 GB, free: 10.88 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.189e-06/0.4142, allocations: 4 kB / 0.866 GB, free: 10.88 MB / 0.6856 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001296/0.4155, allocations: 0.6549 MB / 0.8667 GB, free: 10.21 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001533/0.4157, allocations: 187.2 kB / 0.8668 GB, free: 9.98 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.365e-05/0.4157, allocations: 7.984 kB / 0.8668 GB, free: 9.973 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/0.4157, allocations: 8 kB / 0.8668 GB, free: 9.965 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004576/0.4162, allocations: 123.8 kB / 0.867 GB, free: 9.844 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.008e-05/0.4162, allocations: 11.92 kB / 0.867 GB, free: 9.832 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007583/0.417, allocations: 103.1 kB / 0.8671 GB, free: 9.73 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.83e-05/0.4171, allocations: 31.98 kB / 0.8671 GB, free: 9.699 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 9.548e-06/0.4171, allocations: 4 kB / 0.8671 GB, free: 9.695 MB / 0.6856 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009875/0.4181, allocations: 0.5293 MB / 0.8676 GB, free: 9.164 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.439e-05/0.4181, allocations: 8 kB / 0.8676 GB, free: 9.156 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.755e-06/0.4181, allocations: 4.438 kB / 0.8676 GB, free: 9.152 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004186/0.4185, allocations: 131.8 kB / 0.8678 GB, free: 9.023 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.4186, allocations: 11.98 kB / 0.8678 GB, free: 9.012 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006131/0.4192, allocations: 83.34 kB / 0.8679 GB, free: 8.93 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.89e-05/0.4192, allocations: 35.94 kB / 0.8679 GB, free: 8.895 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (66): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0005545/0.4198, allocations: 341 kB / 0.8682 GB, free: 8.551 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001611/0.42, allocations: 106.7 kB / 0.8683 GB, free: 8.445 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001787/0.4218, allocations: 0.9758 MB / 0.8693 GB, free: 7.453 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.491e-05/0.4218, allocations: 11.98 kB / 0.8693 GB, free: 7.441 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.4218, allocations: 0 / 0.8693 GB, free: 7.441 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001168/0.423, allocations: 0.8531 MB / 0.8701 GB, free: 6.523 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003383/0.4264, allocations: 2.019 MB / 0.8721 GB, free: 4.406 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.588e-05/0.4264, allocations: 4 kB / 0.8721 GB, free: 4.402 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004139/0.4268, allocations: 104.1 kB / 0.8722 GB, free: 4.301 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.277e-05/0.4269, allocations: 7.953 kB / 0.8722 GB, free: 4.293 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.67e-05/0.4269, allocations: 23.98 kB / 0.8722 GB, free: 4.27 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.223e-06/0.4269, allocations: 7.938 kB / 0.8722 GB, free: 4.262 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.4269, allocations: 0 / 0.8722 GB, free: 4.262 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001835/0.4288, allocations: 1.206 MB / 0.8734 GB, free: 3.02 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005399/0.4293, allocations: 315.3 kB / 0.8737 GB, free: 2.691 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002122/0.4295, allocations: 19.95 kB / 0.8737 GB, free: 2.672 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006698/0.4302, allocations: 43.97 kB / 0.8738 GB, free: 2.629 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/0.4304, allocations: 48.48 kB / 0.8738 GB, free: 2.582 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.367e-05/0.4305, allocations: 31.92 kB / 0.8738 GB, free: 2.551 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001442/0.4319, allocations: 0.7109 MB / 0.8745 GB, free: 1.832 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.51e-07/0.4319, allocations: 4 kB / 0.8745 GB, free: 1.828 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002401/0.4343, allocations: 0.6045 MB / 0.8751 GB, free: 1.223 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (pip.cor.del.x,pip.cor.timDel.x,pip.vol.dynBal.U,senTemOut.T,senTemIn.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 (62): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 14 * 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.001478/0.4358, allocations: 0.5025 MB / 0.8756 GB, free: 0.7188 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002001/0.4378, allocations: 0.9389 MB / 0.8765 GB, free: 15.75 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.4379, allocations: 4.188 kB / 0.8765 GB, free: 15.75 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.0006464/0.4385, allocations: 406.4 kB / 0.8769 GB, free: 15.34 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003155/0.4417, allocations: 0.5863 MB / 0.8775 GB, free: 14.77 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004642/0.4463, allocations: 2.499 MB / 0.8799 GB, free: 12.21 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000945/0.4473, allocations: 1.058 MB / 0.881 GB, free: 11.12 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000381/0.4477, allocations: 115.3 kB / 0.8811 GB, free: 11.01 MB / 0.7012 GB Notification: Performance of SimCode: time 1.413e-06/0.4477, allocations: 0 / 0.8811 GB, free: 11.01 MB / 0.7012 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 .