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.TestCheckValve.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.TestCheckValve,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|downstreamPressure.y|const.y",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") Notification: Performance of loadModel(ModelicaTest): time 2.162/2.162, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.824e-05/2.842e-05, allocations: 4 kB / 309.7 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3199, allocations: 54.86 MB / 364.5 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.35/6.67, allocations: 2.606 GB / 2.962 GB, free: 100.8 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002526/6.671, allocations: 81.33 kB / 2.962 GB, free: 100.8 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9839/7.655, allocations: 232.5 MB / 3.189 GB, free: 78.34 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.964e-06/7.655, allocations: 0 / 3.189 GB, free: 78.34 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.298e-05/7.655, allocations: 11.03 kB / 3.189 GB, free: 78.34 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.004544/7.659, allocations: 1.271 MB / 3.191 GB, free: 77.66 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/7.659, allocations: 14.72 kB / 3.191 GB, free: 77.66 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002521/7.662, allocations: 248.5 kB / 3.191 GB, free: 77.64 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008653/7.663, allocations: 425.9 kB / 3.191 GB, free: 77.4 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.483e-05/7.663, allocations: 31.28 kB / 3.191 GB, free: 77.4 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.002e-05/7.663, allocations: 34.66 kB / 3.191 GB, free: 77.4 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001683/7.665, allocations: 0.5952 MB / 3.192 GB, free: 77.28 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/7.665, allocations: 3.938 kB / 3.192 GB, free: 77.27 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.956e-05/7.665, allocations: 14.84 kB / 3.192 GB, free: 77.27 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/7.665, allocations: 11.22 kB / 3.192 GB, free: 77.27 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001564/7.666, allocations: 0.5178 MB / 3.193 GB, free: 77.27 MB / 490.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.003251/7.67, allocations: 2.551 MB / 3.195 GB, free: 75.4 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/7.671, allocations: 419.1 kB / 3.195 GB, free: 75.27 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002628/7.671, allocations: 140.2 kB / 3.196 GB, free: 75.21 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1295/7.801, allocations: 51.65 MB / 3.246 GB, free: 45.64 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.745e-05/7.801, allocations: 34.56 kB / 3.246 GB, free: 45.59 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 3.226e-06/7.801, allocations: 4 kB / 3.246 GB, free: 45.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.002699/7.804, allocations: 0.6397 MB / 3.247 GB, free: 45.4 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/7.804, allocations: 105.1 kB / 3.247 GB, free: 45.27 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004168/7.804, allocations: 300.5 kB / 3.247 GB, free: 45.11 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.894e-05/7.804, allocations: 33.05 kB / 3.247 GB, free: 45.07 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/7.804, allocations: 276.5 kB / 3.247 GB, free: 44.82 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.993e-05/7.805, allocations: 92.23 kB / 3.247 GB, free: 44.75 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.728e-05/7.805, allocations: 8 kB / 3.247 GB, free: 44.75 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.128e-05/7.805, allocations: 322.3 kB / 3.248 GB, free: 44.43 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002498/7.805, allocations: 110.6 kB / 3.248 GB, free: 44.39 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003076/7.805, allocations: 234.5 kB / 3.248 GB, free: 44.18 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002971/7.806, allocations: 138.3 kB / 3.248 GB, free: 44.12 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.206e-06/7.806, allocations: 3.953 kB / 3.248 GB, free: 44.12 MB / 490.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008664/7.806, allocations: 381.5 kB / 3.249 GB, free: 43.96 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002982/7.807, allocations: 1.485 MB / 3.25 GB, free: 42.38 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/7.807, allocations: 7.844 kB / 3.25 GB, free: 42.37 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/7.807, allocations: 11.81 kB / 3.25 GB, free: 42.37 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000647/7.807, allocations: 112.5 kB / 3.25 GB, free: 42.36 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.614e-05/7.807, allocations: 11.34 kB / 3.25 GB, free: 42.36 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006375/7.808, allocations: 76.47 kB / 3.25 GB, free: 42.33 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-05/7.808, allocations: 19.19 kB / 3.25 GB, free: 42.32 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/7.808, allocations: 3.781 kB / 3.25 GB, free: 42.32 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007558/7.809, allocations: 335.2 kB / 3.251 GB, free: 42.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.237e-06/7.809, allocations: 7.719 kB / 3.251 GB, free: 42.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/7.809, allocations: 7.906 kB / 3.251 GB, free: 42.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006009/7.81, allocations: 117.5 kB / 3.251 GB, free: 42.18 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/7.81, allocations: 11.72 kB / 3.251 GB, free: 42.17 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004669/7.81, allocations: 69.16 kB / 3.251 GB, free: 42.15 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.805e-05/7.81, allocations: 21.83 kB / 3.251 GB, free: 42.14 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 4 (V1.state_b.phase,V1.state_a.phase,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0001321/7.81, allocations: 128.6 kB / 3.251 GB, free: 42.02 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001232/7.811, allocations: 41.67 kB / 3.251 GB, free: 42 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002467/7.813, allocations: 1.908 MB / 3.253 GB, free: 41.08 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.019e-05/7.813, allocations: 31.2 kB / 3.253 GB, free: 41.07 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.834e-06/7.813, allocations: 0 / 3.253 GB, free: 41.07 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.918e-06/7.813, allocations: 3.953 kB / 3.253 GB, free: 41.07 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001209/7.814, allocations: 1.015 MB / 3.254 GB, free: 40.49 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.422e-06/7.814, allocations: 4 kB / 3.254 GB, free: 40.48 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004768/7.815, allocations: 96.17 kB / 3.254 GB, free: 40.47 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.441e-06/7.815, allocations: 0 / 3.254 GB, free: 40.47 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.056e-05/7.815, allocations: 7.719 kB / 3.254 GB, free: 40.47 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.492e-06/7.815, allocations: 3.812 kB / 3.254 GB, free: 40.47 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.318e-06/7.815, allocations: 0 / 3.254 GB, free: 40.47 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001344/7.816, allocations: 1.029 MB / 3.255 GB, free: 39.92 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003217/7.817, allocations: 251.9 kB / 3.255 GB, free: 39.72 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.222e-05/7.817, allocations: 7.281 kB / 3.255 GB, free: 39.71 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004951/7.817, allocations: 47.52 kB / 3.255 GB, free: 39.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.048e-05/7.817, allocations: 30.78 kB / 3.255 GB, free: 39.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.553e-05/7.817, allocations: 14.97 kB / 3.255 GB, free: 39.7 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003982/7.818, allocations: 297.3 kB / 3.256 GB, free: 39.54 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.009e-06/7.818, allocations: 0 / 3.256 GB, free: 39.54 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004699/7.823, allocations: 1.181 MB / 3.257 GB, free: 39.29 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,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse15.phase,$cse15.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): 29 * 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.008017/7.831, allocations: 1.481 MB / 3.258 GB, free: 38.92 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001393/7.832, allocations: 0.7247 MB / 3.259 GB, free: 38.63 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/7.832, allocations: 0 / 3.259 GB, free: 38.63 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000611/7.833, allocations: 496 kB / 3.259 GB, free: 38.39 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001412/7.834, allocations: 198.7 kB / 3.26 GB, free: 38.35 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4583/8.292, allocations: 76.36 MB / 3.334 GB, free: 72.79 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005124/8.293, allocations: 0.9974 MB / 3.335 GB, free: 72.09 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002175/8.293, allocations: 49.7 kB / 3.335 GB, free: 72.09 MB / 490.7 MB Notification: Performance of SimCode: time 1.86e-06/8.293, allocations: 0 / 3.335 GB, free: 72.09 MB / 490.7 MB Notification: Performance of Templates: time 0.04717/8.34, allocations: 27.69 MB / 3.362 GB, free: 70.94 MB / 490.7 MB