Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadModel(ModelicaTest): time 1.806/1.806, allocations: 209.3 MB / 224.8 MB, free: 1.223 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004363/0.0004364, allocations: 12 kB / 282.6 MB, free: 9.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1232, allocations: 48.71 MB / 331.3 MB, free: 8.93 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.14/6.264, allocations: 2.477 GB / 2.801 GB, free: 60.71 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/6.264, allocations: 87.83 kB / 2.801 GB, free: 60.66 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8557/7.12, allocations: 212.2 MB / 3.008 GB, free: 20.14 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.81e-06/7.12, allocations: 0 / 3.008 GB, free: 20.14 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.711e-05/7.12, allocations: 8 kB / 3.008 GB, free: 20.13 MB / 426.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.004494/7.124, allocations: 1.193 MB / 3.009 GB, free: 18.89 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/7.124, allocations: 8.031 kB / 3.009 GB, free: 18.88 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002232/7.126, allocations: 207.6 kB / 3.009 GB, free: 18.68 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007314/7.127, allocations: 382.8 kB / 3.01 GB, free: 18.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.427e-05/7.127, allocations: 24.66 kB / 3.01 GB, free: 18.25 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.446e-05/7.127, allocations: 32 kB / 3.01 GB, free: 18.21 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001836/7.129, allocations: 0.5909 MB / 3.01 GB, free: 17.58 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/7.129, allocations: 0 / 3.01 GB, free: 17.58 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.587e-05/7.129, allocations: 16 kB / 3.01 GB, free: 17.56 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/7.129, allocations: 12 kB / 3.01 GB, free: 17.55 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001962/7.131, allocations: 0.5562 MB / 3.011 GB, free: 17 MB / 426.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.002749/7.134, allocations: 2.531 MB / 3.013 GB, free: 14.23 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001961/7.136, allocations: 458.8 kB / 3.014 GB, free: 13.77 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3821/7.518, allocations: 51.3 MB / 3.064 GB, free: 34.43 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.742e-05/7.518, allocations: 34.5 kB / 3.064 GB, free: 34.39 MB / 426.7 MB Notification: Performance of pre-optimization done (n=25): time 4.197e-06/7.518, allocations: 0 / 3.064 GB, free: 34.39 MB / 426.7 MB Notification: Performance of matching and sorting (n=25): time 0.003366/7.522, allocations: 0.7847 MB / 3.065 GB, free: 34.35 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/7.522, allocations: 111.5 kB / 3.065 GB, free: 34.23 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003207/7.522, allocations: 258.3 kB / 3.065 GB, free: 34.12 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.403e-05/7.522, allocations: 28.14 kB / 3.065 GB, free: 34.09 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/7.522, allocations: 269.3 kB / 3.065 GB, free: 33.91 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.594e-05/7.522, allocations: 90.22 kB / 3.065 GB, free: 33.87 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.068e-05/7.522, allocations: 3.375 kB / 3.065 GB, free: 33.87 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.079e-05/7.522, allocations: 324.9 kB / 3.066 GB, free: 33.55 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000441/7.523, allocations: 140.6 kB / 3.066 GB, free: 33.55 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004813/7.523, allocations: 273.9 kB / 3.066 GB, free: 33.39 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004644/7.524, allocations: 163.1 kB / 3.066 GB, free: 33.39 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.365e-06/7.524, allocations: 7.812 kB / 3.066 GB, free: 33.39 MB / 426.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001165/7.525, allocations: 432.6 kB / 3.067 GB, free: 33.34 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/7.525, allocations: 14.86 kB / 3.067 GB, free: 33.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.494e-06/7.525, allocations: 3.938 kB / 3.067 GB, free: 33.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/7.525, allocations: 3.719 kB / 3.067 GB, free: 33.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004378/7.526, allocations: 95.12 kB / 3.067 GB, free: 33.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.447e-05/7.526, allocations: 11.33 kB / 3.067 GB, free: 33.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004517/7.526, allocations: 62.03 kB / 3.067 GB, free: 33.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.274e-05/7.526, allocations: 20.72 kB / 3.067 GB, free: 33.32 MB / 426.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.0002436/7.526, allocations: 166.8 kB / 3.067 GB, free: 33.21 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.474e-05/7.527, allocations: 29.5 kB / 3.067 GB, free: 33.19 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002894/7.529, allocations: 1.909 MB / 3.069 GB, free: 32.98 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.428e-05/7.53, allocations: 29.11 kB / 3.069 GB, free: 32.98 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.2e-06/7.53, allocations: 0 / 3.069 GB, free: 32.98 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.608e-06/7.53, allocations: 3.531 kB / 3.069 GB, free: 32.98 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001204/7.531, allocations: 0.9718 MB / 3.07 GB, free: 32.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.779e-06/7.531, allocations: 4 kB / 3.07 GB, free: 32.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004295/7.531, allocations: 79.5 kB / 3.07 GB, free: 32.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.788e-06/7.531, allocations: 0 / 3.07 GB, free: 32.75 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.891e-05/7.531, allocations: 11.61 kB / 3.07 GB, free: 32.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/7.531, allocations: 3.953 kB / 3.07 GB, free: 32.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.007e-06/7.531, allocations: 7.969 kB / 3.07 GB, free: 32.74 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00175/7.533, allocations: 1.068 MB / 3.071 GB, free: 32.52 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001993/7.533, allocations: 208.2 kB / 3.071 GB, free: 32.38 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.848e-05/7.533, allocations: 5.562 kB / 3.071 GB, free: 32.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004209/7.534, allocations: 49.11 kB / 3.071 GB, free: 32.38 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.593e-05/7.534, allocations: 33.27 kB / 3.071 GB, free: 32.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-05/7.534, allocations: 14.95 kB / 3.071 GB, free: 32.37 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003337/7.534, allocations: 262 kB / 3.072 GB, free: 32.28 MB / 426.7 MB Notification: Performance of sort global known variables: time 8e-07/7.534, allocations: 0 / 3.072 GB, free: 32.28 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004062/7.538, allocations: 0.9994 MB / 3.072 GB, free: 32.28 MB / 426.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.007813/7.546, allocations: 1.377 MB / 3.074 GB, free: 32.12 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001357/7.548, allocations: 0.5977 MB / 3.074 GB, free: 32.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.237e-06/7.548, allocations: 0 / 3.074 GB, free: 32.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007389/7.548, allocations: 0.5152 MB / 3.075 GB, free: 32.09 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/7.55, allocations: 169 kB / 3.075 GB, free: 32.08 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1824/7.732, allocations: 75.83 MB / 3.149 GB, free: 17.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004253/7.733, allocations: 0.98 MB / 3.15 GB, free: 16.71 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000167/7.733, allocations: 41.92 kB / 3.15 GB, free: 16.67 MB / 426.7 MB Notification: Performance of SimCode: time 2.485e-06/7.733, allocations: 0 / 3.15 GB, free: 16.67 MB / 426.7 MB Notification: Performance of Templates: time 0.04212/7.775, allocations: 26.22 MB / 3.176 GB, free: 14.95 MB / 442.7 MB