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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.269/2.269, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.82e-05/1.831e-05, allocations: 3.984 kB / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2749, allocations: 54.86 MB / 358 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.295/6.57, allocations: 2.606 GB / 2.955 GB, free: 106 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/6.57, allocations: 82.34 kB / 2.955 GB, free: 106 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9379/7.508, allocations: 229.7 MB / 3.18 GB, free: 65.42 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.899e-06/7.508, allocations: 0 / 3.18 GB, free: 65.42 MB / 474.7 MB Notification: Performance of Transformations before backend: time 3.198e-05/7.508, allocations: 10.34 kB / 3.18 GB, free: 65.42 MB / 474.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.00448/7.512, allocations: 1.268 MB / 3.181 GB, free: 64.6 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/7.512, allocations: 13.38 kB / 3.181 GB, free: 64.6 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002658/7.515, allocations: 246.4 kB / 3.181 GB, free: 64.56 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009037/7.516, allocations: 428.2 kB / 3.182 GB, free: 64.25 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.832e-05/7.516, allocations: 15.27 kB / 3.182 GB, free: 64.25 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.045e-05/7.516, allocations: 23.06 kB / 3.182 GB, free: 64.25 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007205/7.517, allocations: 335.7 kB / 3.182 GB, free: 64.13 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006941/7.518, allocations: 393.7 kB / 3.182 GB, free: 63.91 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/7.518, allocations: 7.844 kB / 3.182 GB, free: 63.91 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.236e-05/7.518, allocations: 0.9062 kB / 3.182 GB, free: 63.91 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/7.518, allocations: 7.875 kB / 3.182 GB, free: 63.91 MB / 474.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.006215/7.524, allocations: 3.903 MB / 3.186 GB, free: 60.9 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004933/7.524, allocations: 230.1 kB / 3.186 GB, free: 60.81 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002224/7.525, allocations: 132.5 kB / 3.187 GB, free: 60.75 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1726/7.697, allocations: 50.23 MB / 3.236 GB, free: 10.93 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.388e-05/7.697, allocations: 38.52 kB / 3.236 GB, free: 10.88 MB / 474.7 MB Notification: Performance of pre-optimization done (n=24): time 3.282e-06/7.697, allocations: 0 / 3.236 GB, free: 10.88 MB / 474.7 MB Notification: Performance of matching and sorting (n=24): time 0.002528/7.7, allocations: 0.5449 MB / 3.236 GB, free: 10.33 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.347e-05/7.7, allocations: 106.8 kB / 3.236 GB, free: 10.2 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003541/7.7, allocations: 282.2 kB / 3.237 GB, free: 9.926 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/7.7, allocations: 25.7 kB / 3.237 GB, free: 9.895 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/7.701, allocations: 290.4 kB / 3.237 GB, free: 9.609 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.609e-05/7.701, allocations: 78.86 kB / 3.237 GB, free: 9.531 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.271e-05/7.701, allocations: 0 / 3.237 GB, free: 9.531 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 6.454e-05/7.701, allocations: 330.8 kB / 3.237 GB, free: 9.199 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002046/7.701, allocations: 99.98 kB / 3.237 GB, free: 9.102 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002551/7.701, allocations: 232.6 kB / 3.238 GB, free: 8.816 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001259/7.702, allocations: 211.8 kB / 3.238 GB, free: 8.609 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.121e-06/7.702, allocations: 7.984 kB / 3.238 GB, free: 8.602 MB / 474.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001735/7.704, allocations: 441.2 kB / 3.238 GB, free: 8.164 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003052/7.705, allocations: 1.49 MB / 3.24 GB, free: 6.562 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/7.705, allocations: 4 kB / 3.24 GB, free: 6.559 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.309e-05/7.705, allocations: 8 kB / 3.24 GB, free: 6.551 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000574/7.705, allocations: 115.9 kB / 3.24 GB, free: 6.438 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.597e-06/7.705, allocations: 7.938 kB / 3.24 GB, free: 6.43 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005802/7.706, allocations: 67.64 kB / 3.24 GB, free: 6.363 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.461e-05/7.706, allocations: 23.98 kB / 3.24 GB, free: 6.34 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.59e-06/7.706, allocations: 7.938 kB / 3.24 GB, free: 6.332 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001448/7.707, allocations: 359.5 kB / 3.24 GB, free: 5.98 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.92e-06/7.707, allocations: 4 kB / 3.24 GB, free: 5.977 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/7.707, allocations: 8 kB / 3.24 GB, free: 5.969 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005391/7.708, allocations: 116.4 kB / 3.24 GB, free: 5.855 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/7.708, allocations: 11.92 kB / 3.24 GB, free: 5.844 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004367/7.708, allocations: 55.66 kB / 3.24 GB, free: 5.789 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.701e-05/7.709, allocations: 27.98 kB / 3.24 GB, free: 5.762 MB / 474.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.000144/7.709, allocations: 124.8 kB / 3.241 GB, free: 5.633 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/7.709, allocations: 39.53 kB / 3.241 GB, free: 5.594 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00276/7.712, allocations: 1.702 MB / 3.242 GB, free: 3.879 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.979e-05/7.712, allocations: 19.97 kB / 3.242 GB, free: 3.859 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.595e-06/7.712, allocations: 7.984 kB / 3.242 GB, free: 3.852 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.134e-06/7.712, allocations: 0 / 3.242 GB, free: 3.852 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/7.713, allocations: 0.8619 MB / 3.243 GB, free: 2.961 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.799e-06/7.713, allocations: 0 / 3.243 GB, free: 2.961 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004309/7.713, allocations: 91.88 kB / 3.243 GB, free: 2.871 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.934e-06/7.713, allocations: 0 / 3.243 GB, free: 2.871 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.881e-05/7.713, allocations: 7.984 kB / 3.243 GB, free: 2.863 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/7.713, allocations: 0 / 3.243 GB, free: 2.863 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.799e-06/7.713, allocations: 0 / 3.243 GB, free: 2.863 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001746/7.715, allocations: 0.9631 MB / 3.244 GB, free: 1.879 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003153/7.715, allocations: 251.5 kB / 3.244 GB, free: 1.613 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.133e-05/7.716, allocations: 4 kB / 3.244 GB, free: 1.609 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004524/7.716, allocations: 39.81 kB / 3.244 GB, free: 1.57 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.464e-05/7.716, allocations: 31.95 kB / 3.244 GB, free: 1.539 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.405e-05/7.716, allocations: 19.98 kB / 3.244 GB, free: 1.52 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003722/7.717, allocations: 287 kB / 3.245 GB, free: 1.238 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.21e-07/7.717, allocations: 0 / 3.245 GB, free: 1.238 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004536/7.721, allocations: 1.155 MB / 3.246 GB, free: 88 kB / 474.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.008468/7.73, allocations: 1.544 MB / 3.247 GB, free: 14.63 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001448/7.731, allocations: 0.65 MB / 3.248 GB, free: 13.98 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/7.731, allocations: 2 kB / 3.248 GB, free: 13.98 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006719/7.732, allocations: 433.1 kB / 3.248 GB, free: 13.56 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001292/7.733, allocations: 187.3 kB / 3.249 GB, free: 13.38 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.492/8.225, allocations: 54.43 MB / 3.302 GB, free: 83.21 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004331/8.226, allocations: 0.9827 MB / 3.303 GB, free: 82.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002002/8.226, allocations: 49.66 kB / 3.303 GB, free: 82.49 MB / 490.7 MB Notification: Performance of SimCode: time 1.789e-06/8.226, allocations: 0 / 3.303 GB, free: 82.49 MB / 490.7 MB Notification: Performance of Templates: time 0.04645/8.272, allocations: 28.16 MB / 3.33 GB, free: 79.44 MB / 490.7 MB