Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal") translateModel(IDEAS.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.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.0008413/0.0008415, 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.001245/0.001245, allocations: 171.8 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.433/1.433, allocations: 223.3 MB / 240.6 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7484/0.7484, allocations: 132.3 MB / 424 MB, free: 2.078 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003305/0.0003305, allocations: 12.62 kB / 0.504 GB, free: 4.258 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.526/0.5263, allocations: 81.57 MB / 0.5837 GB, free: 3.996 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal): time 0.06072/0.5871, allocations: 56.03 MB / 0.6384 GB, free: 8.445 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02175/0.6089, allocations: 13.7 MB / 0.6518 GB, free: 10.72 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003041/0.612, allocations: 51.69 kB / 0.6518 GB, free: 10.67 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001969/0.614, allocations: 0.4968 MB / 0.6523 GB, free: 10.17 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006075/0.6201, allocations: 1.787 MB / 0.654 GB, free: 8.375 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004381/0.6245, allocations: 1.197 MB / 0.6552 GB, free: 7.188 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.007044/0.6315, allocations: 4.516 MB / 0.6596 GB, free: 2.66 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002114/0.6337, allocations: 0.9174 MB / 0.6605 GB, free: 1.719 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003621/0.6373, allocations: 1.264 MB / 0.6618 GB, free: 460 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002144/0.6395, allocations: 0.9918 MB / 0.6627 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002204/0.6397, allocations: 48 kB / 0.6628 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003614/0.6434, allocations: 1.208 MB / 0.6639 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000333/0.6437, allocations: 246.9 kB / 0.6642 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0006787/0.6444, allocations: 313 kB / 0.6645 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002993/0.6474, allocations: 1.905 MB / 0.6663 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 9.037e-06/0.6474, allocations: 0 / 0.6663 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.424e-06/0.6474, allocations: 0 / 0.6663 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.772e-05/0.6475, allocations: 0 / 0.6663 GB, free: 11.73 MB / 0.4981 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.002923/0.6504, allocations: 1.588 MB / 0.6679 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.6504, allocations: 15.97 kB / 0.6679 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004314/0.6509, allocations: 170.1 kB / 0.6681 GB, free: 9.902 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002268/0.6532, allocations: 1.249 MB / 0.6693 GB, free: 8.602 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.31e-05/0.6532, allocations: 62 kB / 0.6693 GB, free: 8.539 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/0.6534, allocations: 84 kB / 0.6694 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001653/0.655, allocations: 0.9553 MB / 0.6704 GB, free: 7.457 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.97e-05/0.6551, allocations: 3.938 kB / 0.6704 GB, free: 7.453 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001108/0.6552, allocations: 43.98 kB / 0.6704 GB, free: 7.41 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.71e-05/0.6552, allocations: 20 kB / 0.6704 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/0.6564, allocations: 0.6635 MB / 0.6711 GB, free: 6.723 MB / 0.4981 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.006339/0.6628, allocations: 5.213 MB / 0.6762 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008041/0.6636, allocations: 397.9 kB / 0.6765 GB, free: 0.7031 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003964/0.664, allocations: 242.1 kB / 0.6768 GB, free: 476 kB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001652/0.6657, allocations: 1.607 MB / 0.6783 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.993e-05/0.6657, allocations: 46.94 kB / 0.6784 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=53): time 2.956e-06/0.6657, allocations: 0 / 0.6784 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of matching and sorting (n=53): time 0.002383/0.6681, allocations: 0.9408 MB / 0.6793 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.269e-05/0.6682, allocations: 59.84 kB / 0.6794 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001451/0.6696, allocations: 0.9771 MB / 0.6803 GB, free: 12.42 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.58e-05/0.6697, allocations: 33.7 kB / 0.6804 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004799/0.6702, allocations: 0.5775 MB / 0.6809 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/0.6704, allocations: 189.2 kB / 0.6811 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-05/0.6704, allocations: 16 kB / 0.6811 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001388/0.6706, allocations: 333.9 kB / 0.6814 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003424/0.6709, allocations: 197.6 kB / 0.6816 GB, free: 11.06 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000511/0.6714, allocations: 396.9 kB / 0.682 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004318/0.6719, allocations: 262 kB / 0.6822 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.6719, allocations: 0 / 0.6822 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001597/0.6735, allocations: 0.8224 MB / 0.6831 GB, free: 9.52 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002212/0.6737, allocations: 261.5 kB / 0.6833 GB, free: 9.184 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.815e-05/0.6738, allocations: 11.94 kB / 0.6833 GB, free: 9.172 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005409/0.6743, allocations: 116.8 kB / 0.6834 GB, free: 9.055 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004383/0.6748, allocations: 135.8 kB / 0.6836 GB, free: 8.922 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005329/0.6753, allocations: 0.5952 MB / 0.6841 GB, free: 8.301 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008725/0.6762, allocations: 115.3 kB / 0.6842 GB, free: 8.188 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.658e-05/0.6763, allocations: 39.98 kB / 0.6843 GB, free: 8.148 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.009e-05/0.6763, allocations: 7.938 kB / 0.6843 GB, free: 8.141 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001392/0.6777, allocations: 0.6974 MB / 0.685 GB, free: 7.438 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/0.6777, allocations: 8 kB / 0.685 GB, free: 7.43 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004364/0.6782, allocations: 104.8 kB / 0.6851 GB, free: 7.324 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004176/0.6786, allocations: 143.7 kB / 0.6852 GB, free: 7.184 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004492/0.6791, allocations: 0.603 MB / 0.6858 GB, free: 6.555 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007952/0.6799, allocations: 103.4 kB / 0.6859 GB, free: 6.453 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.934e-05/0.6799, allocations: 31.98 kB / 0.6859 GB, free: 6.422 MB / 0.5137 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.0006446/0.6806, allocations: 380.9 kB / 0.6863 GB, free: 6.039 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001723/0.6808, allocations: 114.6 kB / 0.6864 GB, free: 5.926 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001999/0.6828, allocations: 1.069 MB / 0.6874 GB, free: 4.871 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-05/0.6828, allocations: 8 kB / 0.6875 GB, free: 4.863 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.6828, allocations: 0 / 0.6875 GB, free: 4.863 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001287/0.6841, allocations: 0.803 MB / 0.6882 GB, free: 4.027 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003442/0.6876, allocations: 2.086 MB / 0.6903 GB, free: 1.875 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.489e-05/0.6876, allocations: 7.938 kB / 0.6903 GB, free: 1.867 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003845/0.688, allocations: 99.89 kB / 0.6904 GB, free: 1.77 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003156/0.6883, allocations: 84.81 kB / 0.6905 GB, free: 1.684 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.359e-05/0.6884, allocations: 20 kB / 0.6905 GB, free: 1.664 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004293/0.6888, allocations: 0.5837 MB / 0.6911 GB, free: 1.055 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.6888, allocations: 7.938 kB / 0.6911 GB, free: 1.047 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002027/0.6909, allocations: 1.31 MB / 0.6923 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005482/0.6914, allocations: 315.3 kB / 0.6926 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001399/0.6916, allocations: 23.98 kB / 0.6927 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006283/0.6922, allocations: 67.94 kB / 0.6927 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.6923, allocations: 56.48 kB / 0.6928 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.74e-05/0.6924, allocations: 31.97 kB / 0.6928 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001017/0.6934, allocations: 0.6647 MB / 0.6935 GB, free: 14.53 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.9e-07/0.6934, allocations: 0 / 0.6935 GB, free: 14.53 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001991/0.6954, allocations: 0.7366 MB / 0.6942 GB, free: 13.79 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.001097/0.6965, allocations: 0.5442 MB / 0.6947 GB, free: 13.26 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001917/0.6985, allocations: 1.041 MB / 0.6957 GB, free: 12.19 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.6985, allocations: 0 / 0.6957 GB, free: 12.19 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0005999/0.6991, allocations: 427 kB / 0.6961 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002647/0.7017, allocations: 0.5807 MB / 0.6967 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004071/0.7058, allocations: 2.752 MB / 0.6994 GB, free: 8.395 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007293/0.7066, allocations: 1.125 MB / 0.7005 GB, free: 7.242 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002869/0.7069, allocations: 111.4 kB / 0.7006 GB, free: 7.133 MB / 0.5294 GB Notification: Performance of SimCode: time 1.112e-06/0.7069, allocations: 0 / 0.7006 GB, free: 7.133 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 .