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.TestValveCompressible.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible") Notification: Performance of loadModel(ModelicaTest): time 1.9/1.9, allocations: 209.4 MB / 217.3 MB, free: 4.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.809e-05/1.815e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2638, allocations: 48.69 MB / 320 MB, free: 14.38 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.764/6.028, allocations: 2.496 GB / 2.808 GB, free: 89.29 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002241/6.028, allocations: 80.02 kB / 2.808 GB, free: 89.25 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9053/6.933, allocations: 228.5 MB / 3.031 GB, free: 22.04 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.201e-06/6.933, allocations: 4 kB / 3.031 GB, free: 22.04 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.599e-05/6.933, allocations: 15.94 kB / 3.031 GB, free: 22.02 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.004386/6.938, allocations: 1.259 MB / 3.033 GB, free: 20.72 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/6.938, allocations: 8.031 kB / 3.033 GB, free: 20.71 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002499/6.94, allocations: 239.2 kB / 3.033 GB, free: 20.48 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009077/6.941, allocations: 432 kB / 3.033 GB, free: 20.03 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.792e-05/6.941, allocations: 12 kB / 3.033 GB, free: 20.02 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.276e-05/6.941, allocations: 23.94 kB / 3.033 GB, free: 19.99 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007424/6.942, allocations: 341.5 kB / 3.034 GB, free: 19.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007073/6.943, allocations: 418.2 kB / 3.034 GB, free: 19.21 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/6.943, allocations: 4 kB / 3.034 GB, free: 19.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.479e-05/6.943, allocations: 7.953 kB / 3.034 GB, free: 19.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/6.943, allocations: 8 kB / 3.034 GB, free: 19.19 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.006072/6.949, allocations: 3.957 MB / 3.038 GB, free: 14.85 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008217/6.95, allocations: 298.7 kB / 3.038 GB, free: 14.55 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002245/6.95, allocations: 128.8 kB / 3.038 GB, free: 14.42 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3878/7.338, allocations: 53.72 MB / 3.091 GB, free: 32.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/7.338, allocations: 32.91 kB / 3.091 GB, free: 32.75 MB / 426.7 MB Notification: Performance of pre-optimization done (n=27): time 3.134e-06/7.338, allocations: 0 / 3.091 GB, free: 32.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=27): time 0.002569/7.341, allocations: 0.5694 MB / 3.091 GB, free: 32.71 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.354e-05/7.341, allocations: 106.7 kB / 3.092 GB, free: 32.59 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003812/7.341, allocations: 284.8 kB / 3.092 GB, free: 32.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.211e-05/7.341, allocations: 25.7 kB / 3.092 GB, free: 32.46 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/7.341, allocations: 295.7 kB / 3.092 GB, free: 32.27 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.56e-05/7.341, allocations: 91.59 kB / 3.092 GB, free: 32.23 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.397e-05/7.341, allocations: 0 / 3.092 GB, free: 32.23 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.248e-05/7.341, allocations: 326.8 kB / 3.093 GB, free: 31.92 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002062/7.342, allocations: 103.3 kB / 3.093 GB, free: 31.91 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003069/7.342, allocations: 258.9 kB / 3.093 GB, free: 31.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001258/7.343, allocations: 214.9 kB / 3.093 GB, free: 31.73 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.38e-06/7.343, allocations: 5.109 kB / 3.093 GB, free: 31.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001758/7.345, allocations: 466.5 kB / 3.094 GB, free: 31.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003743/7.345, allocations: 1.832 MB / 3.095 GB, free: 29.76 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/7.345, allocations: 6.531 kB / 3.095 GB, free: 29.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.42e-05/7.346, allocations: 10.09 kB / 3.095 GB, free: 29.76 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005709/7.346, allocations: 114.5 kB / 3.095 GB, free: 29.76 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/7.346, allocations: 11.36 kB / 3.095 GB, free: 29.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006154/7.347, allocations: 69.77 kB / 3.095 GB, free: 29.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-05/7.347, allocations: 26.42 kB / 3.096 GB, free: 29.74 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/7.347, allocations: 9.625 kB / 3.096 GB, free: 29.74 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001413/7.348, allocations: 373.3 kB / 3.096 GB, free: 29.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.445e-06/7.348, allocations: 7.156 kB / 3.096 GB, free: 29.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/7.348, allocations: 7.75 kB / 3.096 GB, free: 29.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000552/7.349, allocations: 111.1 kB / 3.096 GB, free: 29.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/7.349, allocations: 11.11 kB / 3.096 GB, free: 29.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000446/7.349, allocations: 58.12 kB / 3.096 GB, free: 29.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.269e-05/7.349, allocations: 26.22 kB / 3.096 GB, free: 29.71 MB / 426.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.000144/7.35, allocations: 121 kB / 3.096 GB, free: 29.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001345/7.35, allocations: 42.3 kB / 3.096 GB, free: 29.59 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00276/7.353, allocations: 1.697 MB / 3.098 GB, free: 29.39 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.884e-05/7.353, allocations: 25.41 kB / 3.098 GB, free: 29.39 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/7.353, allocations: 3.656 kB / 3.098 GB, free: 29.39 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.12e-06/7.353, allocations: 3.469 kB / 3.098 GB, free: 29.39 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001123/7.354, allocations: 0.8655 MB / 3.099 GB, free: 29.19 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.19e-06/7.354, allocations: 3.469 kB / 3.099 GB, free: 29.19 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004574/7.354, allocations: 85.33 kB / 3.099 GB, free: 29.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.673e-06/7.354, allocations: 3.953 kB / 3.099 GB, free: 29.18 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.834e-05/7.354, allocations: 7.156 kB / 3.099 GB, free: 29.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/7.354, allocations: 3.562 kB / 3.099 GB, free: 29.18 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.822e-06/7.354, allocations: 3.5 kB / 3.099 GB, free: 29.18 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001877/7.356, allocations: 0.9827 MB / 3.1 GB, free: 28.96 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003307/7.357, allocations: 247.6 kB / 3.1 GB, free: 28.82 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.115e-05/7.357, allocations: 3.953 kB / 3.1 GB, free: 28.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004623/7.357, allocations: 41.89 kB / 3.1 GB, free: 28.81 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.477e-05/7.357, allocations: 30.83 kB / 3.1 GB, free: 28.81 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.49e-05/7.357, allocations: 19.41 kB / 3.1 GB, free: 28.81 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004074/7.358, allocations: 290.8 kB / 3.1 GB, free: 28.72 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.48e-07/7.358, allocations: 0 / 3.1 GB, free: 28.72 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004353/7.362, allocations: 1.12 MB / 3.102 GB, free: 28.71 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: 16 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.006932/7.369, allocations: 1.486 MB / 3.103 GB, free: 28.54 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001279/7.37, allocations: 0.6674 MB / 3.104 GB, free: 28.53 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.095e-06/7.37, allocations: 3.5 kB / 3.104 GB, free: 28.53 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005279/7.371, allocations: 428.6 kB / 3.104 GB, free: 28.53 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001354/7.372, allocations: 183.4 kB / 3.104 GB, free: 28.52 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1431/7.515, allocations: 54.46 MB / 3.157 GB, free: 22.85 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004221/7.516, allocations: 0.9902 MB / 3.158 GB, free: 21.94 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001805/7.516, allocations: 48.23 kB / 3.158 GB, free: 21.9 MB / 426.7 MB Notification: Performance of SimCode: time 2.378e-06/7.516, allocations: 3.562 kB / 3.158 GB, free: 21.9 MB / 426.7 MB Notification: Performance of Templates: time 0.04469/7.561, allocations: 27.72 MB / 3.186 GB, free: 5.824 MB / 426.7 MB