Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.237/2.237, allocations: 235 MB / 248.1 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.566e-05/2.58e-05, allocations: 3.984 kB / 309.7 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3635, allocations: 54.86 MB / 364.5 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.734/6.097, allocations: 2.588 GB / 2.944 GB, free: 93.61 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002098/6.098, allocations: 82.86 kB / 2.944 GB, free: 93.53 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.901/6.999, allocations: 215.4 MB / 3.154 GB, free: 71.75 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.845e-06/6.999, allocations: 0 / 3.154 GB, free: 71.75 MB / 490.7 MB Notification: Performance of Transformations before backend: time 2.618e-05/6.999, allocations: 8 kB / 3.154 GB, free: 71.74 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.00402/7.003, allocations: 1.165 MB / 3.155 GB, free: 70.63 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/7.003, allocations: 8.031 kB / 3.155 GB, free: 70.62 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002207/7.005, allocations: 219.5 kB / 3.155 GB, free: 70.41 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006812/7.006, allocations: 385.9 kB / 3.156 GB, free: 70 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.395e-05/7.006, allocations: 32.67 kB / 3.156 GB, free: 69.96 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.66e-05/7.006, allocations: 28 kB / 3.156 GB, free: 69.93 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001544/7.007, allocations: 0.5801 MB / 3.156 GB, free: 69.32 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/7.007, allocations: 0 / 3.156 GB, free: 69.32 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.446e-05/7.007, allocations: 19.98 kB / 3.156 GB, free: 69.3 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/7.007, allocations: 8 kB / 3.156 GB, free: 69.3 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001457/7.009, allocations: 0.4898 MB / 3.157 GB, free: 68.81 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.002755/7.012, allocations: 2.529 MB / 3.159 GB, free: 66.07 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001497/7.013, allocations: 419.2 kB / 3.16 GB, free: 65.66 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00025/7.014, allocations: 132.7 kB / 3.16 GB, free: 65.53 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1139/7.127, allocations: 51.63 MB / 3.21 GB, free: 8.621 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/7.128, allocations: 46.48 kB / 3.21 GB, free: 8.566 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 2.979e-06/7.128, allocations: 0 / 3.21 GB, free: 8.566 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.002388/7.13, allocations: 0.6101 MB / 3.211 GB, free: 7.949 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.972e-05/7.13, allocations: 110.8 kB / 3.211 GB, free: 7.816 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000321/7.13, allocations: 254.5 kB / 3.211 GB, free: 7.555 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.594e-05/7.13, allocations: 29.7 kB / 3.211 GB, free: 7.52 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/7.13, allocations: 274 kB / 3.212 GB, free: 7.25 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.552e-05/7.131, allocations: 90.58 kB / 3.212 GB, free: 7.164 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-05/7.131, allocations: 8 kB / 3.212 GB, free: 7.156 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.689e-05/7.131, allocations: 322.8 kB / 3.212 GB, free: 6.832 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002058/7.131, allocations: 92.64 kB / 3.212 GB, free: 6.738 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002577/7.131, allocations: 208.8 kB / 3.212 GB, free: 6.48 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002322/7.131, allocations: 112.1 kB / 3.212 GB, free: 6.371 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.841e-06/7.131, allocations: 0 / 3.212 GB, free: 6.371 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006982/7.132, allocations: 337.1 kB / 3.213 GB, free: 6.035 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/7.132, allocations: 6.031 kB / 3.213 GB, free: 6.031 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/7.132, allocations: 4 kB / 3.213 GB, free: 6.027 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.316e-05/7.132, allocations: 11.94 kB / 3.213 GB, free: 6.016 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004729/7.133, allocations: 100.3 kB / 3.213 GB, free: 5.918 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/7.133, allocations: 8 kB / 3.213 GB, free: 5.91 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004559/7.133, allocations: 67.55 kB / 3.213 GB, free: 5.844 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.256e-05/7.133, allocations: 23.95 kB / 3.213 GB, free: 5.82 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 () * 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.0001128/7.133, allocations: 136.7 kB / 3.213 GB, free: 5.68 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.858e-05/7.134, allocations: 27.62 kB / 3.213 GB, free: 5.652 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002138/7.136, allocations: 1.841 MB / 3.215 GB, free: 3.797 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.17e-05/7.136, allocations: 27.95 kB / 3.215 GB, free: 3.77 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.465e-06/7.136, allocations: 4 kB / 3.215 GB, free: 3.766 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.48e-06/7.136, allocations: 0 / 3.215 GB, free: 3.766 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0011/7.137, allocations: 0.9753 MB / 3.216 GB, free: 2.746 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.964e-06/7.137, allocations: 4 kB / 3.216 GB, free: 2.742 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003925/7.137, allocations: 87.81 kB / 3.216 GB, free: 2.656 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.087e-06/7.137, allocations: 0 / 3.216 GB, free: 2.656 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.803e-05/7.137, allocations: 8 kB / 3.216 GB, free: 2.648 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.018e-06/7.137, allocations: 0 / 3.216 GB, free: 2.648 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.036e-06/7.137, allocations: 0 / 3.216 GB, free: 2.648 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001155/7.139, allocations: 0.9792 MB / 3.217 GB, free: 1.652 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001702/7.139, allocations: 207.5 kB / 3.217 GB, free: 1.43 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.365e-05/7.139, allocations: 23.98 kB / 3.217 GB, free: 1.406 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003887/7.139, allocations: 35.97 kB / 3.217 GB, free: 1.371 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.292e-05/7.139, allocations: 27.95 kB / 3.217 GB, free: 1.344 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.063e-05/7.139, allocations: 12 kB / 3.217 GB, free: 1.332 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003115/7.14, allocations: 257.2 kB / 3.217 GB, free: 1.078 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.54e-07/7.14, allocations: 0 / 3.217 GB, free: 1.078 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003839/7.144, allocations: 1.012 MB / 3.218 GB, free: 68 kB / 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 () * 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.2757/7.419, allocations: 1.353 MB / 3.22 GB, free: 88 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0009985/7.42, allocations: 0.5028 MB / 3.22 GB, free: 88 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.785e-06/7.42, allocations: 2.25 kB / 3.22 GB, free: 88 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006274/7.421, allocations: 472.8 kB / 3.221 GB, free: 88 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/7.422, allocations: 180.1 kB / 3.221 GB, free: 87.99 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2068/7.629, allocations: 76.29 MB / 3.295 GB, free: 85.24 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004257/7.629, allocations: 0.9788 MB / 3.296 GB, free: 84.53 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001749/7.63, allocations: 46 kB / 3.296 GB, free: 84.52 MB / 490.7 MB Notification: Performance of SimCode: time 1.803e-06/7.63, allocations: 0 / 3.296 GB, free: 84.52 MB / 490.7 MB Notification: Performance of Templates: time 0.0425/7.672, allocations: 26.14 MB / 3.322 GB, free: 75.41 MB / 490.7 MB