Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.216/2.216, allocations: 209.2 MB / 225.4 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004301/0.0004302, allocations: 12 kB / 283.1 MB, free: 9.688 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3591/0.3595, allocations: 48.7 MB / 331.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.018/7.378, allocations: 2.485 GB / 2.809 GB, free: 38.95 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000295/7.378, allocations: 91.02 kB / 2.809 GB, free: 38.9 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.906/9.284, allocations: 390.5 MB / 3.191 GB, free: 6.008 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.084e-06/9.284, allocations: 0 / 3.191 GB, free: 6.008 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.211e-05/9.284, allocations: 14.89 kB / 3.191 GB, free: 5.996 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.006624/9.291, allocations: 1.556 MB / 3.192 GB, free: 4.402 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/9.291, allocations: 8.031 kB / 3.192 GB, free: 4.395 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003051/9.294, allocations: 269.4 kB / 3.193 GB, free: 4.133 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001279/9.295, allocations: 471 kB / 3.193 GB, free: 3.637 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.567e-05/9.295, allocations: 38.03 kB / 3.193 GB, free: 3.598 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.901e-05/9.295, allocations: 36 kB / 3.193 GB, free: 3.562 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00233/9.298, allocations: 0.6907 MB / 3.194 GB, free: 2.824 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.47e-05/9.298, allocations: 8.438 kB / 3.194 GB, free: 2.816 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.819e-05/9.298, allocations: 19.94 kB / 3.194 GB, free: 2.797 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.355e-05/9.298, allocations: 12.34 kB / 3.194 GB, free: 2.785 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002475/9.3, allocations: 0.6087 MB / 3.194 GB, free: 2.176 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.3365/9.637, allocations: 2.863 MB / 3.197 GB, free: 42.65 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002199/9.639, allocations: 458.2 kB / 3.198 GB, free: 42.63 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3614/10, allocations: 95.71 MB / 3.291 GB, free: 23.89 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.481e-05/10, allocations: 34.06 kB / 3.291 GB, free: 23.85 MB / 474.7 MB Notification: Performance of pre-optimization done (n=30): time 3.006e-06/10, allocations: 0 / 3.291 GB, free: 23.85 MB / 474.7 MB Notification: Performance of matching and sorting (n=30): time 0.004396/10.01, allocations: 0.9187 MB / 3.292 GB, free: 23.7 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.205e-05/10.01, allocations: 106.6 kB / 3.292 GB, free: 23.57 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005205/10.01, allocations: 351.1 kB / 3.293 GB, free: 23.47 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 7.773e-05/10.01, allocations: 40.23 kB / 3.293 GB, free: 23.43 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002032/10.01, allocations: 310.7 kB / 3.293 GB, free: 23.23 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/10.01, allocations: 100.6 kB / 3.293 GB, free: 23.18 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.183e-05/10.01, allocations: 11.5 kB / 3.293 GB, free: 23.18 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001452/10.01, allocations: 328.3 kB / 3.293 GB, free: 22.87 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005368/10.01, allocations: 137.3 kB / 3.293 GB, free: 22.86 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006036/10.01, allocations: 282.2 kB / 3.294 GB, free: 22.69 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005936/10.01, allocations: 162 kB / 3.294 GB, free: 22.68 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/10.01, allocations: 3.969 kB / 3.294 GB, free: 22.68 MB / 474.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001588/10.01, allocations: 483.2 kB / 3.294 GB, free: 22.63 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001645/10.01, allocations: 222.9 kB / 3.294 GB, free: 22.38 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/10.01, allocations: 3.75 kB / 3.295 GB, free: 22.38 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002968/10.01, allocations: 214.9 kB / 3.295 GB, free: 22.36 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006754/10.01, allocations: 98.41 kB / 3.295 GB, free: 22.36 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007658/10.01, allocations: 0.6015 MB / 3.295 GB, free: 21.84 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000657/10.02, allocations: 54.33 kB / 3.295 GB, free: 21.83 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.348e-05/10.02, allocations: 26.66 kB / 3.295 GB, free: 21.83 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/10.02, allocations: 3.75 kB / 3.295 GB, free: 21.83 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001339/10.02, allocations: 416.3 kB / 3.296 GB, free: 21.82 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/10.02, allocations: 9.812 kB / 3.296 GB, free: 21.82 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/10.02, allocations: 3.969 kB / 3.296 GB, free: 21.82 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007046/10.02, allocations: 116.4 kB / 3.296 GB, free: 21.82 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.438e-05/10.02, allocations: 14.42 kB / 3.296 GB, free: 21.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004745/10.02, allocations: 59.83 kB / 3.296 GB, free: 21.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.716e-05/10.02, allocations: 23.59 kB / 3.296 GB, free: 21.8 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 (45): * Single equations (assignments): 44 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004499/10.02, allocations: 251.8 kB / 3.296 GB, free: 21.61 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/10.02, allocations: 38.59 kB / 3.296 GB, free: 21.59 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003447/10.02, allocations: 1.993 MB / 3.298 GB, free: 21.37 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.539e-05/10.02, allocations: 38.3 kB / 3.298 GB, free: 21.36 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/10.02, allocations: 0 / 3.298 GB, free: 21.36 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-06/10.02, allocations: 0 / 3.298 GB, free: 21.36 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001539/10.02, allocations: 0.9908 MB / 3.299 GB, free: 21.14 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/10.02, allocations: 1.125 kB / 3.299 GB, free: 21.14 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005039/10.02, allocations: 60.89 kB / 3.299 GB, free: 21.14 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001964/10.03, allocations: 0.5983 MB / 3.3 GB, free: 21.09 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.934e-05/10.03, allocations: 11.73 kB / 3.3 GB, free: 21.09 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001075/10.03, allocations: 1.004 MB / 3.301 GB, free: 20.56 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/10.03, allocations: 0 / 3.301 GB, free: 20.56 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002212/10.03, allocations: 1.292 MB / 3.302 GB, free: 20.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004144/10.03, allocations: 253.2 kB / 3.302 GB, free: 20.16 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/10.03, allocations: 11.06 kB / 3.302 GB, free: 20.15 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004823/10.03, allocations: 30.92 kB / 3.302 GB, free: 20.15 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/10.03, allocations: 33.48 kB / 3.303 GB, free: 20.15 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.438e-05/10.03, allocations: 9.812 kB / 3.303 GB, free: 20.15 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004953/10.03, allocations: 308.4 kB / 3.303 GB, free: 20.06 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.1e-07/10.03, allocations: 0 / 3.303 GB, free: 20.06 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005836/10.04, allocations: 1.199 MB / 3.304 GB, free: 20.05 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 (33): * Single equations (assignments): 26 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01044/10.05, allocations: 1.595 MB / 3.306 GB, free: 19.86 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002504/10.05, allocations: 0.7919 MB / 3.306 GB, free: 19.84 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.279e-06/10.05, allocations: 1.125 kB / 3.306 GB, free: 19.84 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000938/10.05, allocations: 487.5 kB / 3.307 GB, free: 19.82 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001802/10.05, allocations: 225.8 kB / 3.307 GB, free: 19.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8393/10.89, allocations: 151.4 MB / 3.455 GB, free: 68.24 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004947/10.89, allocations: 1 MB / 3.456 GB, free: 67.53 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002141/10.89, allocations: 48.73 kB / 3.456 GB, free: 67.53 MB / 474.7 MB Notification: Performance of SimCode: time 1.282e-06/10.89, allocations: 0 / 3.456 GB, free: 67.53 MB / 474.7 MB Notification: Performance of Templates: time 0.06535/10.96, allocations: 31.66 MB / 3.487 GB, free: 60.34 MB / 474.7 MB