Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.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.TestDensity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|density2_1.d|density2_2.d|density1_1.d|density1_2.d|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002696/0.002695, allocations: 346.5 kB / 15.93 MB, free: 6.223 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.533/3.533, 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.003491/0.003491, allocations: 222.1 kB / 397.9 MB, free: 4.969 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.4993/0.4993, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006541/0.0006544, allocations: 12 kB / 0.5592 GB, free: 53.45 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1022, allocations: 48.7 MB / 0.6067 GB, free: 4.637 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.657/7.759, allocations: 2.486 GB / 3.093 GB, free: 43.83 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00035/7.759, allocations: 94.02 kB / 3.093 GB, free: 43.78 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 .... [/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 3.388/11.15, allocations: 0.6189 GB / 3.712 GB, free: 37.12 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.645e-06/11.15, allocations: 0 / 3.712 GB, free: 37.12 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001/11.15, allocations: 21.73 kB / 3.712 GB, free: 37.12 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.009868/11.16, allocations: 2.199 MB / 3.714 GB, free: 36.09 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/11.16, allocations: 8.062 kB / 3.714 GB, free: 36.09 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00744/11.16, allocations: 0.5333 MB / 3.715 GB, free: 36.04 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002404/11.17, allocations: 0.6939 MB / 3.716 GB, free: 35.77 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/11.17, allocations: 69.66 kB / 3.716 GB, free: 35.76 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002202/11.17, allocations: 74.31 kB / 3.716 GB, free: 35.76 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005597/11.17, allocations: 1.368 MB / 3.717 GB, free: 35.49 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.77e-05/11.17, allocations: 5.594 kB / 3.717 GB, free: 35.49 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001892/11.17, allocations: 45.62 kB / 3.717 GB, free: 35.49 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.294e-05/11.17, allocations: 19.84 kB / 3.717 GB, free: 35.49 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005948/11.18, allocations: 1.234 MB / 3.718 GB, free: 35.48 MB / 458.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.009219/11.19, allocations: 5.47 MB / 3.724 GB, free: 31.89 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004281/11.19, allocations: 0.8578 MB / 3.724 GB, free: 31.84 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001109/11.19, allocations: 291.5 kB / 3.725 GB, free: 31.82 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.241/11.44, allocations: 60.13 MB / 3.783 GB, free: 18.28 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.102e-05/11.44, allocations: 41.81 kB / 3.784 GB, free: 18.24 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001148/11.44, allocations: 123.5 kB / 3.784 GB, free: 18.2 MB / 474.7 MB Notification: Performance of pre-optimization done (n=58): time 4.108e-06/11.44, allocations: 0 / 3.784 GB, free: 18.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=58): time 0.008276/11.44, allocations: 1.596 MB / 3.785 GB, free: 17.9 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/11.44, allocations: 190.4 kB / 3.785 GB, free: 17.68 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008903/11.45, allocations: 0.5429 MB / 3.786 GB, free: 17.54 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001433/11.45, allocations: 35.8 kB / 3.786 GB, free: 17.51 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003316/11.45, allocations: 430.4 kB / 3.786 GB, free: 17.27 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002189/11.45, allocations: 201.4 kB / 3.787 GB, free: 17.15 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.334e-05/11.45, allocations: 15.88 kB / 3.787 GB, free: 17.15 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001813/11.45, allocations: 373.6 kB / 3.787 GB, free: 16.84 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001036/11.45, allocations: 230.8 kB / 3.787 GB, free: 16.83 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001169/11.45, allocations: 0.5417 MB / 3.788 GB, free: 16.43 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/11.45, allocations: 301.6 kB / 3.788 GB, free: 16.42 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.957e-06/11.45, allocations: 4.469 kB / 3.788 GB, free: 16.42 MB / 474.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003101/11.45, allocations: 0.8826 MB / 3.789 GB, free: 16.32 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002354/11.45, allocations: 389.1 kB / 3.789 GB, free: 15.86 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.616e-05/11.45, allocations: 9.688 kB / 3.789 GB, free: 15.86 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005626/11.46, allocations: 389.8 kB / 3.79 GB, free: 15.83 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001441/11.46, allocations: 195.7 kB / 3.79 GB, free: 15.83 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001245/11.46, allocations: 1.14 MB / 3.791 GB, free: 14.79 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/11.46, allocations: 63.88 kB / 3.791 GB, free: 14.78 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001167/11.46, allocations: 46.64 kB / 3.791 GB, free: 14.78 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/11.46, allocations: 3.062 kB / 3.791 GB, free: 14.78 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002617/11.47, allocations: 0.7552 MB / 3.792 GB, free: 14.76 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/11.47, allocations: 14.94 kB / 3.792 GB, free: 14.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/11.47, allocations: 14.62 kB / 3.792 GB, free: 14.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001366/11.47, allocations: 215.1 kB / 3.792 GB, free: 14.75 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.242e-05/11.47, allocations: 19.91 kB / 3.792 GB, free: 14.75 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/11.47, allocations: 63.09 kB / 3.792 GB, free: 14.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.91e-05/11.47, allocations: 48.42 kB / 3.792 GB, free: 14.75 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 8 (boundary_fixed1.medium.phase,boundary_fixed.medium.phase,massFlowRate1.medium.phase,massFlowRate2.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,simpleGenericOrifice1.state_b.phase,simpleGenericOrifice1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 94 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0006797/11.47, allocations: 331.1 kB / 3.792 GB, free: 14.54 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001956/11.47, allocations: 76.06 kB / 3.792 GB, free: 14.51 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006212/11.48, allocations: 3.555 MB / 3.796 GB, free: 14.05 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.606e-05/11.48, allocations: 50.5 kB / 3.796 GB, free: 14.04 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.978e-06/11.48, allocations: 0 / 3.796 GB, free: 14.04 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.627e-05/11.48, allocations: 3.844 kB / 3.796 GB, free: 14.04 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002698/11.48, allocations: 1.701 MB / 3.798 GB, free: 13.74 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-06/11.48, allocations: 0 / 3.798 GB, free: 13.74 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001013/11.48, allocations: 127.9 kB / 3.798 GB, free: 13.74 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003234/11.48, allocations: 0.7726 MB / 3.799 GB, free: 13.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001085/11.48, allocations: 22.34 kB / 3.799 GB, free: 13.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00145/11.48, allocations: 1.543 MB / 3.8 GB, free: 12.64 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/11.48, allocations: 0 / 3.8 GB, free: 12.64 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003767/11.49, allocations: 2.039 MB / 3.802 GB, free: 12.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007616/11.49, allocations: 416.9 kB / 3.802 GB, free: 11.96 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001925/11.49, allocations: 20.44 kB / 3.802 GB, free: 11.96 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000935/11.49, allocations: 48.83 kB / 3.803 GB, free: 11.96 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/11.49, allocations: 58.66 kB / 3.803 GB, free: 11.96 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.822e-05/11.49, allocations: 23.97 kB / 3.803 GB, free: 11.96 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0009731/11.49, allocations: 0.5339 MB / 3.803 GB, free: 11.84 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.11e-07/11.49, allocations: 0 / 3.803 GB, free: 11.84 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006485/11.5, allocations: 1.32 MB / 3.804 GB, free: 11.66 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 28 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,massFlowRate2.medium.phase,boundary_fixed1.medium.phase,$cse13.phase,$cse13.region,$cse17.phase,$cse17.region,$cse20.phase,$cse20.region,$cse22.region3boundary,$cse23.region3boundary,$cse24.phase,$cse24.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.009487/11.51, allocations: 1.745 MB / 3.806 GB, free: 11.24 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004481/11.51, allocations: 1.401 MB / 3.807 GB, free: 11.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/11.51, allocations: 7.062 kB / 3.807 GB, free: 11.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001726/11.51, allocations: 0.8237 MB / 3.808 GB, free: 11.19 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003421/11.52, allocations: 376.6 kB / 3.809 GB, free: 11.16 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.478/13, allocations: 278.9 MB / 4.081 GB, free: 45.45 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008306/13, allocations: 1.293 MB / 4.082 GB, free: 44.71 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003004/13, allocations: 1.14 MB / 4.083 GB, free: 44.66 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003192/13, allocations: 77.77 kB / 4.083 GB, free: 44.66 MB / 474.7 MB Notification: Performance of SimCode: time 1.333e-06/13, allocations: 0 / 4.083 GB, free: 44.66 MB / 474.7 MB Notification: Performance of Templates: time 0.09804/13.1, allocations: 46.43 MB / 4.129 GB, free: 39.53 MB / 474.7 MB