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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.836/1.836, allocations: 209.3 MB / 224.8 MB, free: 208 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007192/0.0007194, allocations: 8 kB / 282.5 MB, free: 9.648 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3025, allocations: 48.7 MB / 331.2 MB, free: 6.496 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible): time 0.03274/0.3353, allocations: 23.95 MB / 355.1 MB, free: 4.625 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0255/0.3609, allocations: 14.66 MB / 369.8 MB, free: 7.871 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000658/0.3616, allocations: 15.88 kB / 369.8 MB, free: 7.855 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009633/0.3625, allocations: 262.8 kB / 370.1 MB, free: 7.598 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01102/0.3736, allocations: 2.945 MB / 373 MB, free: 4.645 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01091/0.3845, allocations: 2.976 MB / 376 MB, free: 1.664 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001363/0.3859, allocations: 0.6529 MB / 376.6 MB, free: 1.008 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004718/0.3864, allocations: 237.4 kB / 376.9 MB, free: 0.7734 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001044/0.3874, allocations: 430.5 kB / 377.3 MB, free: 360 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003579/0.3878, allocations: 227 kB / 377.5 MB, free: 132 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.478e-05/0.3879, allocations: 16 kB / 377.5 MB, free: 116 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01735/0.4053, allocations: 7.047 MB / 384.6 MB, free: 9.059 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001788/0.4055, allocations: 87.64 kB / 384.7 MB, free: 8.973 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000215/0.4057, allocations: 113.5 kB / 384.8 MB, free: 8.855 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007169/0.4129, allocations: 3.025 MB / 387.8 MB, free: 5.824 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.242e-06/0.413, allocations: 0 / 387.8 MB, free: 5.824 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.846e-06/0.413, allocations: 0 / 387.8 MB, free: 5.824 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.413, allocations: 0 / 387.8 MB, free: 5.824 MB / 314.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.003845/0.4168, allocations: 1.228 MB / 389 MB, free: 4.543 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.4169, allocations: 8.031 kB / 389 MB, free: 4.535 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002445/0.4194, allocations: 231.1 kB / 389.3 MB, free: 4.309 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008711/0.4203, allocations: 390.6 kB / 389.6 MB, free: 3.887 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.274e-05/0.4204, allocations: 32.66 kB / 389.7 MB, free: 3.855 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.916e-05/0.4205, allocations: 28 kB / 389.7 MB, free: 3.828 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002176/0.4227, allocations: 0.6332 MB / 390.3 MB, free: 3.152 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.4227, allocations: 0 / 390.3 MB, free: 3.152 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.694e-05/0.4228, allocations: 16 kB / 390.3 MB, free: 3.137 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.631e-05/0.4228, allocations: 8 kB / 390.4 MB, free: 3.129 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002226/0.425, allocations: 0.5917 MB / 390.9 MB, free: 2.539 MB / 314.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.00423/0.4293, allocations: 2.692 MB / 393.6 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002406/0.4317, allocations: 0.5609 MB / 394.2 MB, free: 15.04 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1472/0.579, allocations: 55.4 MB / 449.6 MB, free: 1.715 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.946e-05/0.5791, allocations: 42.45 kB / 449.6 MB, free: 1.664 MB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 6.216e-06/0.5792, allocations: 11.92 kB / 449.7 MB, free: 1.652 MB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.003466/0.5826, allocations: 0.8215 MB / 450.5 MB, free: 0.8242 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.999e-05/0.5827, allocations: 106.8 kB / 450.6 MB, free: 0.6953 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006319/0.5834, allocations: 365.6 kB / 450.9 MB, free: 336 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.908e-05/0.5835, allocations: 33.7 kB / 451 MB, free: 296 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002329/0.5837, allocations: 286.2 kB / 451.3 MB, free: 8 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001437/0.5839, allocations: 98.59 kB / 451.3 MB, free: 15.91 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.302e-05/0.5839, allocations: 12 kB / 451.4 MB, free: 15.9 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.5841, allocations: 330.8 kB / 451.7 MB, free: 15.57 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005256/0.5846, allocations: 164.8 kB / 451.8 MB, free: 15.41 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000646/0.5853, allocations: 315.9 kB / 452.2 MB, free: 15.03 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005726/0.5859, allocations: 183.9 kB / 452.3 MB, free: 14.85 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.816e-06/0.5859, allocations: 8 kB / 452.3 MB, free: 14.84 MB / 394.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.00151/0.5874, allocations: 0.5012 MB / 452.8 MB, free: 14.34 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000214/0.5877, allocations: 230.2 kB / 453.1 MB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.5877, allocations: 4 kB / 453.1 MB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.487e-05/0.5877, allocations: 8 kB / 453.1 MB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005594/0.5883, allocations: 115.9 kB / 453.2 MB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.591e-05/0.5883, allocations: 11.94 kB / 453.2 MB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005278/0.5889, allocations: 75.56 kB / 453.3 MB, free: 13.83 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.436e-05/0.589, allocations: 23.98 kB / 453.3 MB, free: 13.81 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.416e-06/0.589, allocations: 4 kB / 453.3 MB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001311/0.5903, allocations: 471.8 kB / 453.8 MB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.5903, allocations: 4 kB / 453.8 MB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.5904, allocations: 8 kB / 453.8 MB, free: 13.33 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005149/0.5909, allocations: 115.9 kB / 453.9 MB, free: 13.22 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.255e-05/0.5909, allocations: 12.28 kB / 453.9 MB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003971/0.5913, allocations: 63.61 kB / 454 MB, free: 13.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-05/0.5914, allocations: 20 kB / 454 MB, free: 13.12 MB / 394.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.0003441/0.5918, allocations: 252.9 kB / 454.2 MB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.5919, allocations: 43.53 kB / 454.3 MB, free: 12.82 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003547/0.5954, allocations: 1.963 MB / 456.2 MB, free: 10.85 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.384e-05/0.5955, allocations: 31.95 kB / 456.3 MB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.5956, allocations: 0 / 456.3 MB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/0.5956, allocations: 11.88 kB / 456.3 MB, free: 10.81 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0016/0.5972, allocations: 1.043 MB / 457.3 MB, free: 9.711 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.316e-06/0.5972, allocations: 0 / 457.3 MB, free: 9.711 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004589/0.5977, allocations: 87.88 kB / 457.4 MB, free: 9.625 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.794e-06/0.5977, allocations: 4 kB / 457.4 MB, free: 9.621 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.214e-05/0.5978, allocations: 8 kB / 457.4 MB, free: 9.613 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.324e-06/0.5978, allocations: 0 / 457.4 MB, free: 9.613 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.08e-06/0.5978, allocations: 0 / 457.4 MB, free: 9.613 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002049/0.5998, allocations: 1.131 MB / 458.5 MB, free: 8.469 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004121/0.6003, allocations: 259.3 kB / 458.8 MB, free: 8.195 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.136e-05/0.6004, allocations: 8 kB / 458.8 MB, free: 8.188 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000432/0.6008, allocations: 31.97 kB / 458.8 MB, free: 8.156 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.601, allocations: 35.95 kB / 458.9 MB, free: 8.121 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.222e-05/0.601, allocations: 15.98 kB / 458.9 MB, free: 8.105 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005614/0.6016, allocations: 314.9 kB / 459.2 MB, free: 7.797 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.45e-07/0.6016, allocations: 0 / 459.2 MB, free: 7.797 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003709/0.6053, allocations: 1.132 MB / 460.3 MB, free: 6.664 MB / 394.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,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.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.005589/0.611, allocations: 1.217 MB / 461.5 MB, free: 5.445 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00237/0.6134, allocations: 0.8904 MB / 462.4 MB, free: 4.555 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.756e-06/0.6134, allocations: 3.938 kB / 462.4 MB, free: 4.551 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009886/0.6144, allocations: 0.5251 MB / 463 MB, free: 4.023 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001348/0.6158, allocations: 194.5 kB / 463.2 MB, free: 3.836 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003654/0.6195, allocations: 2.162 MB / 465.3 MB, free: 1.633 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008353/0.6203, allocations: 1.007 MB / 466.3 MB, free: 0.5977 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002207/0.6206, allocations: 55.36 kB / 466.4 MB, free: 0.543 MB / 394.7 MB Notification: Performance of SimCode: time 2.08e-06/0.6206, allocations: 0 / 466.4 MB, free: 0.543 MB / 394.7 MB Notification: Performance of Templates: time 0.2804/0.901, allocations: 28.11 MB / 494.5 MB, free: 127 MB / 410.7 MB