Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal.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.Validation.PlugFlowPipes.FlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal") translateModel(BuildSysPro.IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, 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.00144/0.00144, allocations: 172.9 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.534/1.534, 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/BuildSysPro 3.5.0-master/package.mo): time 1.085/1.085, allocations: 143.4 MB / 435.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003518/0.0003519, allocations: 12 kB / 0.5166 GB, free: 11.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1984/0.1988, allocations: 83.41 MB / 0.5981 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal): time 0.5196/0.7184, allocations: 56.01 MB / 0.6528 GB, free: 9.215 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.022/0.7405, allocations: 13.74 MB / 0.6662 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003921/0.7445, allocations: 55.94 kB / 0.6662 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002415/0.7469, allocations: 0.4951 MB / 0.6667 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.008118/0.755, allocations: 1.779 MB / 0.6685 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.005911/0.761, allocations: 1.206 MB / 0.6696 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.009958/0.7709, allocations: 4.533 MB / 0.6741 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003273/0.7743, allocations: 0.9123 MB / 0.675 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004969/0.7793, allocations: 1.27 MB / 0.6762 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003505/0.7828, allocations: 0.9846 MB / 0.6772 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.000607/0.7834, allocations: 51.66 kB / 0.6772 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005986/0.7894, allocations: 1.223 MB / 0.6784 GB, free: 9.906 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0009104/0.7904, allocations: 234 kB / 0.6786 GB, free: 9.785 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.00143/0.7918, allocations: 316.3 kB / 0.6789 GB, free: 9.609 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.005573/0.7974, allocations: 2.017 MB / 0.6809 GB, free: 9.141 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.7974, allocations: 0 / 0.6809 GB, free: 9.141 MB / 0.5137 GB Notification: Performance of FrontEnd: time 3.456e-06/0.7974, allocations: 0 / 0.6809 GB, free: 9.141 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.000116/0.7976, allocations: 0 / 0.6809 GB, free: 9.141 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.006127/0.8037, allocations: 1.592 MB / 0.6824 GB, free: 8.066 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.507e-05/0.8038, allocations: 16.75 kB / 0.6825 GB, free: 8.059 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001135/0.8049, allocations: 163.2 kB / 0.6826 GB, free: 7.98 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003347/0.8083, allocations: 1.251 MB / 0.6838 GB, free: 7.246 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001101/0.8084, allocations: 65.41 kB / 0.6839 GB, free: 7.215 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001687/0.8086, allocations: 92.66 kB / 0.684 GB, free: 7.18 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002114/0.8107, allocations: 0.9521 MB / 0.6849 GB, free: 6.711 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.994e-05/0.8107, allocations: 2.109 kB / 0.6849 GB, free: 6.711 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.619e-05/0.8108, allocations: 36.91 kB / 0.685 GB, free: 6.684 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-05/0.8109, allocations: 25.14 kB / 0.685 GB, free: 6.684 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001345/0.8122, allocations: 0.6633 MB / 0.6856 GB, free: 6.434 MB / 0.5137 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.007612/0.8199, allocations: 5.231 MB / 0.6907 GB, free: 2.324 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008822/0.8208, allocations: 396.7 kB / 0.6911 GB, free: 2.168 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004679/0.8212, allocations: 243.3 kB / 0.6913 GB, free: 2.074 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001682/0.8229, allocations: 1.609 MB / 0.6929 GB, free: 264 kB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.773e-05/0.823, allocations: 38.25 kB / 0.693 GB, free: 220 kB / 0.5137 GB Notification: Performance of pre-optimization done (n=53): time 3.477e-06/0.823, allocations: 1.312 kB / 0.693 GB, free: 220 kB / 0.5137 GB Notification: Performance of matching and sorting (n=53): time 0.002687/0.8257, allocations: 0.9365 MB / 0.6939 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.72e-05/0.8258, allocations: 61.83 kB / 0.6939 GB, free: 15.73 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00188/0.8276, allocations: 0.9789 MB / 0.6949 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 7.051e-05/0.8277, allocations: 34.08 kB / 0.6949 GB, free: 15.28 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006172/0.8283, allocations: 0.5751 MB / 0.6955 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002803/0.8286, allocations: 190.5 kB / 0.6957 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.509e-05/0.8287, allocations: 14.66 kB / 0.6957 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001824/0.8289, allocations: 336.2 kB / 0.696 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003959/0.8293, allocations: 197.3 kB / 0.6962 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000605/0.8299, allocations: 398.1 kB / 0.6966 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005272/0.8304, allocations: 265 kB / 0.6968 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.8304, allocations: 2.438 kB / 0.6968 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001904/0.8324, allocations: 0.8301 MB / 0.6976 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002151/0.8326, allocations: 260 kB / 0.6979 GB, free: 13.17 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.198e-05/0.8326, allocations: 10.42 kB / 0.6979 GB, free: 13.17 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005876/0.8332, allocations: 117 kB / 0.698 GB, free: 13.13 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004916/0.8337, allocations: 142.5 kB / 0.6981 GB, free: 13.12 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005298/0.8343, allocations: 0.5931 MB / 0.6987 GB, free: 12.56 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001052/0.8353, allocations: 119.2 kB / 0.6988 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.059e-05/0.8354, allocations: 34.19 kB / 0.6989 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.8354, allocations: 3.656 kB / 0.6989 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001531/0.837, allocations: 0.6996 MB / 0.6995 GB, free: 12.22 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.005e-05/0.837, allocations: 8.75 kB / 0.6996 GB, free: 12.22 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004677/0.8375, allocations: 112 kB / 0.6997 GB, free: 12.19 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004692/0.838, allocations: 148 kB / 0.6998 GB, free: 12.17 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004738/0.8385, allocations: 0.5935 MB / 0.7004 GB, free: 11.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009774/0.8394, allocations: 104.5 kB / 0.7005 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.803e-05/0.8395, allocations: 40.42 kB / 0.7005 GB, free: 11.56 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (79): * Single equations (assignments): 76 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0008915/0.8404, allocations: 379.4 kB / 0.7009 GB, free: 11.26 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002386/0.8407, allocations: 110.3 kB / 0.701 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002453/0.8432, allocations: 1.068 MB / 0.702 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.144e-05/0.8432, allocations: 15.33 kB / 0.702 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.8432, allocations: 0 / 0.702 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001533/0.8448, allocations: 0.8058 MB / 0.7028 GB, free: 10.36 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004191/0.849, allocations: 2.098 MB / 0.7049 GB, free: 8.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.979e-05/0.849, allocations: 2.875 kB / 0.7049 GB, free: 8.91 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004279/0.8494, allocations: 106.2 kB / 0.705 GB, free: 8.883 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003399/0.8498, allocations: 77.33 kB / 0.7051 GB, free: 8.844 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.273e-05/0.8498, allocations: 19.77 kB / 0.7051 GB, free: 8.832 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004912/0.8503, allocations: 0.5847 MB / 0.7056 GB, free: 8.27 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.8504, allocations: 5.406 kB / 0.7057 GB, free: 8.266 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002413/0.8528, allocations: 1.313 MB / 0.7069 GB, free: 7.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000724/0.8535, allocations: 320.1 kB / 0.7072 GB, free: 7.219 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000143/0.8537, allocations: 19.73 kB / 0.7073 GB, free: 7.203 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006813/0.8544, allocations: 76.59 kB / 0.7073 GB, free: 7.172 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001357/0.8545, allocations: 58.2 kB / 0.7074 GB, free: 7.141 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.561e-05/0.8546, allocations: 41.2 kB / 0.7074 GB, free: 7.121 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001323/0.8559, allocations: 0.6604 MB / 0.7081 GB, free: 6.738 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8559, allocations: 0 / 0.7081 GB, free: 6.738 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002845/0.8588, allocations: 0.7317 MB / 0.7088 GB, free: 6.551 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (pip.del.x,pip.timDel.x,pip.vol_b.dynBal.U,pip.vol_a.dynBal.U) * 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 (65): * Single equations (assignments): 50 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001477/0.8603, allocations: 0.5607 MB / 0.7093 GB, free: 6.242 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00239/0.8627, allocations: 1.042 MB / 0.7104 GB, free: 5.707 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/0.8627, allocations: 1.469 kB / 0.7104 GB, free: 5.707 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0007242/0.8634, allocations: 433.4 kB / 0.7108 GB, free: 5.473 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002836/0.8663, allocations: 0.5658 MB / 0.7113 GB, free: 5.191 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004278/0.8706, allocations: 2.752 MB / 0.714 GB, free: 3.309 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008479/0.8714, allocations: 1.126 MB / 0.7151 GB, free: 2.418 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003051/0.8718, allocations: 116.9 kB / 0.7152 GB, free: 2.387 MB / 0.5294 GB Notification: Performance of SimCode: time 2.214e-06/0.8718, allocations: 1.5 kB / 0.7152 GB, free: 2.387 MB / 0.5294 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 .