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.TestValveLinear.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.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.281/2.281, allocations: 234.9 MB / 251.1 MB, free: 9.688 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004382/0.0004383, allocations: 12 kB / 314.9 MB, free: 9.734 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3802/0.3807, allocations: 54.86 MB / 369.8 MB, free: 12.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.707/8.088, allocations: 2.587 GB / 2.949 GB, free: 126.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/8.088, allocations: 91.67 kB / 2.949 GB, free: 126.4 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.151/9.24, allocations: 216.2 MB / 3.16 GB, free: 84.71 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.904e-06/9.24, allocations: 0 / 3.16 GB, free: 84.71 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.162e-05/9.24, allocations: 11.31 kB / 3.16 GB, free: 84.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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.005644/9.245, allocations: 1.227 MB / 3.161 GB, free: 84 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/9.245, allocations: 8.438 kB / 3.161 GB, free: 84 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002486/9.248, allocations: 226.5 kB / 3.161 GB, free: 83.96 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009362/9.249, allocations: 388.8 kB / 3.162 GB, free: 83.68 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.89e-05/9.249, allocations: 24.95 kB / 3.162 GB, free: 83.67 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.463e-05/9.249, allocations: 27.5 kB / 3.162 GB, free: 83.66 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002344/9.251, allocations: 0.6246 MB / 3.162 GB, free: 83.39 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.855e-05/9.251, allocations: 0 / 3.162 GB, free: 83.39 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.496e-05/9.251, allocations: 19.06 kB / 3.162 GB, free: 83.38 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/9.252, allocations: 6.469 kB / 3.162 GB, free: 83.38 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002606/9.254, allocations: 0.5772 MB / 3.163 GB, free: 83.25 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.00363/9.258, allocations: 2.54 MB / 3.165 GB, free: 81.08 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00234/9.26, allocations: 472.3 kB / 3.166 GB, free: 80.96 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1762/9.436, allocations: 51.36 MB / 3.216 GB, free: 49.58 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.49e-05/9.436, allocations: 42.25 kB / 3.216 GB, free: 49.54 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 2.525e-06/9.436, allocations: 0 / 3.216 GB, free: 49.54 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.004233/9.441, allocations: 0.8264 MB / 3.217 GB, free: 48.88 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.11e-05/9.441, allocations: 102.8 kB / 3.217 GB, free: 48.75 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004104/9.441, allocations: 295.8 kB / 3.217 GB, free: 48.48 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.984e-05/9.441, allocations: 29.7 kB / 3.217 GB, free: 48.45 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/9.441, allocations: 265.4 kB / 3.217 GB, free: 48.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.938e-05/9.442, allocations: 89.94 kB / 3.217 GB, free: 48.12 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-05/9.442, allocations: 8 kB / 3.218 GB, free: 48.11 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.903e-05/9.442, allocations: 330.3 kB / 3.218 GB, free: 47.79 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007063/9.442, allocations: 154.2 kB / 3.218 GB, free: 47.66 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007553/9.443, allocations: 273.7 kB / 3.218 GB, free: 47.37 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007619/9.444, allocations: 186.1 kB / 3.218 GB, free: 47.21 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/9.444, allocations: 3.938 kB / 3.218 GB, free: 47.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001724/9.446, allocations: 463.6 kB / 3.219 GB, free: 46.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/9.446, allocations: 4 kB / 3.219 GB, free: 46.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/9.446, allocations: 4 kB / 3.219 GB, free: 46.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.794e-05/9.446, allocations: 8 kB / 3.219 GB, free: 46.79 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006824/9.447, allocations: 109.8 kB / 3.219 GB, free: 46.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.48e-05/9.447, allocations: 12 kB / 3.219 GB, free: 46.69 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006192/9.447, allocations: 62.16 kB / 3.219 GB, free: 46.64 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.076e-05/9.447, allocations: 27.61 kB / 3.219 GB, free: 46.61 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 () * 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.0003028/9.448, allocations: 161.7 kB / 3.219 GB, free: 46.45 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/9.448, allocations: 31.62 kB / 3.219 GB, free: 46.41 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003661/9.451, allocations: 1.933 MB / 3.221 GB, free: 44.69 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.229e-05/9.451, allocations: 30.39 kB / 3.221 GB, free: 44.67 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/9.451, allocations: 0 / 3.221 GB, free: 44.67 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.869e-06/9.451, allocations: 3.703 kB / 3.221 GB, free: 44.67 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001388/9.453, allocations: 0.9765 MB / 3.222 GB, free: 43.78 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.764e-06/9.453, allocations: 0 / 3.222 GB, free: 43.78 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006408/9.454, allocations: 98.03 kB / 3.222 GB, free: 43.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.554e-06/9.454, allocations: 0 / 3.222 GB, free: 43.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.343e-05/9.454, allocations: 8 kB / 3.222 GB, free: 43.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.119e-06/9.454, allocations: 0 / 3.222 GB, free: 43.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/9.454, allocations: 0 / 3.222 GB, free: 43.7 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002306/9.456, allocations: 1.113 MB / 3.223 GB, free: 42.68 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002934/9.456, allocations: 210.4 kB / 3.224 GB, free: 42.46 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000114/9.456, allocations: 4 kB / 3.224 GB, free: 42.46 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005503/9.457, allocations: 55.09 kB / 3.224 GB, free: 42.42 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/9.457, allocations: 34.67 kB / 3.224 GB, free: 42.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.629e-05/9.457, allocations: 12 kB / 3.224 GB, free: 42.38 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004194/9.458, allocations: 260 kB / 3.224 GB, free: 42.16 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.31e-07/9.458, allocations: 4 kB / 3.224 GB, free: 42.16 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005251/9.463, allocations: 1.001 MB / 3.225 GB, free: 41.18 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 () * 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.009927/9.473, allocations: 1.369 MB / 3.226 GB, free: 40.09 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002021/9.475, allocations: 0.6339 MB / 3.227 GB, free: 39.54 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/9.475, allocations: 3.938 kB / 3.227 GB, free: 39.53 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001161/9.476, allocations: 0.5233 MB / 3.227 GB, free: 39.05 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001685/9.478, allocations: 184.6 kB / 3.227 GB, free: 38.93 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.589/10.07, allocations: 77.12 MB / 3.303 GB, free: 79.61 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004718/10.07, allocations: 0.977 MB / 3.304 GB, free: 78.9 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002374/10.07, allocations: 39.84 kB / 3.304 GB, free: 78.9 MB / 490.7 MB Notification: Performance of SimCode: time 1.913e-06/10.07, allocations: 0 / 3.304 GB, free: 78.9 MB / 490.7 MB Notification: Performance of Templates: time 0.05786/10.13, allocations: 26.41 MB / 3.33 GB, free: 76.43 MB / 490.7 MB