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.TestValveLinear.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.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.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadModel(ModelicaTest): time 1.821/1.821, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.098e-05/3.118e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08583/0.08589, allocations: 48.7 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.087/6.173, allocations: 2.477 GB / 2.796 GB, free: 82.95 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002236/6.173, allocations: 83.64 kB / 2.796 GB, free: 82.91 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8671/7.04, allocations: 211.6 MB / 3.002 GB, free: 39.11 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.111e-06/7.04, allocations: 0 / 3.002 GB, free: 39.11 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.892e-05/7.04, allocations: 16 kB / 3.002 GB, free: 39.09 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.004018/7.044, allocations: 1.157 MB / 3.003 GB, free: 37.9 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/7.044, allocations: 12.03 kB / 3.003 GB, free: 37.89 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002227/7.046, allocations: 218.4 kB / 3.004 GB, free: 37.68 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000705/7.047, allocations: 389.7 kB / 3.004 GB, free: 37.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.139e-05/7.047, allocations: 28.78 kB / 3.004 GB, free: 37.24 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.492e-05/7.047, allocations: 28 kB / 3.004 GB, free: 37.21 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001568/7.049, allocations: 0.5803 MB / 3.005 GB, free: 36.59 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/7.049, allocations: 0 / 3.005 GB, free: 36.59 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.576e-05/7.049, allocations: 12 kB / 3.005 GB, free: 36.58 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/7.049, allocations: 8 kB / 3.005 GB, free: 36.57 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001473/7.05, allocations: 0.4938 MB / 3.005 GB, free: 36.08 MB / 426.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.002697/7.053, allocations: 2.535 MB / 3.008 GB, free: 33.34 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001452/7.055, allocations: 422 kB / 3.008 GB, free: 32.92 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002694/7.055, allocations: 124.8 kB / 3.008 GB, free: 32.8 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3736/7.429, allocations: 51.57 MB / 3.058 GB, free: 46.38 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.9e-05/7.429, allocations: 40.28 kB / 3.059 GB, free: 46.34 MB / 426.7 MB Notification: Performance of pre-optimization done (n=25): time 3.104e-06/7.429, allocations: 0 / 3.059 GB, free: 46.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=25): time 0.002528/7.431, allocations: 0.6198 MB / 3.059 GB, free: 46.31 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.942e-05/7.431, allocations: 109.5 kB / 3.059 GB, free: 46.19 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004199/7.432, allocations: 253.8 kB / 3.059 GB, free: 46.09 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.23e-05/7.432, allocations: 32.05 kB / 3.06 GB, free: 46.06 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/7.432, allocations: 272.9 kB / 3.06 GB, free: 45.88 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.477e-05/7.432, allocations: 90.52 kB / 3.06 GB, free: 45.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.257e-05/7.432, allocations: 5.438 kB / 3.06 GB, free: 45.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.313e-05/7.432, allocations: 328 kB / 3.06 GB, free: 45.52 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002228/7.432, allocations: 90.41 kB / 3.06 GB, free: 45.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002808/7.433, allocations: 213.6 kB / 3.06 GB, free: 45.38 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002652/7.433, allocations: 122.3 kB / 3.061 GB, free: 45.37 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/7.433, allocations: 1.062 kB / 3.061 GB, free: 45.37 MB / 426.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007695/7.434, allocations: 332.3 kB / 3.061 GB, free: 45.34 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/7.434, allocations: 7.125 kB / 3.061 GB, free: 45.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/7.434, allocations: 6.594 kB / 3.061 GB, free: 45.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.325e-05/7.434, allocations: 10.83 kB / 3.061 GB, free: 45.33 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005444/7.434, allocations: 106.8 kB / 3.061 GB, free: 45.33 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.776e-05/7.434, allocations: 9.719 kB / 3.061 GB, free: 45.33 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005191/7.435, allocations: 73.09 kB / 3.061 GB, free: 45.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.155e-05/7.435, allocations: 20.52 kB / 3.061 GB, free: 45.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: 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.0001193/7.435, allocations: 126.9 kB / 3.061 GB, free: 45.21 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.474e-05/7.435, allocations: 32.06 kB / 3.061 GB, free: 45.2 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002473/7.438, allocations: 1.839 MB / 3.063 GB, free: 45 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-05/7.438, allocations: 29.67 kB / 3.063 GB, free: 45 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.756e-06/7.438, allocations: 3.953 kB / 3.063 GB, free: 45 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/7.438, allocations: 13.47 kB / 3.063 GB, free: 45 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001302/7.439, allocations: 0.9762 MB / 3.064 GB, free: 44.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.346e-06/7.439, allocations: 0 / 3.064 GB, free: 44.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004808/7.44, allocations: 97.19 kB / 3.064 GB, free: 44.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.023e-06/7.44, allocations: 5.406 kB / 3.064 GB, free: 44.77 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.949e-05/7.44, allocations: 5.969 kB / 3.064 GB, free: 44.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.399e-06/7.44, allocations: 4.844 kB / 3.064 GB, free: 44.77 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.231e-06/7.44, allocations: 0 / 3.064 GB, free: 44.77 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001286/7.441, allocations: 0.9786 MB / 3.065 GB, free: 44.54 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002032/7.441, allocations: 214.2 kB / 3.065 GB, free: 44.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.047e-05/7.441, allocations: 7.188 kB / 3.065 GB, free: 44.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004754/7.442, allocations: 50.56 kB / 3.065 GB, free: 44.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.674e-05/7.442, allocations: 32.77 kB / 3.065 GB, free: 44.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.268e-05/7.442, allocations: 11.06 kB / 3.065 GB, free: 44.4 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003369/7.442, allocations: 260.2 kB / 3.066 GB, free: 44.32 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.2e-07/7.442, allocations: 0 / 3.066 GB, free: 44.32 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003986/7.446, allocations: 1.005 MB / 3.067 GB, free: 44.31 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: 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.007359/7.454, allocations: 1.374 MB / 3.068 GB, free: 44.17 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009687/7.455, allocations: 0.4997 MB / 3.068 GB, free: 44.16 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.724e-06/7.455, allocations: 0 / 3.068 GB, free: 44.16 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005752/7.455, allocations: 477.2 kB / 3.069 GB, free: 44.16 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001336/7.457, allocations: 176.1 kB / 3.069 GB, free: 44.16 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1841/7.641, allocations: 75.03 MB / 3.142 GB, free: 34.92 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004144/7.641, allocations: 0.9832 MB / 3.143 GB, free: 34.02 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001618/7.642, allocations: 39 kB / 3.143 GB, free: 33.99 MB / 426.7 MB Notification: Performance of SimCode: time 1.668e-06/7.642, allocations: 0 / 3.143 GB, free: 33.99 MB / 426.7 MB Notification: Performance of Templates: time 0.04065/7.682, allocations: 26.03 MB / 3.169 GB, free: 18.79 MB / 426.7 MB