Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.915/1.915, allocations: 209.3 MB / 225.4 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005932/0.0005933, allocations: 12 kB / 283.1 MB, free: 9.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3536/0.3542, allocations: 48.71 MB / 331.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.942/7.296, allocations: 2.477 GB / 2.801 GB, free: 44.7 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002974/7.296, allocations: 86.64 kB / 2.801 GB, free: 44.66 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.064/8.361, allocations: 212.3 MB / 3.008 GB, free: 18.01 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.565e-06/8.361, allocations: 0 / 3.008 GB, free: 18.01 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.498e-05/8.361, allocations: 12 kB / 3.008 GB, free: 18 MB / 442.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.00558/8.366, allocations: 1.203 MB / 3.009 GB, free: 16.75 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/8.366, allocations: 12.03 kB / 3.009 GB, free: 16.73 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002367/8.369, allocations: 207.7 kB / 3.01 GB, free: 16.53 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000865/8.37, allocations: 394.6 kB / 3.01 GB, free: 16.11 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.689e-05/8.37, allocations: 24.66 kB / 3.01 GB, free: 16.09 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.833e-05/8.37, allocations: 28 kB / 3.01 GB, free: 16.06 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002284/8.372, allocations: 0.6104 MB / 3.011 GB, free: 15.4 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/8.372, allocations: 0 / 3.011 GB, free: 15.4 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.241e-05/8.372, allocations: 16 kB / 3.011 GB, free: 15.39 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/8.372, allocations: 8 kB / 3.011 GB, free: 15.38 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002616/8.375, allocations: 0.5836 MB / 3.011 GB, free: 14.8 MB / 442.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.003494/8.378, allocations: 2.531 MB / 3.014 GB, free: 12.03 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002305/8.381, allocations: 466.8 kB / 3.014 GB, free: 11.56 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4834/8.864, allocations: 51.31 MB / 3.064 GB, free: 47.44 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.624e-05/8.864, allocations: 35.44 kB / 3.064 GB, free: 47.4 MB / 442.7 MB Notification: Performance of pre-optimization done (n=25): time 2.104e-06/8.864, allocations: 0 / 3.064 GB, free: 47.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=25): time 0.004058/8.868, allocations: 0.8216 MB / 3.065 GB, free: 47.37 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.822e-05/8.868, allocations: 112.4 kB / 3.065 GB, free: 47.25 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003708/8.869, allocations: 286.7 kB / 3.065 GB, free: 47.14 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.687e-05/8.869, allocations: 29.08 kB / 3.065 GB, free: 47.11 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/8.869, allocations: 277.2 kB / 3.066 GB, free: 46.93 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.752e-05/8.869, allocations: 85.77 kB / 3.066 GB, free: 46.89 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.651e-05/8.869, allocations: 7.312 kB / 3.066 GB, free: 46.89 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.804e-05/8.869, allocations: 324.8 kB / 3.066 GB, free: 46.57 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006689/8.87, allocations: 157.6 kB / 3.066 GB, free: 46.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007358/8.871, allocations: 279 kB / 3.067 GB, free: 46.43 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007047/8.871, allocations: 182.8 kB / 3.067 GB, free: 46.42 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.461e-06/8.871, allocations: 3.812 kB / 3.067 GB, free: 46.42 MB / 442.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00166/8.873, allocations: 460 kB / 3.067 GB, free: 46.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/8.873, allocations: 11.84 kB / 3.067 GB, free: 46.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/8.873, allocations: 7.672 kB / 3.067 GB, free: 46.37 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.286e-05/8.873, allocations: 4.406 kB / 3.067 GB, free: 46.37 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006629/8.874, allocations: 108.4 kB / 3.067 GB, free: 46.37 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.344e-05/8.874, allocations: 4.312 kB / 3.067 GB, free: 46.37 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000579/8.874, allocations: 80.16 kB / 3.067 GB, free: 46.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.472e-05/8.875, allocations: 22.88 kB / 3.067 GB, free: 46.35 MB / 442.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.0002442/8.875, allocations: 163.7 kB / 3.068 GB, free: 46.24 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.819e-05/8.875, allocations: 31.03 kB / 3.068 GB, free: 46.22 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003386/8.878, allocations: 1.932 MB / 3.069 GB, free: 46.01 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.438e-05/8.878, allocations: 33.78 kB / 3.069 GB, free: 46.01 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/8.878, allocations: 3.562 kB / 3.069 GB, free: 46.01 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/8.878, allocations: 0 / 3.069 GB, free: 46.01 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001231/8.88, allocations: 0.9827 MB / 3.07 GB, free: 45.78 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/8.88, allocations: 3.375 kB / 3.07 GB, free: 45.78 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006157/8.88, allocations: 84.64 kB / 3.071 GB, free: 45.78 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.326e-06/8.88, allocations: 3.156 kB / 3.071 GB, free: 45.78 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.827e-05/8.88, allocations: 13.09 kB / 3.071 GB, free: 45.78 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/8.88, allocations: 3.844 kB / 3.071 GB, free: 45.78 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/8.88, allocations: 3.953 kB / 3.071 GB, free: 45.77 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002104/8.882, allocations: 1.104 MB / 3.072 GB, free: 45.54 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001909/8.883, allocations: 204 kB / 3.072 GB, free: 45.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.612e-05/8.883, allocations: 7.219 kB / 3.072 GB, free: 45.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000534/8.883, allocations: 49.11 kB / 3.072 GB, free: 45.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/8.883, allocations: 36.3 kB / 3.072 GB, free: 45.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-05/8.883, allocations: 7.562 kB / 3.072 GB, free: 45.39 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003769/8.884, allocations: 266.4 kB / 3.072 GB, free: 45.31 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.21e-07/8.884, allocations: 0 / 3.072 GB, free: 45.31 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004766/8.889, allocations: 0.9994 MB / 3.073 GB, free: 45.3 MB / 442.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.007582/8.896, allocations: 1.38 MB / 3.074 GB, free: 45.14 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001922/8.898, allocations: 0.6218 MB / 3.075 GB, free: 45.13 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/8.898, allocations: 0 / 3.075 GB, free: 45.13 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00101/8.899, allocations: 0.5237 MB / 3.076 GB, free: 45.12 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001586/8.901, allocations: 185.4 kB / 3.076 GB, free: 45.11 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2194/9.12, allocations: 75.86 MB / 3.15 GB, free: 30.79 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004123/9.121, allocations: 0.9769 MB / 3.151 GB, free: 29.89 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001948/9.121, allocations: 46.44 kB / 3.151 GB, free: 29.85 MB / 442.7 MB Notification: Performance of SimCode: time 1.002e-06/9.121, allocations: 4 kB / 3.151 GB, free: 29.85 MB / 442.7 MB Notification: Performance of Templates: time 0.05084/9.172, allocations: 26.25 MB / 3.177 GB, free: 11.9 MB / 442.7 MB