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.Sensors.TestFlowRate.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.Sensors.TestFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.m_flow|volumeFlowRate.V_flow|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadModel(ModelicaTest): time 2.1/2.1, allocations: 234.9 MB / 250.5 MB, free: 9.539 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004412/0.0004414, allocations: 12 kB / 314.4 MB, free: 9.527 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2774/0.2779, allocations: 54.85 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.177/6.455, allocations: 2.596 GB / 2.957 GB, free: 119.6 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002541/6.455, allocations: 86.52 kB / 2.957 GB, free: 119.6 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 1.596/8.051, allocations: 400.3 MB / 3.348 GB, free: 63.53 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.586e-06/8.051, allocations: 0 / 3.348 GB, free: 63.53 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.963e-05/8.051, allocations: 16.92 kB / 3.348 GB, free: 63.53 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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.00526/8.057, allocations: 1.587 MB / 3.349 GB, free: 62.66 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/8.057, allocations: 10.97 kB / 3.349 GB, free: 62.66 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002859/8.06, allocations: 296.3 kB / 3.35 GB, free: 62.61 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/8.061, allocations: 468.6 kB / 3.35 GB, free: 62.29 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.368e-05/8.061, allocations: 38.64 kB / 3.35 GB, free: 62.27 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.966e-05/8.061, allocations: 36.66 kB / 3.35 GB, free: 62.26 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001956/8.063, allocations: 0.6908 MB / 3.351 GB, free: 61.95 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/8.063, allocations: 0 / 3.351 GB, free: 61.95 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.762e-05/8.063, allocations: 22.03 kB / 3.351 GB, free: 61.94 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/8.063, allocations: 9.375 kB / 3.351 GB, free: 61.94 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002087/8.065, allocations: 0.6105 MB / 3.351 GB, free: 61.79 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.003405/8.068, allocations: 2.867 MB / 3.354 GB, free: 59.48 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001731/8.07, allocations: 461.3 kB / 3.355 GB, free: 59.35 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2313/8.302, allocations: 95.82 MB / 3.448 GB, free: 6.488 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.492e-05/8.302, allocations: 34.56 kB / 3.448 GB, free: 6.445 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=30): time 3.162e-06/8.302, allocations: 3.938 kB / 3.448 GB, free: 6.441 MB / 0.4948 GB Notification: Performance of matching and sorting (n=30): time 0.003515/8.305, allocations: 0.8937 MB / 3.449 GB, free: 5.691 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.819e-05/8.305, allocations: 110.8 kB / 3.449 GB, free: 5.559 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004186/8.306, allocations: 310.4 kB / 3.45 GB, free: 5.289 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.596e-05/8.306, allocations: 29.7 kB / 3.45 GB, free: 5.254 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001815/8.306, allocations: 315.7 kB / 3.45 GB, free: 4.957 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 7.997e-05/8.306, allocations: 108 kB / 3.45 GB, free: 4.863 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.565e-05/8.306, allocations: 8 kB / 3.45 GB, free: 4.855 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001592/8.306, allocations: 330.3 kB / 3.45 GB, free: 4.531 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003953/8.307, allocations: 125.5 kB / 3.45 GB, free: 4.43 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000453/8.307, allocations: 286.4 kB / 3.451 GB, free: 4.113 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004453/8.308, allocations: 175.7 kB / 3.451 GB, free: 3.961 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.841e-06/8.308, allocations: 0 / 3.451 GB, free: 3.961 MB / 0.4948 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001288/8.309, allocations: 480 kB / 3.451 GB, free: 3.531 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008173/8.31, allocations: 1.744 MB / 3.453 GB, free: 1.656 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/8.31, allocations: 8 kB / 3.453 GB, free: 1.648 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001983/8.312, allocations: 203.5 kB / 3.453 GB, free: 1.508 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000486/8.312, allocations: 98.75 kB / 3.453 GB, free: 1.426 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000684/8.313, allocations: 0.5863 MB / 3.454 GB, free: 0.8281 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005376/8.314, allocations: 67.02 kB / 3.454 GB, free: 0.7695 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.723e-05/8.314, allocations: 20 kB / 3.454 GB, free: 0.75 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/8.314, allocations: 4 kB / 3.454 GB, free: 0.7461 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001182/8.315, allocations: 412.1 kB / 3.454 GB, free: 400 kB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/8.315, allocations: 4 kB / 3.454 GB, free: 396 kB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/8.315, allocations: 8 kB / 3.454 GB, free: 388 kB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004916/8.315, allocations: 106.5 kB / 3.455 GB, free: 300 kB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.444e-05/8.315, allocations: 11.94 kB / 3.455 GB, free: 288 kB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003643/8.316, allocations: 62.25 kB / 3.455 GB, free: 236 kB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.045e-05/8.316, allocations: 20 kB / 3.455 GB, free: 216 kB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (boundary_fixed.medium.phase,massFlowRate1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.2884/8.604, allocations: 249.7 kB / 3.455 GB, free: 79.98 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/8.604, allocations: 37.59 kB / 3.455 GB, free: 79.98 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00382/8.608, allocations: 1.987 MB / 3.457 GB, free: 79.84 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.829e-05/8.608, allocations: 28.09 kB / 3.457 GB, free: 79.84 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.129e-06/8.608, allocations: 4.266 kB / 3.457 GB, free: 79.84 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/8.608, allocations: 2.062 kB / 3.457 GB, free: 79.84 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001572/8.61, allocations: 0.9934 MB / 3.458 GB, free: 79.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7e-06/8.61, allocations: 1.766 kB / 3.458 GB, free: 79.62 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004346/8.61, allocations: 66.89 kB / 3.458 GB, free: 79.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001839/8.612, allocations: 0.579 MB / 3.458 GB, free: 79.58 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.711e-05/8.612, allocations: 7.453 kB / 3.458 GB, free: 79.58 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000938/8.613, allocations: 0.9926 MB / 3.459 GB, free: 79.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.171e-06/8.613, allocations: 1.672 kB / 3.459 GB, free: 79.05 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002159/8.616, allocations: 1.295 MB / 3.461 GB, free: 78.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003509/8.616, allocations: 248.1 kB / 3.461 GB, free: 78.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.666e-05/8.616, allocations: 14.78 kB / 3.461 GB, free: 78.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004254/8.616, allocations: 29.05 kB / 3.461 GB, free: 78.66 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.551e-05/8.617, allocations: 35.16 kB / 3.461 GB, free: 78.66 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.449e-05/8.617, allocations: 12.03 kB / 3.461 GB, free: 78.66 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0004502/8.617, allocations: 306.4 kB / 3.461 GB, free: 78.57 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.89e-07/8.617, allocations: 0 / 3.461 GB, free: 78.57 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004803/8.622, allocations: 1.203 MB / 3.463 GB, free: 78.55 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,massFlowRate1.medium.phase,boundary_fixed.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.007458/8.629, allocations: 1.6 MB / 3.464 GB, free: 78.4 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002069/8.632, allocations: 0.7843 MB / 3.465 GB, free: 78.39 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.939e-06/8.632, allocations: 3.844 kB / 3.465 GB, free: 78.39 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0007938/8.632, allocations: 484.9 kB / 3.465 GB, free: 78.38 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001279/8.634, allocations: 212.5 kB / 3.466 GB, free: 78.38 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3277/8.961, allocations: 152.8 MB / 3.615 GB, free: 29.17 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004442/8.962, allocations: 0.999 MB / 3.616 GB, free: 28.25 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001662/8.962, allocations: 51.14 kB / 3.616 GB, free: 28.2 MB / 0.4948 GB Notification: Performance of SimCode: time 1.769e-06/8.962, allocations: 0 / 3.616 GB, free: 28.2 MB / 0.4948 GB Notification: Performance of Templates: time 0.3418/9.304, allocations: 31.81 MB / 3.647 GB, free: 76.07 MB / 0.4948 GB