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.Sensors.TestFlowRate.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadModel(ModelicaTest): time 1.825/1.825, allocations: 209.2 MB / 224.8 MB, free: 212 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004423/0.0004424, allocations: 8 kB / 282.6 MB, free: 9.574 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2882, allocations: 48.7 MB / 331.3 MB, free: 6.512 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.771/6.059, allocations: 2.485 GB / 2.809 GB, free: 54.57 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002143/6.06, allocations: 89.55 kB / 2.809 GB, free: 54.49 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1/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.514/7.574, allocations: 390.5 MB / 3.19 GB, free: 2.805 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.215e-06/7.574, allocations: 0 / 3.19 GB, free: 2.805 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.914e-05/7.574, allocations: 12 kB / 3.19 GB, free: 2.793 MB / 442.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.005526/7.579, allocations: 1.553 MB / 3.192 GB, free: 1.199 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/7.58, allocations: 8.031 kB / 3.192 GB, free: 1.191 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002912/7.582, allocations: 277.2 kB / 3.192 GB, free: 0.9219 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001203/7.584, allocations: 470.8 kB / 3.193 GB, free: 432 kB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.728e-05/7.584, allocations: 29.52 kB / 3.193 GB, free: 404 kB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.237e-05/7.584, allocations: 36 kB / 3.193 GB, free: 368 kB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2659/7.85, allocations: 0.6905 MB / 3.193 GB, free: 45.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.734e-05/7.85, allocations: 3.906 kB / 3.193 GB, free: 45.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.416e-05/7.85, allocations: 18.31 kB / 3.193 GB, free: 45.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.255e-05/7.85, allocations: 10.81 kB / 3.193 GB, free: 45.8 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002243/7.852, allocations: 0.6064 MB / 3.194 GB, free: 45.8 MB / 442.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.003781/7.856, allocations: 2.868 MB / 3.197 GB, free: 43.91 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00179/7.858, allocations: 458.4 kB / 3.197 GB, free: 43.88 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.237/8.095, allocations: 95.7 MB / 3.291 GB, free: 25.02 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.139e-05/8.095, allocations: 34.38 kB / 3.291 GB, free: 24.98 MB / 474.7 MB Notification: Performance of pre-optimization done (n=30): time 3.685e-06/8.095, allocations: 0 / 3.291 GB, free: 24.98 MB / 474.7 MB Notification: Performance of matching and sorting (n=30): time 0.003606/8.099, allocations: 0.9035 MB / 3.292 GB, free: 24.8 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.168e-05/8.099, allocations: 109.4 kB / 3.292 GB, free: 24.68 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004362/8.099, allocations: 312.4 kB / 3.292 GB, free: 24.57 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 5.186e-05/8.099, allocations: 33.2 kB / 3.292 GB, free: 24.54 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000187/8.099, allocations: 314.9 kB / 3.292 GB, free: 24.33 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.318e-05/8.099, allocations: 108 kB / 3.292 GB, free: 24.28 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.612e-05/8.1, allocations: 3 kB / 3.292 GB, free: 24.28 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000163/8.1, allocations: 329.3 kB / 3.293 GB, free: 23.96 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004068/8.1, allocations: 128.5 kB / 3.293 GB, free: 23.96 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004632/8.101, allocations: 288.9 kB / 3.293 GB, free: 23.79 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004672/8.101, allocations: 169.7 kB / 3.293 GB, free: 23.78 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/8.101, allocations: 0 / 3.293 GB, free: 23.78 MB / 474.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001295/8.102, allocations: 480.4 kB / 3.294 GB, free: 23.73 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008132/8.103, allocations: 1.741 MB / 3.295 GB, free: 21.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/8.103, allocations: 9 kB / 3.295 GB, free: 21.89 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001956/8.105, allocations: 211.5 kB / 3.296 GB, free: 21.88 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004679/8.106, allocations: 94.77 kB / 3.296 GB, free: 21.88 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006512/8.106, allocations: 0.5964 MB / 3.296 GB, free: 21.36 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005403/8.107, allocations: 62.44 kB / 3.296 GB, free: 21.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.134e-05/8.107, allocations: 22.22 kB / 3.296 GB, free: 21.34 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/8.107, allocations: 5.875 kB / 3.296 GB, free: 21.34 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001086/8.108, allocations: 414.6 kB / 3.297 GB, free: 21.33 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.877e-06/8.108, allocations: 7.219 kB / 3.297 GB, free: 21.33 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/8.108, allocations: 7.219 kB / 3.297 GB, free: 21.33 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004574/8.109, allocations: 107 kB / 3.297 GB, free: 21.33 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/8.109, allocations: 9.094 kB / 3.297 GB, free: 21.33 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003868/8.109, allocations: 55.86 kB / 3.297 GB, free: 21.32 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.642e-05/8.109, allocations: 21.67 kB / 3.297 GB, free: 21.32 MB / 474.7 MB 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.0003996/8.11, allocations: 254.1 kB / 3.297 GB, free: 21.13 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/8.11, allocations: 46.08 kB / 3.297 GB, free: 21.11 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00277/8.112, allocations: 1.982 MB / 3.299 GB, free: 20.89 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.111e-05/8.113, allocations: 31.48 kB / 3.299 GB, free: 20.89 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.668e-06/8.113, allocations: 3.812 kB / 3.299 GB, free: 20.89 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.602e-06/8.113, allocations: 2.766 kB / 3.299 GB, free: 20.89 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001283/8.114, allocations: 0.9935 MB / 3.3 GB, free: 20.66 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/8.114, allocations: 4 kB / 3.3 GB, free: 20.66 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003956/8.114, allocations: 64.47 kB / 3.3 GB, free: 20.66 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001666/8.116, allocations: 0.574 MB / 3.301 GB, free: 20.61 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.868e-05/8.116, allocations: 15.2 kB / 3.301 GB, free: 20.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009837/8.117, allocations: 0.9962 MB / 3.302 GB, free: 20.07 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.632e-06/8.117, allocations: 0 / 3.302 GB, free: 20.07 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001922/8.119, allocations: 1.302 MB / 3.303 GB, free: 19.81 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003706/8.119, allocations: 240.1 kB / 3.303 GB, free: 19.68 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.359e-05/8.119, allocations: 3.938 kB / 3.303 GB, free: 19.68 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004001/8.12, allocations: 46.25 kB / 3.303 GB, free: 19.67 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.582e-05/8.12, allocations: 33.19 kB / 3.303 GB, free: 19.67 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.153e-05/8.12, allocations: 7.125 kB / 3.303 GB, free: 19.67 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004473/8.121, allocations: 309.2 kB / 3.304 GB, free: 19.57 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.1e-07/8.121, allocations: 0 / 3.304 GB, free: 19.57 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004619/8.125, allocations: 1.197 MB / 3.305 GB, free: 19.56 MB / 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 ($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.007796/8.133, allocations: 1.606 MB / 3.306 GB, free: 19.37 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001988/8.135, allocations: 0.7867 MB / 3.307 GB, free: 19.35 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.587e-06/8.135, allocations: 0 / 3.307 GB, free: 19.35 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007877/8.136, allocations: 480.7 kB / 3.308 GB, free: 19.34 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001266/8.137, allocations: 207 kB / 3.308 GB, free: 19.32 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5886/8.726, allocations: 150.4 MB / 3.455 GB, free: 68.28 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004628/8.726, allocations: 0.9992 MB / 3.456 GB, free: 67.56 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001642/8.726, allocations: 48.09 kB / 3.456 GB, free: 67.56 MB / 474.7 MB Notification: Performance of SimCode: time 1.578e-06/8.727, allocations: 0 / 3.456 GB, free: 67.56 MB / 474.7 MB Notification: Performance of Templates: time 0.0463/8.773, allocations: 31.67 MB / 3.487 GB, free: 56.19 MB / 474.7 MB