Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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.2+maint.om/package.mo): time 0.003582/0.003582, allocations: 181.3 kB / 7.455 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.375/1.375, allocations: 194.2 MB / 202.1 MB, free: 8.652 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00175/0.00175, allocations: 114.2 kB / 247.1 MB, free: 6.355 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1853/0.1853, allocations: 39.95 MB / 331.9 MB, free: 4.961 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.342e-06/6.362e-06, allocations: 0 / 392.8 MB, free: 75.86 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1058, allocations: 54.86 MB / 447.7 MB, free: 20.99 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.369/4.475, allocations: 2.596 GB / 3.034 GB, free: 149.1 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002862/4.476, allocations: 85.27 kB / 3.034 GB, free: 149.1 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/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 .... [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/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: time 1.854/6.329, allocations: 0.6574 GB / 3.691 GB, free: 40.27 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001003/6.329, allocations: 29.22 kB / 3.691 GB, free: 40.27 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.0089/6.338, allocations: 2.206 MB / 3.693 GB, free: 38.95 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/6.338, allocations: 9.359 kB / 3.693 GB, free: 38.95 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005957/6.344, allocations: 0.6841 MB / 3.694 GB, free: 38.79 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001943/6.346, allocations: 0.7085 MB / 3.695 GB, free: 38.22 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.628e-05/6.346, allocations: 32.16 kB / 3.695 GB, free: 38.22 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000188/6.347, allocations: 44.06 kB / 3.695 GB, free: 38.19 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001488/6.348, allocations: 0.7419 MB / 3.695 GB, free: 37.45 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001336/6.349, allocations: 0.9084 MB / 3.696 GB, free: 36.45 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/6.35, allocations: 0 / 3.696 GB, free: 36.45 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001015/6.35, allocations: 4 kB / 3.696 GB, free: 36.45 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.788e-05/6.35, allocations: 20 kB / 3.696 GB, free: 36.43 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6009/6.951, allocations: 137.3 MB / 3.83 GB, free: 64.06 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009675/6.952, allocations: 491.6 kB / 3.831 GB, free: 64.01 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002896/6.952, allocations: 212.4 kB / 3.831 GB, free: 63.99 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1212/7.073, allocations: 60.44 MB / 3.89 GB, free: 28.57 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.518e-05/7.073, allocations: 42.59 kB / 3.89 GB, free: 28.53 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=46): time 3.317e-06/7.073, allocations: 0 / 3.89 GB, free: 28.53 MB / 0.4948 GB Notification: Performance of matching and sorting (n=46): time 0.004151/7.077, allocations: 1.075 MB / 3.891 GB, free: 28.46 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/7.077, allocations: 190.2 kB / 3.891 GB, free: 28.23 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005787/7.078, allocations: 471.1 kB / 3.892 GB, free: 28.1 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.57e-05/7.078, allocations: 25.7 kB / 3.892 GB, free: 28.07 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000196/7.078, allocations: 396.5 kB / 3.892 GB, free: 27.86 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/7.078, allocations: 162.1 kB / 3.892 GB, free: 27.78 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.569e-05/7.078, allocations: 0 / 3.892 GB, free: 27.78 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001059/7.079, allocations: 372.2 kB / 3.893 GB, free: 27.46 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002998/7.079, allocations: 209.1 kB / 3.893 GB, free: 27.46 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004319/7.079, allocations: 0.5213 MB / 3.893 GB, free: 27.07 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00203/7.081, allocations: 0.5108 MB / 3.894 GB, free: 27.05 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/7.081, allocations: 3.375 kB / 3.894 GB, free: 27.05 MB / 0.4948 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004313/7.086, allocations: 1.492 MB / 3.895 GB, free: 26.95 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001269/7.087, allocations: 3.827 MB / 3.899 GB, free: 38.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/7.087, allocations: 14.41 kB / 3.899 GB, free: 38.93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002525/7.087, allocations: 85.36 kB / 3.899 GB, free: 38.91 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007516/7.088, allocations: 206 kB / 3.899 GB, free: 38.91 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001701/7.09, allocations: 1.307 MB / 3.901 GB, free: 37.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009592/7.091, allocations: 111.1 kB / 3.901 GB, free: 37.84 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.438e-05/7.091, allocations: 56.94 kB / 3.901 GB, free: 37.84 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.235e-06/7.091, allocations: 4.094 kB / 3.901 GB, free: 37.84 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002137/7.093, allocations: 0.7826 MB / 3.902 GB, free: 37.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/7.093, allocations: 10.84 kB / 3.902 GB, free: 37.82 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/7.093, allocations: 13.44 kB / 3.902 GB, free: 37.82 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000746/7.094, allocations: 222.2 kB / 3.902 GB, free: 37.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.379e-05/7.094, allocations: 23.22 kB / 3.902 GB, free: 37.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006629/7.094, allocations: 88.98 kB / 3.902 GB, free: 37.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-05/7.095, allocations: 48.36 kB / 3.902 GB, free: 37.8 MB / 0.5105 GB 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.000232/7.095, allocations: 133.4 kB / 3.902 GB, free: 37.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001164/7.096, allocations: 397.3 kB / 3.902 GB, free: 37.66 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004531/7.1, allocations: 2.934 MB / 3.905 GB, free: 36.66 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.784e-05/7.101, allocations: 30.14 kB / 3.905 GB, free: 36.65 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/7.101, allocations: 7.328 kB / 3.905 GB, free: 36.65 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/7.101, allocations: 4 kB / 3.905 GB, free: 36.64 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004545/7.105, allocations: 3.72 MB / 3.909 GB, free: 34.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/7.105, allocations: 0 / 3.909 GB, free: 34.53 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004032/7.106, allocations: 98.92 kB / 3.909 GB, free: 34.46 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006019/7.106, allocations: 0.5941 MB / 3.91 GB, free: 34 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.82e-05/7.106, allocations: 14.86 kB / 3.91 GB, free: 33.99 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001569/7.108, allocations: 1.634 MB / 3.911 GB, free: 32.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/7.108, allocations: 0 / 3.911 GB, free: 32.62 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003498/7.111, allocations: 2.41 MB / 3.914 GB, free: 31.06 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004554/7.112, allocations: 309.4 kB / 3.914 GB, free: 30.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/7.112, allocations: 0 / 3.914 GB, free: 30.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005463/7.112, allocations: 45.88 kB / 3.914 GB, free: 30.81 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/7.113, allocations: 52.92 kB / 3.914 GB, free: 30.79 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.335e-05/7.113, allocations: 22.28 kB / 3.914 GB, free: 30.77 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0004314/7.113, allocations: 385.2 kB / 3.914 GB, free: 30.52 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005913/7.119, allocations: 1.266 MB / 3.916 GB, free: 29.5 MB / 0.5105 GB 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.006294/7.125, allocations: 1.991 MB / 3.918 GB, free: 28.11 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002533/7.128, allocations: 1.549 MB / 3.919 GB, free: 27.25 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/7.128, allocations: 3.375 kB / 3.919 GB, free: 27.25 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0009837/7.129, allocations: 1.036 MB / 3.92 GB, free: 26.79 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001516/7.13, allocations: 280.4 kB / 3.92 GB, free: 26.63 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8801/8.01, allocations: 232.9 MB / 4.148 GB, free: 99.04 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008343/8.011, allocations: 1.229 MB / 4.149 GB, free: 98.33 MB / 0.5105 GB Notification: Performance of SimCode: time 1.493e-06/8.011, allocations: 0 / 4.149 GB, free: 98.33 MB / 0.5105 GB Notification: Performance of Templates: time 0.05647/8.068, allocations: 43.55 MB / 4.192 GB, free: 97.72 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe 2>&1)