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.TestValveLinear.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.TestValveLinear,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.TestValveLinear") Notification: Performance of loadModel(ModelicaTest): time 2.17/2.17, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.119e-05/3.141e-05, allocations: 4 kB / 309.7 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3201/0.3201, allocations: 54.86 MB / 364.5 MB, free: 5.543 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.009/6.329, allocations: 2.587 GB / 2.943 GB, free: 12.74 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002292/6.329, allocations: 83.86 kB / 2.943 GB, free: 12.7 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8819/7.211, allocations: 215.5 MB / 3.154 GB, free: 3.043 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.769e-06/7.211, allocations: 0 / 3.154 GB, free: 3.043 MB / 490.7 MB Notification: Performance of Transformations before backend: time 2.707e-05/7.211, allocations: 12 kB / 3.154 GB, free: 3.031 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.004525/7.216, allocations: 1.188 MB / 3.155 GB, free: 1.797 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/7.216, allocations: 8.031 kB / 3.155 GB, free: 1.789 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002271/7.218, allocations: 215.3 kB / 3.155 GB, free: 1.578 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007246/7.219, allocations: 403.1 kB / 3.156 GB, free: 1.141 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.388e-05/7.219, allocations: 28.73 kB / 3.156 GB, free: 1.109 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.533e-05/7.219, allocations: 28 kB / 3.156 GB, free: 1.082 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0016/7.22, allocations: 0.5806 MB / 3.156 GB, free: 476 kB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/7.22, allocations: 0 / 3.156 GB, free: 476 kB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.488e-05/7.22, allocations: 12 kB / 3.156 GB, free: 464 kB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/7.22, allocations: 8 kB / 3.156 GB, free: 456 kB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2769/7.497, allocations: 497.8 kB / 3.157 GB, free: 79.11 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.003053/7.5, allocations: 2.535 MB / 3.159 GB, free: 77.25 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001519/7.502, allocations: 413.3 kB / 3.16 GB, free: 77.23 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002706/7.502, allocations: 131.1 kB / 3.16 GB, free: 77.22 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1301/7.632, allocations: 51.63 MB / 3.21 GB, free: 49.44 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/7.632, allocations: 36.69 kB / 3.21 GB, free: 49.4 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 3.572e-06/7.632, allocations: 0 / 3.21 GB, free: 49.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.002533/7.635, allocations: 0.6158 MB / 3.211 GB, free: 49.35 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/7.635, allocations: 108.8 kB / 3.211 GB, free: 49.22 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003105/7.635, allocations: 259.2 kB / 3.211 GB, free: 49.11 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.203e-05/7.635, allocations: 28.83 kB / 3.211 GB, free: 49.08 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/7.636, allocations: 272.5 kB / 3.211 GB, free: 48.89 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.114e-05/7.636, allocations: 85.19 kB / 3.212 GB, free: 48.85 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.194e-05/7.636, allocations: 3.938 kB / 3.212 GB, free: 48.85 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.921e-05/7.636, allocations: 336.8 kB / 3.212 GB, free: 48.53 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002171/7.636, allocations: 88.7 kB / 3.212 GB, free: 48.53 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00027/7.636, allocations: 213.3 kB / 3.212 GB, free: 48.38 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002476/7.637, allocations: 123.1 kB / 3.212 GB, free: 48.38 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/7.637, allocations: 0 / 3.212 GB, free: 48.38 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000708/7.637, allocations: 338.8 kB / 3.213 GB, free: 48.34 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/7.637, allocations: 7.25 kB / 3.213 GB, free: 48.34 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.105e-06/7.637, allocations: 3.906 kB / 3.213 GB, free: 48.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/7.637, allocations: 3.938 kB / 3.213 GB, free: 48.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004761/7.638, allocations: 112.2 kB / 3.213 GB, free: 48.33 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/7.638, allocations: 7.781 kB / 3.213 GB, free: 48.33 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004518/7.638, allocations: 75.77 kB / 3.213 GB, free: 48.32 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.063e-05/7.638, allocations: 18.28 kB / 3.213 GB, free: 48.32 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: 4 (SourceP1.medium.phase,SinkP1.medium.phase,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.0001031/7.639, allocations: 126.6 kB / 3.213 GB, free: 48.21 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.588e-05/7.639, allocations: 30.22 kB / 3.213 GB, free: 48.2 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002205/7.641, allocations: 1.842 MB / 3.215 GB, free: 47.98 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.737e-05/7.641, allocations: 25.88 kB / 3.215 GB, free: 47.98 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/7.641, allocations: 0 / 3.215 GB, free: 47.98 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.382e-06/7.641, allocations: 7.547 kB / 3.215 GB, free: 47.98 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/7.642, allocations: 0.9861 MB / 3.216 GB, free: 47.75 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.453e-06/7.642, allocations: 1.562 kB / 3.216 GB, free: 47.75 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004656/7.643, allocations: 87.44 kB / 3.216 GB, free: 47.75 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.802e-06/7.643, allocations: 3.531 kB / 3.216 GB, free: 47.75 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.898e-05/7.643, allocations: 9.094 kB / 3.216 GB, free: 47.75 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.074e-06/7.643, allocations: 4.781 kB / 3.216 GB, free: 47.75 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.859e-06/7.643, allocations: 0 / 3.216 GB, free: 47.75 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001204/7.644, allocations: 0.9874 MB / 3.217 GB, free: 47.52 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000188/7.644, allocations: 211.4 kB / 3.217 GB, free: 47.38 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.216e-05/7.644, allocations: 3.5 kB / 3.217 GB, free: 47.38 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000416/7.645, allocations: 53.17 kB / 3.217 GB, free: 47.38 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.053e-05/7.645, allocations: 30.94 kB / 3.217 GB, free: 47.38 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.025e-05/7.645, allocations: 12.84 kB / 3.217 GB, free: 47.38 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003188/7.645, allocations: 255.6 kB / 3.217 GB, free: 47.29 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.59e-07/7.645, allocations: 0 / 3.217 GB, free: 47.29 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003921/7.649, allocations: 1.006 MB / 3.218 GB, free: 47.29 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: 18 ($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) * 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.006815/7.656, allocations: 1.377 MB / 3.22 GB, free: 47.14 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0008904/7.657, allocations: 0.4958 MB / 3.22 GB, free: 47.12 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.819e-06/7.657, allocations: 8.031 kB / 3.22 GB, free: 47.12 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005689/7.657, allocations: 469.5 kB / 3.221 GB, free: 47.12 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001278/7.659, allocations: 181.9 kB / 3.221 GB, free: 47.11 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2301/7.889, allocations: 76.31 MB / 3.295 GB, free: 35.24 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000415/7.889, allocations: 0.9744 MB / 3.296 GB, free: 34.35 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/7.889, allocations: 47.14 kB / 3.296 GB, free: 34.3 MB / 490.7 MB Notification: Performance of SimCode: time 1.797e-06/7.889, allocations: 3.469 kB / 3.296 GB, free: 34.3 MB / 490.7 MB Notification: Performance of Templates: time 0.04075/7.93, allocations: 26.18 MB / 3.322 GB, free: 16.36 MB / 490.7 MB