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.TestValveCompressible.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.TestValveCompressible,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|V1.minLimiter.y|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.TestValveCompressible") Notification: Performance of loadModel(ModelicaTest): time 2.243/2.243, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.449e-05/4.471e-05, allocations: 7.984 kB / 309.7 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3535/0.3535, allocations: 54.86 MB / 364.5 MB, free: 5.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.828/6.182, allocations: 2.607 GB / 2.963 GB, free: 69.75 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002421/6.182, allocations: 84.73 kB / 2.963 GB, free: 69.67 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9494/7.132, allocations: 235.6 MB / 3.193 GB, free: 32.72 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.806e-06/7.132, allocations: 0 / 3.193 GB, free: 32.72 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.417e-05/7.132, allocations: 16 kB / 3.193 GB, free: 32.71 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.004554/7.136, allocations: 1.281 MB / 3.194 GB, free: 31.38 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/7.136, allocations: 8.031 kB / 3.194 GB, free: 31.37 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002516/7.139, allocations: 255.2 kB / 3.195 GB, free: 31.12 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008314/7.14, allocations: 428.5 kB / 3.195 GB, free: 30.66 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.414e-05/7.14, allocations: 32.78 kB / 3.195 GB, free: 30.63 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.107e-05/7.14, allocations: 32 kB / 3.195 GB, free: 30.6 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00163/7.142, allocations: 0.6164 MB / 3.196 GB, free: 29.94 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/7.142, allocations: 3.938 kB / 3.196 GB, free: 29.93 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.866e-05/7.142, allocations: 16 kB / 3.196 GB, free: 29.92 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/7.142, allocations: 12 kB / 3.196 GB, free: 29.91 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001522/7.143, allocations: 0.5299 MB / 3.196 GB, free: 29.38 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.003108/7.146, allocations: 2.653 MB / 3.199 GB, free: 26.48 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001851/7.148, allocations: 0.4907 MB / 3.199 GB, free: 25.98 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002861/7.149, allocations: 136.8 kB / 3.2 GB, free: 25.85 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4095/7.558, allocations: 55.14 MB / 3.253 GB, free: 57.41 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.776e-05/7.558, allocations: 39.77 kB / 3.253 GB, free: 57.37 MB / 490.7 MB Notification: Performance of pre-optimization done (n=28): time 3.203e-06/7.558, allocations: 0 / 3.253 GB, free: 57.37 MB / 490.7 MB Notification: Performance of matching and sorting (n=28): time 0.002657/7.561, allocations: 0.6513 MB / 3.254 GB, free: 57.33 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.476e-05/7.561, allocations: 109.4 kB / 3.254 GB, free: 57.21 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004188/7.561, allocations: 310.7 kB / 3.254 GB, free: 57.1 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.541e-05/7.561, allocations: 32.83 kB / 3.254 GB, free: 57.07 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/7.561, allocations: 291 kB / 3.255 GB, free: 56.88 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.345e-05/7.562, allocations: 104.9 kB / 3.255 GB, free: 56.84 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.912e-05/7.562, allocations: 7.438 kB / 3.255 GB, free: 56.84 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.353e-05/7.562, allocations: 327.4 kB / 3.255 GB, free: 56.52 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002554/7.562, allocations: 106.6 kB / 3.255 GB, free: 56.52 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003281/7.562, allocations: 264.3 kB / 3.256 GB, free: 56.34 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003087/7.563, allocations: 136.3 kB / 3.256 GB, free: 56.34 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/7.563, allocations: 3.031 kB / 3.256 GB, free: 56.34 MB / 490.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008893/7.564, allocations: 406.1 kB / 3.256 GB, free: 56.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003638/7.564, allocations: 1.841 MB / 3.258 GB, free: 54.39 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/7.564, allocations: 3.688 kB / 3.258 GB, free: 54.39 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.302e-05/7.564, allocations: 7.719 kB / 3.258 GB, free: 54.39 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005524/7.565, allocations: 117.3 kB / 3.258 GB, free: 54.39 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.648e-05/7.565, allocations: 8.781 kB / 3.258 GB, free: 54.39 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005589/7.565, allocations: 81.98 kB / 3.258 GB, free: 54.38 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.045e-05/7.565, allocations: 25 kB / 3.258 GB, free: 54.38 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.864e-06/7.565, allocations: 3.688 kB / 3.258 GB, free: 54.38 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007803/7.566, allocations: 355.7 kB / 3.258 GB, free: 54.38 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.823e-06/7.566, allocations: 3.812 kB / 3.258 GB, free: 54.38 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/7.566, allocations: 10.97 kB / 3.258 GB, free: 54.38 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005524/7.567, allocations: 116.6 kB / 3.259 GB, free: 54.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/7.567, allocations: 10.64 kB / 3.259 GB, free: 54.38 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004251/7.567, allocations: 62.45 kB / 3.259 GB, free: 54.37 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.872e-05/7.567, allocations: 23.47 kB / 3.259 GB, free: 54.37 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (49): * Single equations (assignments): 49 * 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.0001449/7.567, allocations: 140 kB / 3.259 GB, free: 54.26 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/7.567, allocations: 40.5 kB / 3.259 GB, free: 54.24 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002439/7.57, allocations: 1.907 MB / 3.261 GB, free: 54.02 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-05/7.57, allocations: 28.38 kB / 3.261 GB, free: 54.02 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/7.57, allocations: 3.953 kB / 3.261 GB, free: 54.02 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.769e-06/7.57, allocations: 7.125 kB / 3.261 GB, free: 54.02 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001233/7.571, allocations: 1.027 MB / 3.262 GB, free: 53.79 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.677e-06/7.571, allocations: 0 / 3.262 GB, free: 53.79 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004712/7.572, allocations: 81.34 kB / 3.262 GB, free: 53.79 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.947e-06/7.572, allocations: 4.938 kB / 3.262 GB, free: 53.79 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.966e-05/7.572, allocations: 10.59 kB / 3.262 GB, free: 53.79 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.861e-06/7.572, allocations: 0 / 3.262 GB, free: 53.79 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.871e-06/7.572, allocations: 3.438 kB / 3.262 GB, free: 53.79 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001352/7.573, allocations: 1.035 MB / 3.263 GB, free: 53.55 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003111/7.574, allocations: 257.6 kB / 3.263 GB, free: 53.41 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.326e-05/7.574, allocations: 9.125 kB / 3.263 GB, free: 53.41 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000485/7.574, allocations: 41.08 kB / 3.263 GB, free: 53.41 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.383e-05/7.574, allocations: 25.59 kB / 3.263 GB, free: 53.41 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.371e-05/7.574, allocations: 21.3 kB / 3.263 GB, free: 53.41 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004126/7.575, allocations: 308.5 kB / 3.263 GB, free: 53.32 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.17e-07/7.575, allocations: 0 / 3.263 GB, free: 53.32 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004657/7.579, allocations: 1.159 MB / 3.265 GB, free: 53.3 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,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 31 * 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.007566/7.587, allocations: 1.431 MB / 3.266 GB, free: 53.15 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001403/7.588, allocations: 0.7467 MB / 3.267 GB, free: 53.13 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.432e-06/7.588, allocations: 0 / 3.267 GB, free: 53.13 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005753/7.589, allocations: 493.1 kB / 3.267 GB, free: 53.13 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001415/7.59, allocations: 201.4 kB / 3.267 GB, free: 53.12 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1906/7.781, allocations: 81.3 MB / 3.347 GB, free: 42.38 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004424/7.782, allocations: 1.01 MB / 3.348 GB, free: 41.46 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000187/7.782, allocations: 51.05 kB / 3.348 GB, free: 41.42 MB / 490.7 MB Notification: Performance of SimCode: time 1.877e-06/7.782, allocations: 0 / 3.348 GB, free: 41.42 MB / 490.7 MB Notification: Performance of Templates: time 0.04318/7.825, allocations: 27.45 MB / 3.375 GB, free: 25.6 MB / 490.7 MB