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.TestValveCompressible.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.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.94/1.94, allocations: 209.2 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006143/0.0006144, allocations: 11.98 kB / 283.1 MB, free: 9.703 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3509/0.3516, allocations: 48.7 MB / 331.8 MB, free: 6.492 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.935/7.286, allocations: 2.496 GB / 2.82 GB, free: 25.6 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003124/7.287, allocations: 89.89 kB / 2.821 GB, free: 25.55 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.509/8.795, allocations: 232 MB / 3.047 GB, free: 63.81 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.104e-06/8.795, allocations: 0 / 3.047 GB, free: 63.81 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.907e-05/8.795, allocations: 8.312 kB / 3.047 GB, free: 63.81 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.006056/8.801, allocations: 1.318 MB / 3.048 GB, free: 63.17 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.509e-05/8.801, allocations: 13.25 kB / 3.048 GB, free: 63.17 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002744/8.804, allocations: 239 kB / 3.049 GB, free: 63.15 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/8.805, allocations: 428.6 kB / 3.049 GB, free: 62.93 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.324e-05/8.805, allocations: 30.78 kB / 3.049 GB, free: 62.93 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.136e-05/8.806, allocations: 32.84 kB / 3.049 GB, free: 62.93 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002233/8.808, allocations: 0.6299 MB / 3.05 GB, free: 62.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/8.808, allocations: 2.906 kB / 3.05 GB, free: 62.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.955e-05/8.808, allocations: 25.69 kB / 3.05 GB, free: 62.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.712e-05/8.808, allocations: 6.719 kB / 3.05 GB, free: 62.8 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002478/8.81, allocations: 0.5854 MB / 3.05 GB, free: 62.79 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.003954/8.814, allocations: 2.649 MB / 3.053 GB, free: 60.9 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002695/8.817, allocations: 0.5269 MB / 3.053 GB, free: 60.88 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2748/9.092, allocations: 54.81 MB / 3.107 GB, free: 30.14 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.458e-05/9.092, allocations: 43.56 kB / 3.107 GB, free: 30.1 MB / 442.7 MB Notification: Performance of pre-optimization done (n=28): time 4.358e-06/9.092, allocations: 0 / 3.107 GB, free: 30.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=28): time 0.005891/9.098, allocations: 0.7807 MB / 3.108 GB, free: 30.04 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.197e-05/9.098, allocations: 106.8 kB / 3.108 GB, free: 29.91 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008028/9.099, allocations: 369.4 kB / 3.108 GB, free: 29.79 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.227e-05/9.099, allocations: 39.64 kB / 3.108 GB, free: 29.76 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002127/9.099, allocations: 288.3 kB / 3.108 GB, free: 29.57 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001503/9.099, allocations: 98.3 kB / 3.109 GB, free: 29.52 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.707e-05/9.1, allocations: 7.594 kB / 3.109 GB, free: 29.52 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001004/9.1, allocations: 333.9 kB / 3.109 GB, free: 29.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008899/9.101, allocations: 146.3 kB / 3.109 GB, free: 29.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/9.102, allocations: 315.1 kB / 3.109 GB, free: 29 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009796/9.103, allocations: 179.2 kB / 3.11 GB, free: 28.99 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.738e-06/9.103, allocations: 7.875 kB / 3.11 GB, free: 28.99 MB / 442.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.002432/9.105, allocations: 492 kB / 3.11 GB, free: 28.93 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002104/9.105, allocations: 228.9 kB / 3.11 GB, free: 28.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/9.105, allocations: 5.125 kB / 3.11 GB, free: 28.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.952e-05/9.105, allocations: 9.938 kB / 3.11 GB, free: 28.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/9.107, allocations: 118.3 kB / 3.11 GB, free: 28.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.36e-05/9.107, allocations: 10.94 kB / 3.11 GB, free: 28.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001115/9.108, allocations: 82.17 kB / 3.11 GB, free: 28.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.688e-05/9.108, allocations: 23.78 kB / 3.11 GB, free: 28.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/9.108, allocations: 3.969 kB / 3.11 GB, free: 28.65 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002268/9.11, allocations: 447.5 kB / 3.111 GB, free: 28.63 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.349e-05/9.11, allocations: 7.688 kB / 3.111 GB, free: 28.63 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/9.11, allocations: 6.562 kB / 3.111 GB, free: 28.63 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/9.111, allocations: 113.9 kB / 3.111 GB, free: 28.63 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.959e-05/9.111, allocations: 14.31 kB / 3.111 GB, free: 28.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008012/9.112, allocations: 60.83 kB / 3.111 GB, free: 28.61 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.78e-05/9.112, allocations: 24.78 kB / 3.111 GB, free: 28.61 MB / 442.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 () * Number of clocked 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.0005053/9.113, allocations: 250.5 kB / 3.111 GB, free: 28.42 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001916/9.113, allocations: 47.02 kB / 3.111 GB, free: 28.39 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005018/9.118, allocations: 1.937 MB / 3.113 GB, free: 28.13 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.539e-05/9.118, allocations: 37.28 kB / 3.113 GB, free: 28.13 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/9.118, allocations: 0 / 3.113 GB, free: 28.13 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/9.118, allocations: 0 / 3.113 GB, free: 28.13 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002121/9.12, allocations: 1.029 MB / 3.114 GB, free: 27.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/9.12, allocations: 0 / 3.114 GB, free: 27.87 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008924/9.121, allocations: 92.2 kB / 3.114 GB, free: 27.87 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.304e-05/9.121, allocations: 3.953 kB / 3.114 GB, free: 27.86 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.104e-05/9.121, allocations: 11.44 kB / 3.114 GB, free: 27.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.057e-06/9.121, allocations: 3.719 kB / 3.114 GB, free: 27.86 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/9.121, allocations: 0 / 3.114 GB, free: 27.86 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002945/9.124, allocations: 1.105 MB / 3.116 GB, free: 27.62 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005953/9.125, allocations: 254.7 kB / 3.116 GB, free: 27.45 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000168/9.125, allocations: 9.578 kB / 3.116 GB, free: 27.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008992/9.126, allocations: 36.61 kB / 3.116 GB, free: 27.45 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001556/9.126, allocations: 41.56 kB / 3.116 GB, free: 27.44 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.867e-05/9.126, allocations: 12.84 kB / 3.116 GB, free: 27.44 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000806/9.127, allocations: 315.9 kB / 3.116 GB, free: 27.35 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.81e-07/9.127, allocations: 0 / 3.116 GB, free: 27.35 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007813/9.135, allocations: 1.159 MB / 3.117 GB, free: 27.17 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,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.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 (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.01374/9.149, allocations: 1.424 MB / 3.119 GB, free: 26.85 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003911/9.153, allocations: 0.8561 MB / 3.12 GB, free: 26.82 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/9.153, allocations: 0 / 3.12 GB, free: 26.82 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001521/9.155, allocations: 0.5216 MB / 3.12 GB, free: 26.81 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002849/9.157, allocations: 201.2 kB / 3.12 GB, free: 26.79 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7343/9.892, allocations: 80.91 MB / 3.199 GB, free: 58.11 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005689/9.892, allocations: 1.008 MB / 3.2 GB, free: 57.41 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002699/9.893, allocations: 55.88 kB / 3.2 GB, free: 57.4 MB / 442.7 MB Notification: Performance of SimCode: time 1.092e-06/9.893, allocations: 0 / 3.2 GB, free: 57.4 MB / 442.7 MB Notification: Performance of Templates: time 0.06074/9.953, allocations: 27.55 MB / 3.227 GB, free: 56.15 MB / 442.7 MB