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.13/2.13, allocations: 234.9 MB / 250.5 MB, free: 9.664 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004301/0.0004302, allocations: 12 kB / 314.4 MB, free: 9.668 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.336/0.3364, allocations: 54.85 MB / 369.3 MB, free: 12.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.855/6.192, allocations: 2.607 GB / 2.968 GB, free: 20.78 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/6.192, allocations: 87.95 kB / 2.968 GB, free: 20.7 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.238/7.43, allocations: 236.3 MB / 3.199 GB, free: 77.84 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.342e-06/7.43, allocations: 0 / 3.199 GB, free: 77.84 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.993e-05/7.43, allocations: 12.28 kB / 3.199 GB, free: 77.84 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.004899/7.435, allocations: 1.334 MB / 3.2 GB, free: 77.21 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/7.435, allocations: 7.656 kB / 3.2 GB, free: 77.21 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002796/7.438, allocations: 259.1 kB / 3.2 GB, free: 77.19 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009532/7.439, allocations: 428.9 kB / 3.201 GB, free: 76.96 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.558e-05/7.439, allocations: 29.78 kB / 3.201 GB, free: 76.96 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.823e-05/7.439, allocations: 34.69 kB / 3.201 GB, free: 76.96 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002002/7.441, allocations: 0.6309 MB / 3.201 GB, free: 76.83 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.985e-05/7.441, allocations: 3.125 kB / 3.201 GB, free: 76.83 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.414e-05/7.441, allocations: 20.75 kB / 3.201 GB, free: 76.83 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.663e-05/7.441, allocations: 7.469 kB / 3.201 GB, free: 76.83 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001987/7.443, allocations: 0.5808 MB / 3.202 GB, free: 76.82 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.003163/7.446, allocations: 2.66 MB / 3.204 GB, free: 74.93 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002341/7.448, allocations: 0.5285 MB / 3.205 GB, free: 74.91 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1416/7.59, allocations: 54.85 MB / 3.259 GB, free: 44.34 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/7.59, allocations: 37.41 kB / 3.259 GB, free: 44.3 MB / 490.7 MB Notification: Performance of pre-optimization done (n=28): time 3.35e-06/7.59, allocations: 0 / 3.259 GB, free: 44.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=28): time 0.003506/7.594, allocations: 0.7922 MB / 3.259 GB, free: 44.23 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/7.594, allocations: 106.7 kB / 3.259 GB, free: 44.11 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004964/7.594, allocations: 332.2 kB / 3.26 GB, free: 43.99 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.783e-05/7.594, allocations: 29.14 kB / 3.26 GB, free: 43.96 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/7.595, allocations: 294.5 kB / 3.26 GB, free: 43.77 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.146e-05/7.595, allocations: 91.3 kB / 3.26 GB, free: 43.72 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.117e-05/7.595, allocations: 11.09 kB / 3.26 GB, free: 43.72 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.579e-05/7.595, allocations: 325.1 kB / 3.26 GB, free: 43.41 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005014/7.595, allocations: 150.3 kB / 3.261 GB, free: 43.41 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005322/7.596, allocations: 311.1 kB / 3.261 GB, free: 43.21 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004912/7.596, allocations: 177.9 kB / 3.261 GB, free: 43.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/7.596, allocations: 3.812 kB / 3.261 GB, free: 43.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001326/7.598, allocations: 495.4 kB / 3.262 GB, free: 43.15 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003786/7.598, allocations: 1.831 MB / 3.263 GB, free: 41.23 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/7.598, allocations: 3.844 kB / 3.263 GB, free: 41.23 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.619e-05/7.598, allocations: 11.78 kB / 3.263 GB, free: 41.23 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005241/7.599, allocations: 114.8 kB / 3.263 GB, free: 41.23 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.474e-05/7.599, allocations: 8.406 kB / 3.263 GB, free: 41.23 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005615/7.599, allocations: 75.69 kB / 3.264 GB, free: 41.21 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.344e-05/7.599, allocations: 24.91 kB / 3.264 GB, free: 41.21 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.062e-05/7.599, allocations: 6.031 kB / 3.264 GB, free: 41.21 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001277/7.601, allocations: 438.6 kB / 3.264 GB, free: 41.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.745e-06/7.601, allocations: 3.969 kB / 3.264 GB, free: 41.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/7.601, allocations: 11.11 kB / 3.264 GB, free: 41.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005416/7.601, allocations: 125.7 kB / 3.264 GB, free: 41.19 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/7.601, allocations: 9.531 kB / 3.264 GB, free: 41.19 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004537/7.602, allocations: 61.12 kB / 3.264 GB, free: 41.18 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.074e-05/7.602, allocations: 22.98 kB / 3.264 GB, free: 41.18 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.0003456/7.602, allocations: 249.2 kB / 3.264 GB, free: 40.99 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/7.602, allocations: 49.2 kB / 3.265 GB, free: 40.97 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002942/7.605, allocations: 1.942 MB / 3.266 GB, free: 40.71 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-05/7.605, allocations: 34.81 kB / 3.266 GB, free: 40.71 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.298e-06/7.605, allocations: 0 / 3.266 GB, free: 40.71 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.725e-06/7.605, allocations: 0 / 3.266 GB, free: 40.71 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001321/7.607, allocations: 1.025 MB / 3.267 GB, free: 40.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.205e-06/7.607, allocations: 0 / 3.267 GB, free: 40.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004246/7.607, allocations: 86.66 kB / 3.268 GB, free: 40.45 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-05/7.607, allocations: 7.125 kB / 3.268 GB, free: 40.45 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.038e-05/7.607, allocations: 8.562 kB / 3.268 GB, free: 40.45 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.257e-06/7.607, allocations: 3.953 kB / 3.268 GB, free: 40.45 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.127e-06/7.607, allocations: 4 kB / 3.268 GB, free: 40.44 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/7.609, allocations: 1.099 MB / 3.269 GB, free: 40.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003715/7.609, allocations: 256.8 kB / 3.269 GB, free: 40.03 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.896e-05/7.61, allocations: 6.688 kB / 3.269 GB, free: 40.03 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000471/7.61, allocations: 43.41 kB / 3.269 GB, free: 40.02 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.693e-05/7.61, allocations: 36.25 kB / 3.269 GB, free: 40.02 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.726e-05/7.61, allocations: 15.08 kB / 3.269 GB, free: 40.02 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004927/7.611, allocations: 315.8 kB / 3.269 GB, free: 39.93 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.41e-07/7.611, allocations: 0 / 3.269 GB, free: 39.93 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004936/7.616, allocations: 1.165 MB / 3.27 GB, free: 39.75 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.008066/7.624, allocations: 1.435 MB / 3.272 GB, free: 39.43 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002119/7.626, allocations: 0.8607 MB / 3.273 GB, free: 39.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.435e-06/7.626, allocations: 0 / 3.273 GB, free: 39.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008627/7.627, allocations: 0.5137 MB / 3.273 GB, free: 39.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001449/7.628, allocations: 203.6 kB / 3.273 GB, free: 39.38 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1877/7.816, allocations: 82.2 MB / 3.354 GB, free: 5.711 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004361/7.817, allocations: 1.005 MB / 3.355 GB, free: 4.789 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001856/7.817, allocations: 50.25 kB / 3.355 GB, free: 4.742 MB / 490.7 MB Notification: Performance of SimCode: time 1.691e-06/7.817, allocations: 0 / 3.355 GB, free: 4.742 MB / 490.7 MB Notification: Performance of Templates: time 0.3353/8.152, allocations: 27.71 MB / 3.382 GB, free: 68.07 MB / 490.7 MB