Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/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(BuildSysPro.IBPSA.Fluid.FixedResistances.Examples.PlugFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.FixedResistances.Examples.PlugFlowPipe") translateModel(BuildSysPro.IBPSA.Fluid.FixedResistances.Examples.PlugFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.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.0008071/0.0008073, allocations: 102.8 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.000885/0.000885, allocations: 170.6 kB / 16.58 MB, free: 6.402 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.436/1.436, allocations: 223.3 MB / 240.6 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.193/1.193, allocations: 143.4 MB / 435.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004461/0.0004461, allocations: 12 kB / 0.5166 GB, free: 11.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2649, allocations: 83.41 MB / 0.5981 GB, free: 7.84 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.FixedResistances.Examples.PlugFlowPipe): time 0.5012/0.7662, allocations: 106.4 MB / 0.7019 GB, free: 5.699 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0456/0.8118, allocations: 24.94 MB / 0.7263 GB, free: 3.688 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006572/0.8184, allocations: 99.53 kB / 0.7264 GB, free: 3.648 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.004089/0.8225, allocations: 0.7853 MB / 0.7271 GB, free: 3.184 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.01304/0.8356, allocations: 2.733 MB / 0.7298 GB, free: 1 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.007762/0.8434, allocations: 1.662 MB / 0.7314 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.01328/0.8567, allocations: 7.023 MB / 0.7383 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003616/0.8604, allocations: 1.415 MB / 0.7397 GB, free: 10.76 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006983/0.8674, allocations: 2.12 MB / 0.7417 GB, free: 9.168 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004467/0.8719, allocations: 1.618 MB / 0.7433 GB, free: 7.543 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0004995/0.8724, allocations: 92 kB / 0.7434 GB, free: 7.453 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006164/0.8786, allocations: 1.571 MB / 0.7449 GB, free: 5.879 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0006494/0.8792, allocations: 390.1 kB / 0.7453 GB, free: 5.496 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001281/0.8805, allocations: 488.5 kB / 0.7458 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.005285/0.8858, allocations: 3.027 MB / 0.7487 GB, free: 1.977 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.8858, allocations: 0 / 0.7487 GB, free: 1.977 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.464e-06/0.8859, allocations: 0 / 0.7487 GB, free: 1.977 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.459e-05/0.8859, allocations: 0 / 0.7487 GB, free: 1.977 MB / 0.5606 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.006104/0.892, allocations: 2.453 MB / 0.7511 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.8921, allocations: 12.03 kB / 0.7511 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006729/0.8928, allocations: 264.9 kB / 0.7514 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00454/0.8973, allocations: 2.035 MB / 0.7534 GB, free: 13.11 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.322e-05/0.8974, allocations: 102.7 kB / 0.7535 GB, free: 13 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000201/0.8977, allocations: 140 kB / 0.7536 GB, free: 12.87 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002656/0.9003, allocations: 1.45 MB / 0.755 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.632e-05/0.9004, allocations: 3.906 kB / 0.755 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000129/0.9005, allocations: 60 kB / 0.7551 GB, free: 11.28 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.549e-05/0.9006, allocations: 35.94 kB / 0.7551 GB, free: 11.24 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001878/0.9025, allocations: 1.029 MB / 0.7561 GB, free: 10.21 MB / 0.5762 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.01099/0.9135, allocations: 8.155 MB / 0.7641 GB, free: 1.352 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00184/0.9153, allocations: 0.8462 MB / 0.7649 GB, free: 492 kB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006338/0.916, allocations: 381 kB / 0.7653 GB, free: 112 kB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002829/0.9188, allocations: 2.807 MB / 0.768 GB, free: 12.68 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.707e-05/0.9189, allocations: 47.22 kB / 0.7681 GB, free: 12.62 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=85): time 3.487e-06/0.9189, allocations: 0 / 0.7681 GB, free: 12.62 MB / 0.5919 GB Notification: Performance of matching and sorting (n=85): time 0.002617/0.9215, allocations: 1.136 MB / 0.7692 GB, free: 11.48 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.161e-05/0.9216, allocations: 64.06 kB / 0.7692 GB, free: 11.4 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002462/0.9241, allocations: 1.59 MB / 0.7708 GB, free: 9.77 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001035/0.9242, allocations: 41.7 kB / 0.7708 GB, free: 9.723 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000922/0.9251, allocations: 0.9199 MB / 0.7717 GB, free: 8.793 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003518/0.9255, allocations: 311.5 kB / 0.772 GB, free: 8.484 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.269e-05/0.9255, allocations: 20 kB / 0.772 GB, free: 8.465 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001968/0.9257, allocations: 349.9 kB / 0.7724 GB, free: 8.117 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005972/0.9263, allocations: 318.4 kB / 0.7727 GB, free: 7.809 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000949/0.9273, allocations: 0.7033 MB / 0.7734 GB, free: 6.934 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007901/0.9281, allocations: 446.7 kB / 0.7738 GB, free: 6.496 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/0.9281, allocations: 4 kB / 0.7738 GB, free: 6.492 MB / 0.5919 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002449/0.9306, allocations: 1.245 MB / 0.775 GB, free: 5.238 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003513/0.9309, allocations: 444.8 kB / 0.7754 GB, free: 4.641 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.741e-05/0.931, allocations: 16 kB / 0.7755 GB, free: 4.625 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.347e-05/0.931, allocations: 20 kB / 0.7755 GB, free: 4.605 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000839/0.9319, allocations: 263.6 kB / 0.7757 GB, free: 4.348 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.834e-05/0.9319, allocations: 27.92 kB / 0.7758 GB, free: 4.32 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/0.9334, allocations: 178.6 kB / 0.7759 GB, free: 4.145 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001414/0.9335, allocations: 73.31 kB / 0.776 GB, free: 4.074 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 8.125e-06/0.9335, allocations: 4 kB / 0.776 GB, free: 4.07 MB / 0.5919 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001812/0.9353, allocations: 1.047 MB / 0.777 GB, free: 3.027 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.087e-05/0.9354, allocations: 19.98 kB / 0.777 GB, free: 3.008 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.9354, allocations: 23.95 kB / 0.7771 GB, free: 2.984 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008039/0.9362, allocations: 263.5 kB / 0.7773 GB, free: 2.727 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.145e-05/0.9363, allocations: 20.31 kB / 0.7773 GB, free: 2.707 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/0.9376, allocations: 174.8 kB / 0.7775 GB, free: 2.535 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/0.9378, allocations: 63.98 kB / 0.7776 GB, free: 2.473 MB / 0.5919 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.0009425/0.9387, allocations: 484.6 kB / 0.778 GB, free: 1.988 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003047/0.939, allocations: 189.7 kB / 0.7782 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003102/0.9421, allocations: 1.76 MB / 0.7799 GB, free: 64 kB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.141e-05/0.9422, allocations: 19.98 kB / 0.7799 GB, free: 44 kB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.9422, allocations: 0 / 0.7799 GB, free: 44 kB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002124/0.9443, allocations: 1.154 MB / 0.7811 GB, free: 14.86 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006081/0.9504, allocations: 3.49 MB / 0.7845 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.548e-05/0.9505, allocations: 8 kB / 0.7845 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007318/0.9512, allocations: 203.7 kB / 0.7847 GB, free: 11 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.69e-05/0.9512, allocations: 12 kB / 0.7847 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.699e-05/0.9513, allocations: 39.98 kB / 0.7847 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.54e-05/0.9514, allocations: 15.94 kB / 0.7847 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.025e-06/0.9514, allocations: 12.14 kB / 0.7848 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003447/0.9548, allocations: 2.234 MB / 0.7869 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001121/0.956, allocations: 481.9 kB / 0.7874 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002347/0.9562, allocations: 36 kB / 0.7874 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009483/0.9572, allocations: 95.83 kB / 0.7875 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001933/0.9574, allocations: 116.7 kB / 0.7876 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001203/0.9575, allocations: 63.97 kB / 0.7877 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001822/0.9593, allocations: 1.06 MB / 0.7887 GB, free: 6.703 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9593, allocations: 0 / 0.7887 GB, free: 6.703 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00366/0.963, allocations: 1.123 MB / 0.7898 GB, free: 5.578 MB / 0.6075 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.001516/0.9645, allocations: 0.7772 MB / 0.7906 GB, free: 4.812 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003069/0.9676, allocations: 1.805 MB / 0.7923 GB, free: 2.965 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 7.064e-06/0.9676, allocations: 0 / 0.7923 GB, free: 2.965 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001331/0.969, allocations: 0.8148 MB / 0.7931 GB, free: 2.121 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005261/0.9743, allocations: 0.923 MB / 0.794 GB, free: 1.203 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008009/0.9823, allocations: 4.447 MB / 0.7984 GB, free: 12.64 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001293/0.9836, allocations: 1.432 MB / 0.7998 GB, free: 11.18 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007666/0.9844, allocations: 187.4 kB / 0.8 GB, free: 11 MB / 0.6231 GB Notification: Performance of SimCode: time 1.042e-06/0.9844, allocations: 4 kB / 0.8 GB, free: 10.99 MB / 0.6231 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 .