Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.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/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.Validation.PlugFlowPipes.FlowReversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow.y|senTemIn.T|senTemOut.T|pip.v_nominal|pip.v",fileNamePrefix="Buildings_9_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal") translateModel(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow.y|senTemIn.T|senTemOut.T|pip.v_nominal|pip.v",fileNamePrefix="Buildings_9_Buildings.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.001/0.0009999, allocations: 102.6 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.001385/0.001385, allocations: 176.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.503/1.503, allocations: 223.2 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.536/2.536, allocations: 390.5 MB / 0.6662 GB, free: 2.875 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004472/0.0004474, allocations: 8 kB / 0.8154 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8781/0.8786, allocations: 142.3 MB / 0.9544 GB, free: 8.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal): time 0.05583/0.9345, allocations: 56.04 MB / 1.009 GB, free: 7.996 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02094/0.9555, allocations: 13.71 MB / 1.023 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003831/0.9594, allocations: 55.62 kB / 1.023 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002454/0.9619, allocations: 0.5006 MB / 1.023 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.006762/0.9687, allocations: 1.776 MB / 1.025 GB, free: 7.914 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.004597/0.9733, allocations: 1.209 MB / 1.026 GB, free: 6.715 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.007382/0.9807, allocations: 4.528 MB / 1.03 GB, free: 2.168 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002021/0.9827, allocations: 0.898 MB / 1.031 GB, free: 1.246 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003235/0.986, allocations: 1.275 MB / 1.033 GB, free: 15.96 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001888/0.9879, allocations: 0.98 MB / 1.033 GB, free: 14.98 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001602/0.9881, allocations: 48 kB / 1.034 GB, free: 14.93 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003565/0.9916, allocations: 1.22 MB / 1.035 GB, free: 13.71 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0003241/0.992, allocations: 234.9 kB / 1.035 GB, free: 13.48 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0006045/0.9926, allocations: 317 kB / 1.035 GB, free: 13.16 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.002826/0.9954, allocations: 1.917 MB / 1.037 GB, free: 11.24 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.9954, allocations: 0 / 1.037 GB, free: 11.24 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.305e-06/0.9954, allocations: 0 / 1.037 GB, free: 11.24 MB / 0.795 GB Notification: Performance of Transformations before backend: time 2.38e-05/0.9955, allocations: 0 / 1.037 GB, free: 11.24 MB / 0.795 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.002848/0.9983, allocations: 1.586 MB / 1.039 GB, free: 9.602 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.9984, allocations: 8.031 kB / 1.039 GB, free: 9.594 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003926/0.9988, allocations: 166.1 kB / 1.039 GB, free: 9.43 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002096/1.001, allocations: 1.25 MB / 1.04 GB, free: 8.125 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.377e-05/1.001, allocations: 66 kB / 1.04 GB, free: 8.059 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001356/1.001, allocations: 84 kB / 1.04 GB, free: 7.977 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/1.003, allocations: 0.9601 MB / 1.041 GB, free: 6.973 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.818e-05/1.003, allocations: 0 / 1.041 GB, free: 6.973 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.966e-05/1.003, allocations: 43.95 kB / 1.041 GB, free: 6.93 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.29e-05/1.003, allocations: 27.98 kB / 1.041 GB, free: 6.902 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001111/1.004, allocations: 0.6596 MB / 1.042 GB, free: 6.242 MB / 0.795 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.005486/1.01, allocations: 5.213 MB / 1.047 GB, free: 0.6172 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007111/1.01, allocations: 404.4 kB / 1.047 GB, free: 220 kB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003702/1.011, allocations: 250.1 kB / 1.048 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001375/1.012, allocations: 1.599 MB / 1.049 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.595e-05/1.012, allocations: 42.94 kB / 1.049 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=53): time 4.919e-06/1.012, allocations: 4 kB / 1.049 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of matching and sorting (n=53): time 0.002215/1.014, allocations: 0.9369 MB / 1.05 GB, free: 13 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.501e-05/1.014, allocations: 55.84 kB / 1.05 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001334/1.016, allocations: 0.9811 MB / 1.051 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.546e-05/1.016, allocations: 33.7 kB / 1.051 GB, free: 11.89 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004505/1.016, allocations: 0.5735 MB / 1.052 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001849/1.016, allocations: 193.2 kB / 1.052 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.214e-05/1.016, allocations: 12 kB / 1.052 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001346/1.017, allocations: 337.9 kB / 1.052 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003271/1.017, allocations: 193.5 kB / 1.052 GB, free: 10.59 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004892/1.017, allocations: 404.9 kB / 1.053 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004318/1.018, allocations: 262.1 kB / 1.053 GB, free: 9.852 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.002e-06/1.018, allocations: 0 / 1.053 GB, free: 9.852 MB / 0.8106 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001558/1.019, allocations: 0.8264 MB / 1.054 GB, free: 9.016 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001888/1.02, allocations: 269.3 kB / 1.054 GB, free: 8.668 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.204e-05/1.02, allocations: 8 kB / 1.054 GB, free: 8.66 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005154/1.02, allocations: 112.8 kB / 1.054 GB, free: 8.547 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004323/1.021, allocations: 139.8 kB / 1.054 GB, free: 8.41 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004689/1.021, allocations: 0.5914 MB / 1.055 GB, free: 7.793 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007986/1.022, allocations: 115.2 kB / 1.055 GB, free: 7.68 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.04e-05/1.022, allocations: 43.98 kB / 1.055 GB, free: 7.637 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.368e-06/1.022, allocations: 5.406 kB / 1.055 GB, free: 7.633 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001343/1.023, allocations: 0.6931 MB / 1.056 GB, free: 6.938 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/1.023, allocations: 8.469 kB / 1.056 GB, free: 6.93 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004311/1.024, allocations: 112.7 kB / 1.056 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004036/1.024, allocations: 139.7 kB / 1.056 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004049/1.025, allocations: 0.603 MB / 1.057 GB, free: 6.051 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007618/1.025, allocations: 103.4 kB / 1.057 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.361e-05/1.026, allocations: 39.94 kB / 1.057 GB, free: 5.91 MB / 0.8106 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.0005797/1.026, allocations: 375 kB / 1.057 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001574/1.026, allocations: 114.6 kB / 1.057 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001936/1.028, allocations: 1.069 MB / 1.058 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.106e-05/1.028, allocations: 11.98 kB / 1.058 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/1.028, allocations: 0 / 1.058 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00124/1.029, allocations: 0.8107 MB / 1.059 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003223/1.033, allocations: 2.087 MB / 1.061 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.687e-05/1.033, allocations: 7.938 kB / 1.061 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003808/1.033, allocations: 103.8 kB / 1.061 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003148/1.033, allocations: 64.81 kB / 1.061 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.548e-05/1.034, allocations: 24.12 kB / 1.061 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004168/1.034, allocations: 0.5876 MB / 1.062 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.034, allocations: 4.031 kB / 1.062 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001976/1.036, allocations: 1.333 MB / 1.063 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005253/1.036, allocations: 315.3 kB / 1.063 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000133/1.037, allocations: 16 kB / 1.063 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006341/1.037, allocations: 81.8 kB / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/1.037, allocations: 48.48 kB / 1.064 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.632e-05/1.037, allocations: 39.97 kB / 1.064 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001003/1.038, allocations: 0.6608 MB / 1.064 GB, free: 14 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/1.038, allocations: 4 kB / 1.064 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001974/1.04, allocations: 0.7366 MB / 1.065 GB, free: 13.25 MB / 0.8262 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.001094/1.042, allocations: 0.5401 MB / 1.066 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001818/1.043, allocations: 1.044 MB / 1.067 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/1.043, allocations: 0 / 1.067 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0005594/1.044, allocations: 427.8 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002499/1.047, allocations: 0.5783 MB / 1.068 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003811/1.05, allocations: 2.751 MB / 1.07 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006662/1.051, allocations: 1.129 MB / 1.071 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002819/1.051, allocations: 119.3 kB / 1.071 GB, free: 6.582 MB / 0.8262 GB Notification: Performance of SimCode: time 1.012e-06/1.051, allocations: 0 / 1.071 GB, free: 6.582 MB / 0.8262 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 .