Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.202/2.202, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.427e-05/1.448e-05, allocations: 0 / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2745, allocations: 54.86 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.339/6.613, allocations: 2.606 GB / 2.956 GB, free: 105.1 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002176/6.613, allocations: 86.33 kB / 2.956 GB, free: 105.1 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9557/7.569, allocations: 232.8 MB / 3.183 GB, free: 63.82 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.108e-06/7.569, allocations: 3.969 kB / 3.183 GB, free: 63.82 MB / 474.7 MB Notification: Performance of Transformations before backend: time 3.86e-05/7.569, allocations: 10.72 kB / 3.183 GB, free: 63.82 MB / 474.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.004548/7.574, allocations: 1.281 MB / 3.185 GB, free: 62.99 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/7.574, allocations: 13.58 kB / 3.185 GB, free: 62.99 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002558/7.576, allocations: 248.6 kB / 3.185 GB, free: 62.95 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009719/7.577, allocations: 430.7 kB / 3.185 GB, free: 62.64 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.191e-05/7.578, allocations: 18.83 kB / 3.185 GB, free: 62.64 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.914e-05/7.578, allocations: 18.97 kB / 3.185 GB, free: 62.64 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007523/7.578, allocations: 340.2 kB / 3.186 GB, free: 62.52 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007273/7.579, allocations: 427.5 kB / 3.186 GB, free: 62.15 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.874e-05/7.579, allocations: 3.938 kB / 3.186 GB, free: 62.15 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.233e-05/7.579, allocations: 0 / 3.186 GB, free: 62.15 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/7.579, allocations: 8 kB / 3.186 GB, free: 62.14 MB / 474.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.006103/7.585, allocations: 3.987 MB / 3.19 GB, free: 58.33 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008072/7.586, allocations: 303.1 kB / 3.19 GB, free: 58.07 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002255/7.586, allocations: 128.4 kB / 3.19 GB, free: 57.95 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1199/7.706, allocations: 53.74 MB / 3.243 GB, free: 2.477 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.038e-05/7.706, allocations: 46.52 kB / 3.243 GB, free: 2.422 MB / 474.7 MB Notification: Performance of pre-optimization done (n=27): time 3.273e-06/7.706, allocations: 0 / 3.243 GB, free: 2.422 MB / 474.7 MB Notification: Performance of matching and sorting (n=27): time 0.00258/7.709, allocations: 0.5598 MB / 3.243 GB, free: 1.855 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.524e-05/7.709, allocations: 106.8 kB / 3.244 GB, free: 1.727 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003702/7.709, allocations: 298.2 kB / 3.244 GB, free: 1.43 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.493e-05/7.709, allocations: 25.7 kB / 3.244 GB, free: 1.398 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/7.71, allocations: 298.3 kB / 3.244 GB, free: 1.105 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.948e-05/7.71, allocations: 90.66 kB / 3.244 GB, free: 1.016 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.28e-05/7.71, allocations: 0 / 3.244 GB, free: 1.016 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 5.944e-05/7.71, allocations: 322.8 kB / 3.245 GB, free: 0.6914 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002092/7.71, allocations: 108.8 kB / 3.245 GB, free: 0.5859 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002691/7.71, allocations: 247.2 kB / 3.245 GB, free: 284 kB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001177/7.712, allocations: 223.8 kB / 3.245 GB, free: 60 kB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.4e-06/7.712, allocations: 0 / 3.245 GB, free: 60 kB / 474.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.00187/7.713, allocations: 472.8 kB / 3.246 GB, free: 15.59 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001061/7.715, allocations: 1.837 MB / 3.247 GB, free: 13.61 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.872e-05/7.715, allocations: 8 kB / 3.247 GB, free: 13.61 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.509e-05/7.715, allocations: 4 kB / 3.247 GB, free: 13.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006392/7.715, allocations: 111.9 kB / 3.247 GB, free: 13.49 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.005e-05/7.715, allocations: 19.91 kB / 3.248 GB, free: 13.47 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006142/7.716, allocations: 67.66 kB / 3.248 GB, free: 13.41 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.603e-05/7.716, allocations: 23.98 kB / 3.248 GB, free: 13.38 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/7.716, allocations: 7.953 kB / 3.248 GB, free: 13.38 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001488/7.718, allocations: 367.7 kB / 3.248 GB, free: 13.02 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.971e-06/7.718, allocations: 4 kB / 3.248 GB, free: 13.01 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/7.718, allocations: 8.625 kB / 3.248 GB, free: 13 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005415/7.718, allocations: 119.8 kB / 3.248 GB, free: 12.89 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/7.718, allocations: 8 kB / 3.248 GB, free: 12.88 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004375/7.719, allocations: 59.59 kB / 3.248 GB, free: 12.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.381e-05/7.719, allocations: 27.98 kB / 3.248 GB, free: 12.79 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 () * 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.0001816/7.719, allocations: 120.8 kB / 3.248 GB, free: 12.67 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001592/7.719, allocations: 39.48 kB / 3.248 GB, free: 12.63 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003314/7.722, allocations: 1.694 MB / 3.25 GB, free: 10.92 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.494e-05/7.722, allocations: 27.95 kB / 3.25 GB, free: 10.89 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.796e-06/7.722, allocations: 3.938 kB / 3.25 GB, free: 10.89 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.307e-05/7.723, allocations: 7.969 kB / 3.25 GB, free: 10.88 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001465/7.724, allocations: 0.8621 MB / 3.251 GB, free: 9.988 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.985e-06/7.724, allocations: 0 / 3.251 GB, free: 9.988 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004382/7.724, allocations: 83.94 kB / 3.251 GB, free: 9.906 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.699e-06/7.724, allocations: 0 / 3.251 GB, free: 9.906 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.588e-05/7.725, allocations: 8 kB / 3.251 GB, free: 9.898 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.613e-06/7.725, allocations: 3.953 kB / 3.251 GB, free: 9.895 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.653e-06/7.725, allocations: 4 kB / 3.251 GB, free: 9.891 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002168/7.727, allocations: 0.9756 MB / 3.252 GB, free: 8.898 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004273/7.727, allocations: 255.4 kB / 3.252 GB, free: 8.629 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.63e-05/7.727, allocations: 8 kB / 3.252 GB, free: 8.621 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004441/7.728, allocations: 27.97 kB / 3.252 GB, free: 8.594 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/7.728, allocations: 31.91 kB / 3.252 GB, free: 8.562 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.932e-05/7.728, allocations: 16 kB / 3.252 GB, free: 8.547 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004928/7.728, allocations: 294.9 kB / 3.253 GB, free: 8.258 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.58e-07/7.728, allocations: 0 / 3.253 GB, free: 8.258 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005185/7.734, allocations: 1.131 MB / 3.254 GB, free: 7.125 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: 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.008172/7.742, allocations: 1.484 MB / 3.255 GB, free: 5.727 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001502/7.743, allocations: 0.6787 MB / 3.256 GB, free: 5.051 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.867e-06/7.743, allocations: 0 / 3.256 GB, free: 5.051 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006895/7.744, allocations: 433.1 kB / 3.256 GB, free: 4.629 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/7.745, allocations: 181.6 kB / 3.256 GB, free: 4.457 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4333/8.179, allocations: 54.44 MB / 3.309 GB, free: 84.62 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004687/8.179, allocations: 0.9926 MB / 3.31 GB, free: 83.91 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002105/8.18, allocations: 50.56 kB / 3.31 GB, free: 83.9 MB / 490.7 MB Notification: Performance of SimCode: time 1.862e-06/8.18, allocations: 0 / 3.31 GB, free: 83.9 MB / 490.7 MB Notification: Performance of Templates: time 0.0473/8.227, allocations: 27.88 MB / 3.338 GB, free: 80.88 MB / 490.7 MB