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.TestCheckValve.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") Notification: Performance of loadModel(ModelicaTest): time 1.985/1.985, allocations: 209.4 MB / 217.3 MB, free: 4.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.958e-05/1.973e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2664/0.2664, allocations: 48.68 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.871/6.137, allocations: 2.495 GB / 2.808 GB, free: 11.61 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/6.138, allocations: 83.33 kB / 2.808 GB, free: 11.57 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.215/7.353, allocations: 225.6 MB / 3.028 GB, free: 60.8 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.172e-06/7.353, allocations: 0 / 3.028 GB, free: 60.8 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.558e-05/7.353, allocations: 13.98 kB / 3.028 GB, free: 60.8 MB / 426.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.004495/7.358, allocations: 1.248 MB / 3.029 GB, free: 60.15 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/7.358, allocations: 11.44 kB / 3.029 GB, free: 60.15 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002662/7.36, allocations: 229 kB / 3.029 GB, free: 60.12 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008849/7.361, allocations: 433.2 kB / 3.03 GB, free: 59.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.597e-05/7.361, allocations: 11.38 kB / 3.03 GB, free: 59.89 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.29e-05/7.361, allocations: 18.72 kB / 3.03 GB, free: 59.89 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007184/7.362, allocations: 336.7 kB / 3.03 GB, free: 59.89 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006942/7.363, allocations: 398.6 kB / 3.03 GB, free: 59.77 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.844e-05/7.363, allocations: 352 / 3.03 GB, free: 59.77 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.36e-05/7.363, allocations: 12.56 kB / 3.03 GB, free: 59.76 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/7.363, allocations: 7.906 kB / 3.03 GB, free: 59.76 MB / 426.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.00595/7.369, allocations: 3.883 MB / 3.034 GB, free: 57.12 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005261/7.37, allocations: 225.5 kB / 3.034 GB, free: 57.1 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002417/7.37, allocations: 132.1 kB / 3.035 GB, free: 57.09 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1254/7.495, allocations: 50.2 MB / 3.084 GB, free: 29.58 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/7.495, allocations: 34.44 kB / 3.084 GB, free: 29.54 MB / 426.7 MB Notification: Performance of pre-optimization done (n=24): time 3.734e-06/7.495, allocations: 0 / 3.084 GB, free: 29.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=24): time 0.002532/7.498, allocations: 0.5449 MB / 3.084 GB, free: 29.48 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.365e-05/7.498, allocations: 106.8 kB / 3.084 GB, free: 29.36 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003667/7.498, allocations: 282.7 kB / 3.085 GB, free: 29.25 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.411e-05/7.498, allocations: 25.7 kB / 3.085 GB, free: 29.22 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/7.499, allocations: 290.7 kB / 3.085 GB, free: 29 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.777e-05/7.499, allocations: 80.69 kB / 3.085 GB, free: 28.95 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.319e-05/7.499, allocations: 0 / 3.085 GB, free: 28.95 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.067e-05/7.499, allocations: 333.8 kB / 3.085 GB, free: 28.63 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002074/7.499, allocations: 101 kB / 3.085 GB, free: 28.63 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002561/7.499, allocations: 217.4 kB / 3.086 GB, free: 28.48 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/7.5, allocations: 215.3 kB / 3.086 GB, free: 28.47 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.078e-06/7.5, allocations: 0 / 3.086 GB, free: 28.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001727/7.502, allocations: 443.9 kB / 3.086 GB, free: 28.41 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003026/7.502, allocations: 1.485 MB / 3.088 GB, free: 26.85 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/7.502, allocations: 3.469 kB / 3.088 GB, free: 26.85 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/7.503, allocations: 15.23 kB / 3.088 GB, free: 26.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006154/7.503, allocations: 113.7 kB / 3.088 GB, free: 26.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/7.503, allocations: 7.906 kB / 3.088 GB, free: 26.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006387/7.504, allocations: 68.86 kB / 3.088 GB, free: 26.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.416e-05/7.504, allocations: 21.3 kB / 3.088 GB, free: 26.82 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/7.504, allocations: 3.969 kB / 3.088 GB, free: 26.82 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001453/7.505, allocations: 368.9 kB / 3.088 GB, free: 26.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.699e-06/7.505, allocations: 3.875 kB / 3.088 GB, free: 26.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.938e-06/7.505, allocations: 3.938 kB / 3.088 GB, free: 26.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005854/7.506, allocations: 121.3 kB / 3.088 GB, free: 26.78 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/7.506, allocations: 11.66 kB / 3.088 GB, free: 26.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004645/7.507, allocations: 61.34 kB / 3.088 GB, free: 26.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.715e-05/7.507, allocations: 18.12 kB / 3.088 GB, free: 26.75 MB / 426.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.0001295/7.507, allocations: 115.1 kB / 3.089 GB, free: 26.64 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/7.507, allocations: 36.12 kB / 3.089 GB, free: 26.63 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002869/7.51, allocations: 1.715 MB / 3.09 GB, free: 26.38 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.445e-05/7.51, allocations: 29.48 kB / 3.09 GB, free: 26.38 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.952e-06/7.51, allocations: 0 / 3.09 GB, free: 26.38 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.398e-06/7.51, allocations: 0 / 3.09 GB, free: 26.38 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001108/7.511, allocations: 0.8526 MB / 3.091 GB, free: 26.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.358e-06/7.511, allocations: 3.938 kB / 3.091 GB, free: 26.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004761/7.511, allocations: 89.09 kB / 3.091 GB, free: 26.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.033e-06/7.512, allocations: 3.281 kB / 3.091 GB, free: 26.04 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.767e-05/7.512, allocations: 3.562 kB / 3.091 GB, free: 26.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/7.512, allocations: 3.531 kB / 3.091 GB, free: 26.04 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.965e-06/7.512, allocations: 3.953 kB / 3.091 GB, free: 26.03 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001867/7.513, allocations: 0.9735 MB / 3.092 GB, free: 25.54 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003019/7.514, allocations: 248.5 kB / 3.092 GB, free: 25.34 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.282e-05/7.514, allocations: 3.844 kB / 3.092 GB, free: 25.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004569/7.514, allocations: 30.83 kB / 3.092 GB, free: 25.34 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.75e-05/7.514, allocations: 42.59 kB / 3.092 GB, free: 25.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-05/7.515, allocations: 7.875 kB / 3.092 GB, free: 25.33 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003766/7.515, allocations: 288.6 kB / 3.093 GB, free: 25.18 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.57e-07/7.515, allocations: 0 / 3.093 GB, free: 25.18 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004557/7.52, allocations: 1.154 MB / 3.094 GB, free: 24.94 MB / 426.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,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 28 * 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.007499/7.527, allocations: 1.528 MB / 3.095 GB, free: 24.55 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001202/7.528, allocations: 0.656 MB / 3.096 GB, free: 24.29 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.007e-06/7.528, allocations: 0 / 3.096 GB, free: 24.29 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005171/7.529, allocations: 432.6 kB / 3.096 GB, free: 24.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001315/7.53, allocations: 181.7 kB / 3.097 GB, free: 24.03 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1429/7.673, allocations: 54.5 MB / 3.15 GB, free: 1.988 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007742/7.674, allocations: 0.9836 MB / 3.151 GB, free: 0.9727 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000225/7.674, allocations: 47.42 kB / 3.151 GB, free: 0.9258 MB / 442.7 MB Notification: Performance of SimCode: time 1.891e-06/7.674, allocations: 0 / 3.151 GB, free: 0.9258 MB / 442.7 MB Notification: Performance of Templates: time 0.2985/7.973, allocations: 27.99 MB / 3.178 GB, free: 68.07 MB / 442.7 MB