Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadModel(ModelicaTest): time 2.294/2.294, allocations: 234.9 MB / 251.1 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006262/0.0006264, allocations: 12 kB / 314.9 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.3451, allocations: 54.87 MB / 369.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.811/8.157, allocations: 2.588 GB / 2.949 GB, free: 111.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/8.157, allocations: 90.52 kB / 2.949 GB, free: 111.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.143/9.3, allocations: 216.1 MB / 3.16 GB, free: 76.93 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.136e-06/9.3, allocations: 0 / 3.16 GB, free: 76.93 MB / 490.7 MB Notification: Performance of Transformations before backend: time 2.847e-05/9.3, allocations: 11.78 kB / 3.16 GB, free: 76.92 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.005684/9.306, allocations: 1.206 MB / 3.161 GB, free: 76.14 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/9.306, allocations: 11.47 kB / 3.161 GB, free: 76.13 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002452/9.309, allocations: 224.9 kB / 3.161 GB, free: 76.1 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008823/9.31, allocations: 383.8 kB / 3.162 GB, free: 75.82 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.154e-05/9.31, allocations: 28.48 kB / 3.162 GB, free: 75.8 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.681e-05/9.31, allocations: 27.66 kB / 3.162 GB, free: 75.8 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002266/9.312, allocations: 0.6043 MB / 3.162 GB, free: 75.53 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.267e-05/9.312, allocations: 0 / 3.162 GB, free: 75.53 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.143e-05/9.312, allocations: 14.38 kB / 3.162 GB, free: 75.52 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/9.312, allocations: 7.219 kB / 3.162 GB, free: 75.52 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002442/9.315, allocations: 0.5597 MB / 3.163 GB, free: 75.38 MB / 490.7 MB 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.003558/9.318, allocations: 2.533 MB / 3.165 GB, free: 73.21 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002255/9.321, allocations: 460.2 kB / 3.166 GB, free: 73.09 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1804/9.501, allocations: 51.36 MB / 3.216 GB, free: 29.66 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/9.501, allocations: 30.56 kB / 3.216 GB, free: 29.62 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 2.895e-06/9.501, allocations: 0 / 3.216 GB, free: 29.62 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.004104/9.505, allocations: 0.7818 MB / 3.217 GB, free: 28.83 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.535e-05/9.505, allocations: 110.8 kB / 3.217 GB, free: 28.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004166/9.506, allocations: 284.5 kB / 3.217 GB, free: 28.41 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.013e-05/9.506, allocations: 37.7 kB / 3.217 GB, free: 28.37 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/9.506, allocations: 262.3 kB / 3.217 GB, free: 28.11 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.998e-05/9.506, allocations: 86.75 kB / 3.218 GB, free: 28.02 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.579e-05/9.506, allocations: 8 kB / 3.218 GB, free: 28.02 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.469e-05/9.506, allocations: 326.8 kB / 3.218 GB, free: 27.69 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006096/9.507, allocations: 140.6 kB / 3.218 GB, free: 27.55 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006783/9.507, allocations: 260.7 kB / 3.218 GB, free: 27.24 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006564/9.508, allocations: 161.2 kB / 3.218 GB, free: 27.08 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/9.508, allocations: 4 kB / 3.218 GB, free: 27.08 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001584/9.51, allocations: 446.1 kB / 3.219 GB, free: 26.64 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.8e-05/9.51, allocations: 7.984 kB / 3.219 GB, free: 26.63 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/9.51, allocations: 4 kB / 3.219 GB, free: 26.62 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.526e-05/9.51, allocations: 11.94 kB / 3.219 GB, free: 26.61 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000616/9.511, allocations: 87.89 kB / 3.219 GB, free: 26.53 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.532e-05/9.511, allocations: 11.98 kB / 3.219 GB, free: 26.52 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006194/9.511, allocations: 63.78 kB / 3.219 GB, free: 26.45 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.963e-05/9.511, allocations: 16 kB / 3.219 GB, free: 26.44 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0002964/9.512, allocations: 169.6 kB / 3.219 GB, free: 26.26 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.9e-05/9.512, allocations: 35.62 kB / 3.219 GB, free: 26.23 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003387/9.515, allocations: 1.896 MB / 3.221 GB, free: 24.32 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.73e-05/9.515, allocations: 27.95 kB / 3.221 GB, free: 24.29 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/9.515, allocations: 3.938 kB / 3.221 GB, free: 24.29 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/9.515, allocations: 3.984 kB / 3.221 GB, free: 24.29 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001397/9.517, allocations: 0.9839 MB / 3.222 GB, free: 23.26 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/9.517, allocations: 0 / 3.222 GB, free: 23.26 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005434/9.517, allocations: 83.94 kB / 3.222 GB, free: 23.18 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.113e-06/9.517, allocations: 0 / 3.222 GB, free: 23.18 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.89e-05/9.517, allocations: 8 kB / 3.222 GB, free: 23.17 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.451e-06/9.517, allocations: 0 / 3.222 GB, free: 23.17 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/9.517, allocations: 0 / 3.222 GB, free: 23.17 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/9.519, allocations: 1.073 MB / 3.223 GB, free: 22.08 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002083/9.52, allocations: 211.6 kB / 3.223 GB, free: 21.85 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.572e-05/9.52, allocations: 8 kB / 3.223 GB, free: 21.84 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004861/9.52, allocations: 47.81 kB / 3.223 GB, free: 21.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/9.52, allocations: 35.94 kB / 3.223 GB, free: 21.76 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.432e-05/9.52, allocations: 11.98 kB / 3.223 GB, free: 21.75 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003804/9.521, allocations: 263.1 kB / 3.224 GB, free: 21.49 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.21e-07/9.521, allocations: 4 kB / 3.224 GB, free: 21.48 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005134/9.526, allocations: 0.9991 MB / 3.225 GB, free: 20.48 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.009712/9.536, allocations: 1.377 MB / 3.226 GB, free: 19.24 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001883/9.538, allocations: 0.6036 MB / 3.227 GB, free: 18.64 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/9.538, allocations: 0 / 3.227 GB, free: 18.64 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000963/9.539, allocations: 0.5165 MB / 3.227 GB, free: 18.12 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001615/9.54, allocations: 183.4 kB / 3.227 GB, free: 17.94 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5836/10.12, allocations: 77.11 MB / 3.303 GB, free: 79.07 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004609/10.12, allocations: 0.9749 MB / 3.304 GB, free: 78.36 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000207/10.12, allocations: 42.06 kB / 3.304 GB, free: 78.36 MB / 490.7 MB Notification: Performance of SimCode: time 1.102e-06/10.12, allocations: 0 / 3.304 GB, free: 78.36 MB / 490.7 MB Notification: Performance of Templates: time 0.0553/10.18, allocations: 26.37 MB / 3.329 GB, free: 75.49 MB / 490.7 MB