Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.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(IDEAS.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal") translateModel(IDEAS.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.0008597/0.0008597, allocations: 100.5 kB / 15.71 MB, free: 452 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.001066/0.001066, allocations: 175.6 kB / 16.58 MB, free: 6.883 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.317/1.317, allocations: 223.3 MB / 240.6 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9262/0.9262, allocations: 135.3 MB / 427 MB, free: 14.43 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004019/0.0004022, allocations: 11.98 kB / 0.5076 GB, free: 5.266 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1689/0.1693, allocations: 82.3 MB / 0.588 GB, free: 3.137 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FixedResistances.Validation.PlugFlowPipes.FlowReversal): time 0.3394/0.5087, allocations: 56.01 MB / 0.6427 GB, free: 20.64 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01541/0.5242, allocations: 13.7 MB / 0.6561 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002379/0.5266, allocations: 56.09 kB / 0.6561 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001606/0.5282, allocations: 0.4926 MB / 0.6566 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.005223/0.5335, allocations: 1.78 MB / 0.6583 GB, free: 9.496 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003622/0.5371, allocations: 1.213 MB / 0.6595 GB, free: 8.898 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.00524/0.5424, allocations: 4.508 MB / 0.6639 GB, free: 7.043 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001992/0.5444, allocations: 0.9111 MB / 0.6648 GB, free: 6.68 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003207/0.5476, allocations: 1.263 MB / 0.6661 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002344/0.55, allocations: 0.9916 MB / 0.667 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003716/0.5504, allocations: 52.53 kB / 0.6671 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005062/0.5554, allocations: 1.207 MB / 0.6682 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007548/0.5562, allocations: 239 kB / 0.6685 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001071/0.5573, allocations: 315.4 kB / 0.6688 GB, free: 5.066 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.003937/0.5612, allocations: 1.908 MB / 0.6706 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.5613, allocations: 1.219 kB / 0.6706 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.303e-06/0.5613, allocations: 4 kB / 0.6706 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.832e-05/0.5613, allocations: 0 / 0.6706 GB, free: 4.59 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.003596/0.565, allocations: 1.588 MB / 0.6722 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.565, allocations: 9.25 kB / 0.6722 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004836/0.5655, allocations: 164.3 kB / 0.6724 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002163/0.5677, allocations: 1.257 MB / 0.6736 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.548e-05/0.5677, allocations: 65.59 kB / 0.6737 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.5679, allocations: 90.59 kB / 0.6737 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001654/0.5695, allocations: 0.9443 MB / 0.6747 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.628e-05/0.5696, allocations: 1.469 kB / 0.6747 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.505e-05/0.5697, allocations: 37.22 kB / 0.6747 GB, free: 2.141 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.069e-05/0.5697, allocations: 24.55 kB / 0.6747 GB, free: 2.141 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00112/0.5708, allocations: 0.6663 MB / 0.6754 GB, free: 1.883 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.005525/0.5764, allocations: 5.208 MB / 0.6805 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007877/0.5772, allocations: 407.3 kB / 0.6808 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000441/0.5776, allocations: 244.7 kB / 0.6811 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001721/0.5794, allocations: 1.606 MB / 0.6826 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.367e-05/0.5794, allocations: 39.2 kB / 0.6827 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=53): time 3.327e-06/0.5794, allocations: 0 / 0.6827 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of matching and sorting (n=53): time 0.002638/0.5821, allocations: 0.9418 MB / 0.6836 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.753e-05/0.5821, allocations: 57.31 kB / 0.6837 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001639/0.5838, allocations: 0.9728 MB / 0.6846 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 7.578e-05/0.5839, allocations: 40.45 kB / 0.6846 GB, free: 10.74 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004777/0.5843, allocations: 0.5801 MB / 0.6852 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002108/0.5846, allocations: 189 kB / 0.6854 GB, free: 10.12 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.075e-05/0.5846, allocations: 14.75 kB / 0.6854 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.5847, allocations: 329.8 kB / 0.6857 GB, free: 9.801 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003436/0.5851, allocations: 196.4 kB / 0.6859 GB, free: 9.73 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004965/0.5856, allocations: 401.5 kB / 0.6863 GB, free: 9.426 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004469/0.586, allocations: 264.8 kB / 0.6865 GB, free: 9.309 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.586, allocations: 6.438 kB / 0.6866 GB, free: 9.305 MB / 0.5137 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001663/0.5877, allocations: 0.8148 MB / 0.6873 GB, free: 8.957 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001569/0.5879, allocations: 266.9 kB / 0.6876 GB, free: 8.633 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.506e-05/0.5879, allocations: 9.594 kB / 0.6876 GB, free: 8.633 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005073/0.5884, allocations: 107.6 kB / 0.6877 GB, free: 8.605 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004408/0.5889, allocations: 149.7 kB / 0.6879 GB, free: 8.582 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004457/0.5893, allocations: 0.6036 MB / 0.6884 GB, free: 8.016 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000976/0.5903, allocations: 107.3 kB / 0.6885 GB, free: 7.969 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.99e-05/0.5904, allocations: 35.86 kB / 0.6886 GB, free: 7.965 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.243e-06/0.5904, allocations: 2.812 kB / 0.6886 GB, free: 7.965 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001391/0.5918, allocations: 0.6921 MB / 0.6893 GB, free: 7.691 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.5919, allocations: 8.797 kB / 0.6893 GB, free: 7.691 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000439/0.5923, allocations: 116.5 kB / 0.6894 GB, free: 7.656 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004391/0.5928, allocations: 149.4 kB / 0.6895 GB, free: 7.633 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004342/0.5932, allocations: 0.5914 MB / 0.6901 GB, free: 7.078 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009427/0.5942, allocations: 109.4 kB / 0.6902 GB, free: 7.027 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.794e-05/0.5943, allocations: 34.61 kB / 0.6902 GB, free: 7.023 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.0009347/0.5952, allocations: 378.4 kB / 0.6906 GB, free: 6.723 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002355/0.5954, allocations: 117.5 kB / 0.6907 GB, free: 6.66 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002552/0.598, allocations: 1.066 MB / 0.6918 GB, free: 6.246 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.942e-05/0.5981, allocations: 10.19 kB / 0.6918 GB, free: 6.246 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.5981, allocations: 1.25 kB / 0.6918 GB, free: 6.246 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001511/0.5996, allocations: 0.8051 MB / 0.6925 GB, free: 5.836 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003807/0.6034, allocations: 2.091 MB / 0.6946 GB, free: 4.797 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-05/0.6034, allocations: 2.625 kB / 0.6946 GB, free: 4.797 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003824/0.6038, allocations: 107.6 kB / 0.6947 GB, free: 4.785 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003028/0.6041, allocations: 66.41 kB / 0.6948 GB, free: 4.766 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.656e-05/0.6042, allocations: 18.88 kB / 0.6948 GB, free: 4.758 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003781/0.6046, allocations: 0.5887 MB / 0.6954 GB, free: 4.199 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.6046, allocations: 5.391 kB / 0.6954 GB, free: 4.195 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002035/0.6066, allocations: 1.312 MB / 0.6966 GB, free: 3.555 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005981/0.6072, allocations: 318.7 kB / 0.6969 GB, free: 3.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001355/0.6074, allocations: 13.59 kB / 0.697 GB, free: 3.312 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006704/0.6081, allocations: 79.31 kB / 0.697 GB, free: 3.293 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.6082, allocations: 55.16 kB / 0.6971 GB, free: 3.285 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.583e-05/0.6083, allocations: 30.45 kB / 0.6971 GB, free: 3.281 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001024/0.6093, allocations: 0.6679 MB / 0.6978 GB, free: 2.992 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6093, allocations: 0 / 0.6978 GB, free: 2.992 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002299/0.6116, allocations: 0.7365 MB / 0.6985 GB, free: 2.812 MB / 0.5137 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.001201/0.6128, allocations: 0.5423 MB / 0.699 GB, free: 2.562 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001965/0.6148, allocations: 1.045 MB / 0.7 GB, free: 2.121 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.6148, allocations: 5.094 kB / 0.7 GB, free: 2.117 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0006203/0.6154, allocations: 429.6 kB / 0.7004 GB, free: 1.93 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002631/0.6181, allocations: 0.5734 MB / 0.701 GB, free: 1.766 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003855/0.6219, allocations: 2.746 MB / 0.7037 GB, free: 136 kB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007026/0.6227, allocations: 1.128 MB / 0.7048 GB, free: 15.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002956/0.623, allocations: 113 kB / 0.7049 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of SimCode: time 1.192e-06/0.623, allocations: 4 kB / 0.7049 GB, free: 15.37 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 .