Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/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_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00272/0.00272, allocations: 362.6 kB / 15.95 MB, free: 6.203 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.904/3.904, allocations: 388.9 MB / 405.6 MB, free: 9.59 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003629/0.003628, allocations: 236.4 kB / 451 MB, free: 145 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5796/0.5796, allocations: 80.02 MB / 0.5627 GB, free: 19.77 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004811/0.0004813, allocations: 15.22 kB / 0.6265 GB, free: 96.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.101, allocations: 54.87 MB / 0.6801 GB, free: 41.66 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.827/7.928, allocations: 2.596 GB / 3.276 GB, free: 51.8 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003315/7.928, allocations: 89.27 kB / 3.276 GB, free: 51.75 MB / 490.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/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.99/9.918, allocations: 384 MB / 3.651 GB, free: 50.75 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.994e-06/9.918, allocations: 0 / 3.651 GB, free: 50.75 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.207e-05/9.918, allocations: 9.219 kB / 3.651 GB, free: 50.75 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.006831/9.925, allocations: 1.593 MB / 3.653 GB, free: 49.79 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/9.925, allocations: 7.031 kB / 3.653 GB, free: 49.79 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003239/9.929, allocations: 299.2 kB / 3.653 GB, free: 49.68 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001278/9.93, allocations: 471.7 kB / 3.654 GB, free: 49.29 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.572e-05/9.93, allocations: 36.73 kB / 3.654 GB, free: 49.27 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.765e-05/9.93, allocations: 35.19 kB / 3.654 GB, free: 49.25 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002384/9.932, allocations: 0.6854 MB / 3.654 GB, free: 48.82 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.661e-05/9.933, allocations: 7.875 kB / 3.654 GB, free: 48.81 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.492e-05/9.933, allocations: 15.88 kB / 3.654 GB, free: 48.8 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/9.933, allocations: 11.69 kB / 3.654 GB, free: 48.8 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002543/9.935, allocations: 0.6057 MB / 3.655 GB, free: 48.53 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.00429/9.939, allocations: 2.869 MB / 3.658 GB, free: 45.91 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002021/9.942, allocations: 457.1 kB / 3.658 GB, free: 45.69 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005767/9.942, allocations: 175.7 kB / 3.658 GB, free: 45.61 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.7235/10.67, allocations: 95.8 MB / 3.752 GB, free: 62.7 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.639e-05/10.67, allocations: 33 kB / 3.752 GB, free: 62.66 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=30): time 3.166e-06/10.67, allocations: 0 / 3.752 GB, free: 62.66 MB / 0.4949 GB Notification: Performance of matching and sorting (n=30): time 0.004452/10.67, allocations: 0.9255 MB / 3.753 GB, free: 62.51 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/10.67, allocations: 106.8 kB / 3.753 GB, free: 62.39 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004895/10.67, allocations: 347.1 kB / 3.753 GB, free: 62.28 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 4.09e-05/10.67, allocations: 37.55 kB / 3.753 GB, free: 62.24 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001744/10.67, allocations: 265.3 kB / 3.754 GB, free: 62.12 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/10.67, allocations: 105.9 kB / 3.754 GB, free: 62.07 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.07e-05/10.67, allocations: 6.875 kB / 3.754 GB, free: 62.07 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 9.223e-05/10.67, allocations: 350.3 kB / 3.754 GB, free: 61.76 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005156/10.67, allocations: 133.2 kB / 3.754 GB, free: 61.75 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006044/10.67, allocations: 287.8 kB / 3.754 GB, free: 61.57 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005934/10.67, allocations: 172.1 kB / 3.755 GB, free: 61.56 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/10.67, allocations: 3.781 kB / 3.755 GB, free: 61.56 MB / 0.4949 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001665/10.67, allocations: 0.4996 MB / 3.755 GB, free: 61.49 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001307/10.67, allocations: 219.8 kB / 3.755 GB, free: 61.25 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/10.67, allocations: 4.625 kB / 3.755 GB, free: 61.25 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002945/10.68, allocations: 210.7 kB / 3.756 GB, free: 61.23 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006477/10.68, allocations: 95.5 kB / 3.756 GB, free: 61.23 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005951/10.68, allocations: 0.5985 MB / 3.756 GB, free: 60.71 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006382/10.68, allocations: 66.02 kB / 3.756 GB, free: 60.7 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.506e-05/10.68, allocations: 24.02 kB / 3.756 GB, free: 60.7 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 9.859e-06/10.68, allocations: 3.125 kB / 3.756 GB, free: 60.7 MB / 0.4949 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00132/10.68, allocations: 411.6 kB / 3.757 GB, free: 60.69 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/10.68, allocations: 3.781 kB / 3.757 GB, free: 60.69 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/10.68, allocations: 8.719 kB / 3.757 GB, free: 60.69 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007001/10.68, allocations: 111 kB / 3.757 GB, free: 60.69 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/10.68, allocations: 16.88 kB / 3.757 GB, free: 60.68 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005412/10.68, allocations: 46.59 kB / 3.757 GB, free: 60.68 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.866e-05/10.68, allocations: 26.45 kB / 3.757 GB, free: 60.68 MB / 0.4949 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 (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.0003539/10.68, allocations: 257.4 kB / 3.757 GB, free: 60.48 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/10.68, allocations: 43.52 kB / 3.757 GB, free: 60.46 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003363/10.69, allocations: 1.985 MB / 3.759 GB, free: 60.26 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.679e-05/10.69, allocations: 35.44 kB / 3.759 GB, free: 60.25 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.355e-06/10.69, allocations: 1.125 kB / 3.759 GB, free: 60.25 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/10.69, allocations: 0 / 3.759 GB, free: 60.25 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001526/10.69, allocations: 0.9884 MB / 3.76 GB, free: 60.03 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.636e-06/10.69, allocations: 3.094 kB / 3.76 GB, free: 60.03 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005437/10.69, allocations: 63.17 kB / 3.76 GB, free: 60.03 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00212/10.69, allocations: 0.5989 MB / 3.761 GB, free: 59.98 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.697e-05/10.69, allocations: 6.75 kB / 3.761 GB, free: 59.98 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001031/10.69, allocations: 0.9991 MB / 3.762 GB, free: 59.45 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/10.69, allocations: 3.719 kB / 3.762 GB, free: 59.45 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002445/10.69, allocations: 1.308 MB / 3.763 GB, free: 59.19 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004998/10.7, allocations: 243.7 kB / 3.763 GB, free: 59.05 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001018/10.7, allocations: 8 kB / 3.763 GB, free: 59.05 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005037/10.7, allocations: 38.62 kB / 3.763 GB, free: 59.05 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/10.7, allocations: 33.17 kB / 3.763 GB, free: 59.04 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.775e-05/10.7, allocations: 18.75 kB / 3.763 GB, free: 59.04 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.0004758/10.7, allocations: 307.4 kB / 3.764 GB, free: 58.95 MB / 0.4949 GB Notification: Performance of sort global known variables: time 5.01e-07/10.7, allocations: 0 / 3.764 GB, free: 58.95 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.006121/10.7, allocations: 1.208 MB / 3.765 GB, free: 58.94 MB / 0.4949 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 (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.01022/10.71, allocations: 1.596 MB / 3.766 GB, free: 58.75 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.002527/10.72, allocations: 0.792 MB / 3.767 GB, free: 58.73 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/10.72, allocations: 4.938 kB / 3.767 GB, free: 58.73 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.000926/10.72, allocations: 485.9 kB / 3.768 GB, free: 58.72 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002038/10.72, allocations: 212.3 kB / 3.768 GB, free: 58.71 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2083/10.93, allocations: 84.42 MB / 3.85 GB, free: 50.54 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004895/10.93, allocations: 1.001 MB / 3.851 GB, free: 49.62 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.001346/10.93, allocations: 0.5252 MB / 3.852 GB, free: 49.31 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/10.93, allocations: 46.25 kB / 3.852 GB, free: 49.27 MB / 0.4949 GB Notification: Performance of SimCode: time 1.372e-06/10.93, allocations: 0 / 3.852 GB, free: 49.27 MB / 0.4949 GB Notification: Performance of Templates: time 0.07615/11.01, allocations: 38.12 MB / 3.889 GB, free: 15.49 MB / 0.4949 GB