Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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.1_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002708/0.002706, allocations: 350.2 kB / 15.94 MB, free: 6.215 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.905/3.905, allocations: 341.5 MB / 358.2 MB, free: 12.62 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003568/0.003568, allocations: 225.5 kB / 397.9 MB, free: 4.98 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4783/0.4783, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004789/0.0004792, allocations: 16 kB / 0.5592 GB, free: 53.47 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08993/0.09043, allocations: 48.7 MB / 0.6067 GB, free: 4.66 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.52/7.611, allocations: 2.485 GB / 3.092 GB, free: 45.28 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/7.611, allocations: 89.2 kB / 3.092 GB, free: 45.23 MB / 442.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+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.893/9.504, allocations: 376.3 MB / 3.46 GB, free: 23.9 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.385e-06/9.504, allocations: 0 / 3.46 GB, free: 23.9 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.777e-05/9.504, allocations: 8 kB / 3.46 GB, free: 23.89 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.006501/9.51, allocations: 1.556 MB / 3.461 GB, free: 22.32 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/9.511, allocations: 12.03 kB / 3.461 GB, free: 22.31 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003108/9.514, allocations: 273.6 kB / 3.461 GB, free: 22.05 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001243/9.515, allocations: 474.8 kB / 3.462 GB, free: 21.55 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.154e-05/9.515, allocations: 33.69 kB / 3.462 GB, free: 21.52 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.607e-05/9.515, allocations: 36 kB / 3.462 GB, free: 21.48 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00233/9.517, allocations: 0.687 MB / 3.463 GB, free: 20.76 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.444e-05/9.518, allocations: 3.938 kB / 3.463 GB, free: 20.75 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.04e-05/9.518, allocations: 23.42 kB / 3.463 GB, free: 20.73 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/9.518, allocations: 15.95 kB / 3.463 GB, free: 20.72 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00246/9.52, allocations: 0.6087 MB / 3.463 GB, free: 20.12 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.004144/9.524, allocations: 2.864 MB / 3.466 GB, free: 17.06 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002009/9.526, allocations: 461.6 kB / 3.467 GB, free: 16.61 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005745/9.527, allocations: 164.8 kB / 3.467 GB, free: 16.44 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6907/10.22, allocations: 95.71 MB / 3.56 GB, free: 20.72 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.646e-05/10.22, allocations: 30.56 kB / 3.56 GB, free: 20.68 MB / 458.7 MB Notification: Performance of pre-optimization done (n=30): time 2.925e-06/10.22, allocations: 0 / 3.56 GB, free: 20.68 MB / 458.7 MB Notification: Performance of matching and sorting (n=30): time 0.004416/10.22, allocations: 0.9144 MB / 3.561 GB, free: 20.54 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.954e-05/10.22, allocations: 110 kB / 3.561 GB, free: 20.41 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005037/10.22, allocations: 351.9 kB / 3.562 GB, free: 20.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.264e-05/10.22, allocations: 35.02 kB / 3.562 GB, free: 20.27 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001866/10.22, allocations: 264.1 kB / 3.562 GB, free: 20.15 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.651e-05/10.22, allocations: 104.4 kB / 3.562 GB, free: 20.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.979e-05/10.22, allocations: 7.688 kB / 3.562 GB, free: 20.1 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001427/10.22, allocations: 352.7 kB / 3.562 GB, free: 19.79 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005254/10.22, allocations: 138.7 kB / 3.562 GB, free: 19.78 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005937/10.22, allocations: 285.7 kB / 3.563 GB, free: 19.6 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000577/10.23, allocations: 162.3 kB / 3.563 GB, free: 19.59 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/10.23, allocations: 0 / 3.563 GB, free: 19.59 MB / 458.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001583/10.23, allocations: 0.5003 MB / 3.563 GB, free: 19.52 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000161/10.23, allocations: 225.9 kB / 3.564 GB, free: 19.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/10.23, allocations: 3.719 kB / 3.564 GB, free: 19.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002933/10.23, allocations: 211.1 kB / 3.564 GB, free: 19.26 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006555/10.23, allocations: 100.6 kB / 3.564 GB, free: 19.26 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000678/10.23, allocations: 0.5942 MB / 3.564 GB, free: 18.74 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006434/10.23, allocations: 60.52 kB / 3.564 GB, free: 18.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.824e-05/10.23, allocations: 31.23 kB / 3.564 GB, free: 18.72 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.04e-05/10.23, allocations: 3.969 kB / 3.564 GB, free: 18.72 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001329/10.23, allocations: 406.6 kB / 3.565 GB, free: 18.72 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/10.23, allocations: 3.75 kB / 3.565 GB, free: 18.72 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/10.23, allocations: 11.73 kB / 3.565 GB, free: 18.71 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007026/10.23, allocations: 116.6 kB / 3.565 GB, free: 18.71 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.351e-05/10.23, allocations: 14.09 kB / 3.565 GB, free: 18.71 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005371/10.23, allocations: 54.75 kB / 3.565 GB, free: 18.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.09e-05/10.23, allocations: 26.98 kB / 3.565 GB, free: 18.7 MB / 458.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.0004136/10.24, allocations: 250.5 kB / 3.565 GB, free: 18.51 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/10.24, allocations: 45.27 kB / 3.565 GB, free: 18.49 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003326/10.24, allocations: 1.999 MB / 3.567 GB, free: 18.28 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.258e-05/10.24, allocations: 23.8 kB / 3.567 GB, free: 18.28 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/10.24, allocations: 0 / 3.567 GB, free: 18.28 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/10.24, allocations: 3.422 kB / 3.567 GB, free: 18.28 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001507/10.24, allocations: 0.9904 MB / 3.568 GB, free: 18.05 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/10.24, allocations: 1.5 kB / 3.568 GB, free: 18.05 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005078/10.24, allocations: 66.89 kB / 3.568 GB, free: 18.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001966/10.24, allocations: 0.5865 MB / 3.569 GB, free: 18.01 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.176e-05/10.24, allocations: 10.25 kB / 3.569 GB, free: 18.01 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001038/10.24, allocations: 0.9997 MB / 3.57 GB, free: 17.48 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/10.24, allocations: 6.5 kB / 3.57 GB, free: 17.47 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002242/10.25, allocations: 1.302 MB / 3.571 GB, free: 17.21 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004049/10.25, allocations: 245.7 kB / 3.571 GB, free: 17.07 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.87e-05/10.25, allocations: 10.59 kB / 3.571 GB, free: 17.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000505/10.25, allocations: 35.31 kB / 3.571 GB, free: 17.07 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/10.25, allocations: 26.2 kB / 3.572 GB, free: 17.07 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.774e-05/10.25, allocations: 14.8 kB / 3.572 GB, free: 17.07 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0004848/10.25, allocations: 305.5 kB / 3.572 GB, free: 16.98 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.61e-07/10.25, allocations: 3.969 kB / 3.572 GB, free: 16.98 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005675/10.25, allocations: 1.202 MB / 3.573 GB, free: 16.96 MB / 458.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.01003/10.26, allocations: 1.608 MB / 3.575 GB, free: 16.76 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002513/10.27, allocations: 0.791 MB / 3.575 GB, free: 16.74 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/10.27, allocations: 4.25 kB / 3.575 GB, free: 16.74 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009646/10.27, allocations: 490.4 kB / 3.576 GB, free: 16.73 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001986/10.27, allocations: 211 kB / 3.576 GB, free: 16.72 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5357/10.81, allocations: 83.96 MB / 3.658 GB, free: 60.96 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005527/10.81, allocations: 1.001 MB / 3.659 GB, free: 60.26 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001627/10.81, allocations: 0.5204 MB / 3.66 GB, free: 60.25 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001937/10.81, allocations: 43.55 kB / 3.66 GB, free: 60.25 MB / 458.7 MB Notification: Performance of SimCode: time 1.633e-06/10.81, allocations: 2.156 kB / 3.66 GB, free: 60.25 MB / 458.7 MB Notification: Performance of Templates: time 0.08453/10.89, allocations: 37.87 MB / 3.697 GB, free: 59.7 MB / 458.7 MB