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.TestValveCompressible.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.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.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible") Notification: Performance of loadModel(ModelicaTest): time 2.293/2.293, allocations: 234.9 MB / 251.1 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004644/0.0004644, allocations: 8 kB / 314.9 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3591/0.3596, allocations: 54.86 MB / 369.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.849/8.209, allocations: 2.607 GB / 2.968 GB, free: 90.62 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003403/8.209, allocations: 88.95 kB / 2.968 GB, free: 90.58 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.205/9.414, allocations: 236.4 MB / 3.199 GB, free: 54.2 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.225e-06/9.415, allocations: 0 / 3.199 GB, free: 54.2 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.227e-05/9.415, allocations: 10.73 kB / 3.199 GB, free: 54.19 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.006164/9.421, allocations: 1.334 MB / 3.2 GB, free: 52.81 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/9.421, allocations: 8.031 kB / 3.2 GB, free: 52.8 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002737/9.424, allocations: 253.9 kB / 3.201 GB, free: 52.56 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001027/9.425, allocations: 430.7 kB / 3.201 GB, free: 52.1 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.129e-05/9.425, allocations: 36.59 kB / 3.201 GB, free: 52.07 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.82e-05/9.425, allocations: 32 kB / 3.201 GB, free: 52.04 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002279/9.427, allocations: 0.634 MB / 3.202 GB, free: 51.36 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.256e-05/9.427, allocations: 3.938 kB / 3.202 GB, free: 51.36 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.658e-05/9.427, allocations: 16 kB / 3.202 GB, free: 51.34 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/9.427, allocations: 8 kB / 3.202 GB, free: 51.33 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002429/9.43, allocations: 0.5801 MB / 3.202 GB, free: 50.75 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.004004/9.434, allocations: 2.653 MB / 3.205 GB, free: 47.87 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002762/9.436, allocations: 0.5337 MB / 3.205 GB, free: 47.33 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5571/9.994, allocations: 54.86 MB / 3.259 GB, free: 73.94 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.926e-05/9.994, allocations: 33.27 kB / 3.259 GB, free: 73.9 MB / 490.7 MB Notification: Performance of pre-optimization done (n=28): time 3.607e-06/9.994, allocations: 0 / 3.259 GB, free: 73.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=28): time 0.003999/9.998, allocations: 0.795 MB / 3.26 GB, free: 73.86 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.667e-05/9.998, allocations: 106.1 kB / 3.26 GB, free: 73.73 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006198/9.999, allocations: 370.6 kB / 3.26 GB, free: 73.62 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 7.102e-05/9.999, allocations: 34.61 kB / 3.26 GB, free: 73.59 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/9.999, allocations: 294.7 kB / 3.261 GB, free: 73.41 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/9.999, allocations: 92.14 kB / 3.261 GB, free: 73.36 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.065e-05/9.999, allocations: 9.156 kB / 3.261 GB, free: 73.36 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.277e-05/9.999, allocations: 333 kB / 3.261 GB, free: 73.05 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006124/10, allocations: 152.2 kB / 3.261 GB, free: 73.05 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006895/10, allocations: 306.2 kB / 3.261 GB, free: 72.87 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006891/10, allocations: 183.5 kB / 3.262 GB, free: 72.87 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/10, allocations: 3.438 kB / 3.262 GB, free: 72.87 MB / 490.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001697/10, allocations: 490 kB / 3.262 GB, free: 72.83 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001533/10, allocations: 234.1 kB / 3.262 GB, free: 72.58 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/10, allocations: 3.688 kB / 3.262 GB, free: 72.58 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.061e-05/10, allocations: 7.781 kB / 3.262 GB, free: 72.58 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007645/10, allocations: 116.6 kB / 3.262 GB, free: 72.58 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.896e-05/10, allocations: 9.594 kB / 3.262 GB, free: 72.58 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007334/10, allocations: 83.7 kB / 3.263 GB, free: 72.57 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.606e-05/10, allocations: 17.34 kB / 3.263 GB, free: 72.57 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/10, allocations: 3.625 kB / 3.263 GB, free: 72.57 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001525/10.01, allocations: 448.8 kB / 3.263 GB, free: 72.56 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/10.01, allocations: 3.656 kB / 3.263 GB, free: 72.56 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/10.01, allocations: 13.44 kB / 3.263 GB, free: 72.56 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007002/10.01, allocations: 115.8 kB / 3.263 GB, free: 72.56 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/10.01, allocations: 6.938 kB / 3.263 GB, free: 72.56 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005105/10.01, allocations: 66.59 kB / 3.263 GB, free: 72.55 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.091e-05/10.01, allocations: 25 kB / 3.263 GB, free: 72.55 MB / 490.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.0003616/10.01, allocations: 244.3 kB / 3.263 GB, free: 72.37 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001322/10.01, allocations: 41.77 kB / 3.264 GB, free: 72.34 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003387/10.01, allocations: 1.94 MB / 3.265 GB, free: 72.13 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.043e-05/10.01, allocations: 38.11 kB / 3.265 GB, free: 72.13 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/10.01, allocations: 0 / 3.265 GB, free: 72.13 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/10.01, allocations: 0 / 3.265 GB, free: 72.13 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001462/10.01, allocations: 1.019 MB / 3.266 GB, free: 71.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.297e-06/10.01, allocations: 0.5 kB / 3.266 GB, free: 71.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006299/10.01, allocations: 84.81 kB / 3.267 GB, free: 71.91 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.006e-05/10.01, allocations: 3.953 kB / 3.267 GB, free: 71.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.653e-05/10.01, allocations: 17.08 kB / 3.267 GB, free: 71.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/10.01, allocations: 3.625 kB / 3.267 GB, free: 71.9 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/10.01, allocations: 0 / 3.267 GB, free: 71.9 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001965/10.02, allocations: 1.106 MB / 3.268 GB, free: 71.67 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003501/10.02, allocations: 257 kB / 3.268 GB, free: 71.53 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001188/10.02, allocations: 11.98 kB / 3.268 GB, free: 71.52 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005344/10.02, allocations: 45.38 kB / 3.268 GB, free: 71.52 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/10.02, allocations: 30.62 kB / 3.268 GB, free: 71.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-05/10.02, allocations: 17.17 kB / 3.268 GB, free: 71.52 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0005292/10.02, allocations: 312.1 kB / 3.268 GB, free: 71.43 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.91e-07/10.02, allocations: 0 / 3.268 GB, free: 71.43 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005652/10.02, allocations: 1.158 MB / 3.269 GB, free: 71.43 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,$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.01006/10.03, allocations: 1.422 MB / 3.271 GB, free: 71.29 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002675/10.04, allocations: 0.8633 MB / 3.272 GB, free: 71.27 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/10.04, allocations: 3.156 kB / 3.272 GB, free: 71.27 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009182/10.04, allocations: 0.5133 MB / 3.272 GB, free: 71.27 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001838/10.04, allocations: 199.7 kB / 3.272 GB, free: 71.26 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2471/10.29, allocations: 82.19 MB / 3.353 GB, free: 62.73 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004913/10.29, allocations: 1.001 MB / 3.354 GB, free: 61.82 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002477/10.29, allocations: 61.67 kB / 3.354 GB, free: 61.77 MB / 490.7 MB Notification: Performance of SimCode: time 1.012e-06/10.29, allocations: 0 / 3.354 GB, free: 61.77 MB / 490.7 MB Notification: Performance of Templates: time 0.05745/10.34, allocations: 27.72 MB / 3.381 GB, free: 45.62 MB / 490.7 MB