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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.14/2.14, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004314/0.0004315, allocations: 8 kB / 314.3 MB, free: 9.59 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2761, allocations: 54.88 MB / 369.2 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible): time 0.0365/0.3127, allocations: 24.1 MB / 393.3 MB, free: 2.52 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02623/0.339, allocations: 14.73 MB / 408 MB, free: 3.762 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006323/0.3396, allocations: 19.81 kB / 408 MB, free: 3.742 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009514/0.3406, allocations: 262.8 kB / 408.3 MB, free: 3.484 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01056/0.3512, allocations: 2.953 MB / 411.3 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01088/0.3621, allocations: 2.996 MB / 414.3 MB, free: 13.52 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001368/0.3635, allocations: 0.6685 MB / 414.9 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004978/0.364, allocations: 233.3 kB / 415.2 MB, free: 12.62 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001039/0.3651, allocations: 430.5 kB / 415.6 MB, free: 12.2 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003792/0.3655, allocations: 235 kB / 415.8 MB, free: 11.97 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.395e-05/0.3655, allocations: 20 kB / 415.8 MB, free: 11.95 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0172/0.3828, allocations: 7.144 MB / 423 MB, free: 4.801 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002019/0.383, allocations: 91.64 kB / 423.1 MB, free: 4.711 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002271/0.3832, allocations: 113.5 kB / 423.2 MB, free: 4.594 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007001/0.3903, allocations: 3.052 MB / 426.2 MB, free: 1.535 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.404e-06/0.3903, allocations: 0 / 426.2 MB, free: 1.535 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.371e-06/0.3903, allocations: 0 / 426.2 MB, free: 1.535 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.3903, allocations: 7.938 kB / 426.2 MB, free: 1.527 MB / 346.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.003681/0.394, allocations: 1.243 MB / 427.5 MB, free: 240 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.3941, allocations: 8.031 kB / 427.5 MB, free: 232 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00242/0.3965, allocations: 243.3 kB / 427.7 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007839/0.3973, allocations: 394.6 kB / 428.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.859e-05/0.3974, allocations: 28.66 kB / 428.1 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.56e-05/0.3975, allocations: 39.94 kB / 428.2 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002168/0.3997, allocations: 0.6332 MB / 428.8 MB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.3997, allocations: 0 / 428.8 MB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.345e-05/0.3998, allocations: 16 kB / 428.8 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.3998, allocations: 8 kB / 428.8 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002235/0.4021, allocations: 0.5879 MB / 429.4 MB, free: 14.2 MB / 362.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.004197/0.4063, allocations: 2.692 MB / 432.1 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002376/0.4087, allocations: 0.5648 MB / 432.7 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3872/0.796, allocations: 55.47 MB / 488.1 MB, free: 87.72 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/0.7961, allocations: 38.56 kB / 488.2 MB, free: 87.68 MB / 394.7 MB Notification: Performance of pre-optimization done (n=28): time 3.358e-06/0.7961, allocations: 0 / 488.2 MB, free: 87.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=28): time 0.003576/0.7997, allocations: 0.8273 MB / 489 MB, free: 86.87 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/0.7997, allocations: 110.4 kB / 489.1 MB, free: 86.74 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004656/0.8002, allocations: 367.8 kB / 489.5 MB, free: 86.37 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.541e-05/0.8003, allocations: 29.7 kB / 489.5 MB, free: 86.34 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.8004, allocations: 285.9 kB / 489.8 MB, free: 86.09 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.848e-05/0.8005, allocations: 103.3 kB / 489.9 MB, free: 86 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.558e-05/0.8005, allocations: 4 kB / 489.9 MB, free: 86 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.35e-05/0.8006, allocations: 331.3 kB / 490.2 MB, free: 85.66 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000439/0.8011, allocations: 164.8 kB / 490.4 MB, free: 85.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004919/0.8016, allocations: 314.7 kB / 490.7 MB, free: 85.13 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004849/0.8021, allocations: 190 kB / 490.9 MB, free: 84.95 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.729e-06/0.8021, allocations: 7.781 kB / 490.9 MB, free: 84.95 MB / 394.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001245/0.8034, allocations: 0.5042 MB / 491.4 MB, free: 84.44 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.459e-05/0.8035, allocations: 232.5 kB / 491.6 MB, free: 84.15 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.8035, allocations: 4.875 kB / 491.6 MB, free: 84.14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.443e-05/0.8035, allocations: 15.48 kB / 491.6 MB, free: 84.13 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004975/0.804, allocations: 107.9 kB / 491.7 MB, free: 84.03 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.568e-05/0.8041, allocations: 15.92 kB / 491.7 MB, free: 84.01 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004918/0.8046, allocations: 75.5 kB / 491.8 MB, free: 83.94 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.422e-05/0.8046, allocations: 27.98 kB / 491.8 MB, free: 83.91 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.029e-05/0.8047, allocations: 4 kB / 491.8 MB, free: 83.91 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001117/0.8058, allocations: 460.6 kB / 492.3 MB, free: 83.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.294e-06/0.8058, allocations: 6.188 kB / 492.3 MB, free: 83.45 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.8058, allocations: 8.344 kB / 492.3 MB, free: 83.45 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004871/0.8063, allocations: 115.8 kB / 492.4 MB, free: 83.33 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.415e-05/0.8064, allocations: 15.88 kB / 492.4 MB, free: 83.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003753/0.8068, allocations: 63.72 kB / 492.5 MB, free: 83.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.555e-05/0.8068, allocations: 20 kB / 492.5 MB, free: 83.23 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.0002752/0.8071, allocations: 245 kB / 492.8 MB, free: 82.98 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.8072, allocations: 42.16 kB / 492.8 MB, free: 82.95 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002569/0.8098, allocations: 1.97 MB / 494.8 MB, free: 80.97 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.113e-05/0.8099, allocations: 35.89 kB / 494.8 MB, free: 80.93 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.458e-06/0.8099, allocations: 7.953 kB / 494.8 MB, free: 80.93 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.316e-06/0.8099, allocations: 3.984 kB / 494.8 MB, free: 80.92 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001643/0.8116, allocations: 1.037 MB / 495.8 MB, free: 79.85 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.638e-06/0.8116, allocations: 0 / 495.8 MB, free: 79.85 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005756/0.8122, allocations: 79.88 kB / 495.9 MB, free: 79.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.087e-05/0.8122, allocations: 4 kB / 495.9 MB, free: 79.77 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.078e-05/0.8123, allocations: 16 kB / 495.9 MB, free: 79.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.4e-06/0.8123, allocations: 0 / 495.9 MB, free: 79.75 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.753e-06/0.8123, allocations: 0 / 495.9 MB, free: 79.75 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002284/0.8146, allocations: 1.124 MB / 497.1 MB, free: 78.61 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00043/0.8151, allocations: 251.4 kB / 497.3 MB, free: 78.34 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001321/0.8152, allocations: 8 kB / 497.3 MB, free: 78.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004753/0.8157, allocations: 51.75 kB / 497.4 MB, free: 78.29 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.954e-05/0.8159, allocations: 31.95 kB / 497.4 MB, free: 78.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.524e-05/0.8159, allocations: 8 kB / 497.4 MB, free: 78.25 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004255/0.8163, allocations: 322.8 kB / 497.7 MB, free: 77.93 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.3e-07/0.8164, allocations: 0 / 497.7 MB, free: 77.93 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003137/0.8195, allocations: 1.128 MB / 498.9 MB, free: 76.88 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.005395/0.8249, allocations: 1.213 MB / 0.4884 GB, free: 75.86 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002001/0.827, allocations: 0.8906 MB / 0.4892 GB, free: 74.97 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.929e-06/0.827, allocations: 4 kB / 0.4892 GB, free: 74.97 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007564/0.8278, allocations: 0.5256 MB / 0.4897 GB, free: 74.45 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001254/0.8291, allocations: 198.9 kB / 0.4899 GB, free: 74.25 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002805/0.8319, allocations: 2.151 MB / 0.492 GB, free: 72.11 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004205/0.8324, allocations: 1.007 MB / 0.493 GB, free: 71.08 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00018/0.8326, allocations: 51.42 kB / 0.4931 GB, free: 71.03 MB / 394.7 MB Notification: Performance of SimCode: time 1.705e-06/0.8326, allocations: 0 / 0.4931 GB, free: 71.03 MB / 394.7 MB Notification: Performance of Templates: time 0.04305/0.8756, allocations: 28.3 MB / 0.5207 GB, free: 42.73 MB / 394.7 MB