Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.005693/0.005694, allocations: 182.8 kB / 7.455 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.538/1.538, allocations: 170.6 MB / 178.4 MB, free: 15.43 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001678/0.001679, allocations: 99.92 kB / 217.7 MB, free: 8.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2356/0.2356, allocations: 37.97 MB / 294.8 MB, free: 9.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.456e-06/8.486e-06, allocations: 1.094 kB / 349.5 MB, free: 37.09 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1145, allocations: 48.71 MB / 398.2 MB, free: 5.648 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.797/5.911, allocations: 2.486 GB / 2.874 GB, free: 27.12 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002137/5.912, allocations: 82.2 kB / 2.875 GB, free: 27.04 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/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 .... [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/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: time 2.313/8.225, allocations: 0.6401 GB / 3.515 GB, free: 29.19 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.218e-05/8.225, allocations: 25 kB / 3.515 GB, free: 29.18 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.009028/8.234, allocations: 2.119 MB / 3.517 GB, free: 27.93 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/8.234, allocations: 11.06 kB / 3.517 GB, free: 27.93 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005908/8.24, allocations: 0.6426 MB / 3.517 GB, free: 27.84 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001839/8.242, allocations: 0.7061 MB / 3.518 GB, free: 27.41 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.546e-05/8.242, allocations: 31.62 kB / 3.518 GB, free: 27.41 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/8.242, allocations: 42.09 kB / 3.518 GB, free: 27.41 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001398/8.244, allocations: 0.7401 MB / 3.519 GB, free: 27.14 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001468/8.245, allocations: 0.9017 MB / 3.52 GB, free: 26.64 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.575e-05/8.245, allocations: 7.5 kB / 3.52 GB, free: 26.64 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.52e-05/8.245, allocations: 4.469 kB / 3.52 GB, free: 26.64 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.762e-05/8.245, allocations: 19.28 kB / 3.52 GB, free: 26.64 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6188/8.864, allocations: 134.6 MB / 3.651 GB, free: 48.45 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/8.865, allocations: 497.6 kB / 3.652 GB, free: 48.4 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000349/8.866, allocations: 211 kB / 3.652 GB, free: 48.38 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1373/9.003, allocations: 60.44 MB / 3.711 GB, free: 27.46 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.543e-05/9.003, allocations: 38.59 kB / 3.711 GB, free: 27.42 MB / 474.7 MB Notification: Performance of pre-optimization done (n=46): time 3.867e-06/9.003, allocations: 4 kB / 3.711 GB, free: 27.42 MB / 474.7 MB Notification: Performance of matching and sorting (n=46): time 0.004621/9.008, allocations: 1.074 MB / 3.712 GB, free: 26.81 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/9.008, allocations: 187.9 kB / 3.712 GB, free: 26.59 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009463/9.009, allocations: 478.8 kB / 3.713 GB, free: 26.27 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001064/9.009, allocations: 29.7 kB / 3.713 GB, free: 26.24 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002974/9.009, allocations: 397.6 kB / 3.713 GB, free: 25.98 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002007/9.009, allocations: 157.6 kB / 3.713 GB, free: 25.88 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.426e-05/9.009, allocations: 0 / 3.713 GB, free: 25.88 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001947/9.01, allocations: 372.4 kB / 3.714 GB, free: 25.55 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003683/9.01, allocations: 209.8 kB / 3.714 GB, free: 25.43 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004871/9.011, allocations: 0.5098 MB / 3.714 GB, free: 24.9 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002241/9.013, allocations: 0.5235 MB / 3.715 GB, free: 24.63 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.103e-05/9.013, allocations: 0 / 3.715 GB, free: 24.63 MB / 474.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004691/9.018, allocations: 1.495 MB / 3.716 GB, free: 23.79 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001658/9.019, allocations: 3.828 MB / 3.72 GB, free: 19.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.127e-05/9.019, allocations: 15.69 kB / 3.72 GB, free: 19.73 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000283/9.02, allocations: 77.05 kB / 3.72 GB, free: 19.68 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008471/9.02, allocations: 209.6 kB / 3.72 GB, free: 19.52 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001865/9.022, allocations: 1.307 MB / 3.722 GB, free: 18.31 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00111/9.023, allocations: 109.7 kB / 3.722 GB, free: 18.24 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/9.023, allocations: 53.2 kB / 3.722 GB, free: 18.2 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.896e-06/9.024, allocations: 4 kB / 3.722 GB, free: 18.2 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002258/9.026, allocations: 0.7736 MB / 3.722 GB, free: 17.77 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.757e-05/9.026, allocations: 12 kB / 3.722 GB, free: 17.76 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/9.026, allocations: 19.91 kB / 3.722 GB, free: 17.74 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00078/9.027, allocations: 219.3 kB / 3.723 GB, free: 17.58 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.105e-05/9.027, allocations: 22.61 kB / 3.723 GB, free: 17.56 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008775/9.028, allocations: 85.45 kB / 3.723 GB, free: 17.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.659e-05/9.028, allocations: 48.77 kB / 3.723 GB, free: 17.47 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 (massFlowRate1.medium.phase,boundary_fixed.medium.phase,massFlowRate2.medium.phase,boundary_fixed1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,simpleGenericOrifice1.state_b.phase,simpleGenericOrifice1.state_a.phase) * Number of discrete 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.0002563/9.028, allocations: 145.8 kB / 3.723 GB, free: 17.35 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001311/9.029, allocations: 399.7 kB / 3.723 GB, free: 17.13 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004758/9.034, allocations: 2.929 MB / 3.726 GB, free: 15.45 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.278e-05/9.034, allocations: 33.05 kB / 3.726 GB, free: 15.44 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/9.034, allocations: 4 kB / 3.726 GB, free: 15.44 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/9.034, allocations: 4 kB / 3.726 GB, free: 15.43 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00513/9.039, allocations: 3.721 MB / 3.73 GB, free: 13.34 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/9.039, allocations: 1.5 kB / 3.73 GB, free: 13.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000424/9.04, allocations: 100.7 kB / 3.73 GB, free: 13.27 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006353/9.04, allocations: 0.5897 MB / 3.731 GB, free: 12.81 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.483e-05/9.04, allocations: 18.66 kB / 3.731 GB, free: 12.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001844/9.042, allocations: 1.627 MB / 3.732 GB, free: 11.42 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.033e-05/9.042, allocations: 8.641 kB / 3.732 GB, free: 11.41 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004247/9.047, allocations: 2.409 MB / 3.735 GB, free: 9.863 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006594/9.047, allocations: 298.6 kB / 3.735 GB, free: 9.652 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002662/9.047, allocations: 10.75 kB / 3.735 GB, free: 9.648 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007858/9.048, allocations: 43.06 kB / 3.735 GB, free: 9.617 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001743/9.048, allocations: 57.47 kB / 3.735 GB, free: 9.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.952e-05/9.049, allocations: 20.94 kB / 3.735 GB, free: 9.574 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0006299/9.049, allocations: 391.5 kB / 3.735 GB, free: 9.312 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006876/9.056, allocations: 1.256 MB / 3.737 GB, free: 8.305 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,massFlowRate1.medium.phase,$cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse8.phase,$cse8.region,massFlowRate2.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 46 * 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: 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.01002/9.066, allocations: 1.983 MB / 3.738 GB, free: 6.918 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002579/9.069, allocations: 1.545 MB / 3.74 GB, free: 6.047 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/9.069, allocations: 0 / 3.74 GB, free: 6.047 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/9.07, allocations: 1.04 MB / 3.741 GB, free: 5.586 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001784/9.072, allocations: 276.7 kB / 3.741 GB, free: 5.434 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9271/9.999, allocations: 227.7 MB / 3.964 GB, free: 92.29 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008251/10, allocations: 1.228 MB / 3.965 GB, free: 91.57 MB / 474.7 MB Notification: Performance of SimCode: time 1.533e-06/10, allocations: 0 / 3.965 GB, free: 91.57 MB / 474.7 MB Notification: Performance of Templates: time 0.06176/10.06, allocations: 43.43 MB / 4.007 GB, free: 88.96 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe 2>&1)