Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.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.Fittings.TestSimpleGenericOrifice,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") [: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.002257/0.002257, allocations: 178.9 kB / 7.451 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.268/1.268, allocations: 170.6 MB / 178.4 MB, free: 15.46 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.001892/0.001892, allocations: 115.9 kB / 217.7 MB, free: 8.227 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.172/0.172, allocations: 37.97 MB / 294.8 MB, free: 9.629 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.054e-05/1.065e-05, allocations: 1.219 kB / 349.5 MB, free: 37.12 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09708/0.09712, allocations: 48.71 MB / 398.2 MB, free: 5.688 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6983/0.7954, allocations: 276.6 MB / 0.659 GB, free: 132.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/0.7958, allocations: 83.95 kB / 0.6591 GB, free: 132.2 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 0.2223/1.018, allocations: 115.2 MB / 0.7715 GB, free: 15.68 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.277e-05/1.018, allocations: 23.98 kB / 0.7715 GB, free: 15.65 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.002187/1.02, allocations: 0.848 MB / 0.7724 GB, free: 14.75 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/1.02, allocations: 12.03 kB / 0.7724 GB, free: 14.74 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006587/1.021, allocations: 87.14 kB / 0.7725 GB, free: 14.66 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001255/1.022, allocations: 0.5428 MB / 0.773 GB, free: 14.07 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.867e-05/1.022, allocations: 19.94 kB / 0.773 GB, free: 14.05 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.449e-05/1.023, allocations: 24 kB / 0.773 GB, free: 14.03 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000753/1.023, allocations: 461.9 kB / 0.7735 GB, free: 13.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008294/1.024, allocations: 0.5707 MB / 0.774 GB, free: 12.95 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/1.024, allocations: 4 kB / 0.774 GB, free: 12.95 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.599e-05/1.024, allocations: 0 / 0.774 GB, free: 12.95 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/1.024, allocations: 12 kB / 0.7741 GB, free: 12.93 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003494/1.028, allocations: 3.011 MB / 0.777 GB, free: 9.738 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002637/1.028, allocations: 174.6 kB / 0.7772 GB, free: 9.559 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000143/1.028, allocations: 97.03 kB / 0.7773 GB, free: 9.461 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001306/1.03, allocations: 1.017 MB / 0.7782 GB, free: 8.344 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001992/1.03, allocations: 157 kB / 0.7784 GB, free: 8.172 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 3.577e-06/1.03, allocations: 0 / 0.7784 GB, free: 8.172 MB / 426.7 MB Notification: Performance of matching and sorting (n=23): time 0.00272/1.032, allocations: 0.5398 MB / 0.7789 GB, free: 7.625 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.751e-05/1.033, allocations: 166.2 kB / 0.7791 GB, free: 7.426 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004223/1.033, allocations: 389.9 kB / 0.7795 GB, free: 7.039 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.172e-05/1.033, allocations: 25.7 kB / 0.7795 GB, free: 7.008 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/1.033, allocations: 306.4 kB / 0.7798 GB, free: 6.699 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.418e-05/1.033, allocations: 78.94 kB / 0.7798 GB, free: 6.621 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.967e-05/1.033, allocations: 0 / 0.7798 GB, free: 6.621 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001045/1.033, allocations: 358.8 kB / 0.7802 GB, free: 6.262 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/1.034, allocations: 97.28 kB / 0.7803 GB, free: 6.168 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002709/1.034, allocations: 384.9 kB / 0.7807 GB, free: 5.656 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002428/1.036, allocations: 467.8 kB / 0.7811 GB, free: 5.199 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/1.036, allocations: 4 kB / 0.7811 GB, free: 5.195 MB / 426.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002962/1.039, allocations: 0.7591 MB / 0.7818 GB, free: 4.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00104/1.04, allocations: 3.655 MB / 0.7854 GB, free: 500 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.634e-05/1.04, allocations: 8 kB / 0.7854 GB, free: 492 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.781e-05/1.04, allocations: 16 kB / 0.7854 GB, free: 476 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/1.042, allocations: 195.6 kB / 0.7856 GB, free: 280 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2275/1.269, allocations: 0.6743 MB / 0.7863 GB, free: 147.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000686/1.27, allocations: 67.61 kB / 0.7863 GB, free: 147.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.34e-05/1.27, allocations: 34.59 kB / 0.7864 GB, free: 147.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/1.27, allocations: 3.875 kB / 0.7864 GB, free: 147.2 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001932/1.272, allocations: 0.549 MB / 0.7869 GB, free: 147.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/1.272, allocations: 11.5 kB / 0.7869 GB, free: 147.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/1.272, allocations: 14.84 kB / 0.7869 GB, free: 147.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003543/1.272, allocations: 135.5 kB / 0.7871 GB, free: 147.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/1.272, allocations: 26.86 kB / 0.7871 GB, free: 147.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003402/1.273, allocations: 45.44 kB / 0.7871 GB, free: 147.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.321e-05/1.273, allocations: 36.12 kB / 0.7872 GB, free: 147.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002125/1.273, allocations: 162 kB / 0.7873 GB, free: 147 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.068e-05/1.273, allocations: 54.38 kB / 0.7874 GB, free: 147 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002207/1.275, allocations: 0.8309 MB / 0.7882 GB, free: 147 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/1.275, allocations: 3.969 kB / 0.7882 GB, free: 147 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/1.275, allocations: 3.5 kB / 0.7882 GB, free: 147 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/1.275, allocations: 2.906 kB / 0.7882 GB, free: 147 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004792/1.276, allocations: 409.1 kB / 0.7886 GB, free: 146.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/1.276, allocations: 0.625 kB / 0.7886 GB, free: 146.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005323/1.276, allocations: 108 kB / 0.7887 GB, free: 146.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.137e-06/1.276, allocations: 3.875 kB / 0.7887 GB, free: 146.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.484e-05/1.276, allocations: 9.422 kB / 0.7887 GB, free: 146.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003768/1.277, allocations: 0.6195 MB / 0.7893 GB, free: 146.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/1.277, allocations: 0 / 0.7893 GB, free: 146.3 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001105/1.278, allocations: 481.5 kB / 0.7898 GB, free: 146.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002211/1.278, allocations: 182 kB / 0.7899 GB, free: 146 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.924e-05/1.278, allocations: 3.906 kB / 0.79 GB, free: 146 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002042/1.278, allocations: 14.39 kB / 0.79 GB, free: 146 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.658e-05/1.279, allocations: 20.86 kB / 0.79 GB, free: 146 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.119e-05/1.279, allocations: 17.38 kB / 0.79 GB, free: 146 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.000315/1.279, allocations: 313.7 kB / 0.7903 GB, free: 146 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001598/1.281, allocations: 399.1 kB / 0.7907 GB, free: 145.9 MB / 426.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: 5 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent) * Number of discrete states: 5 (p_table.last,p_table.nextEvent,p_table.b,p_table.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001108/1.282, allocations: 438.1 kB / 0.7911 GB, free: 145.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001903/1.284, allocations: 0.6572 MB / 0.7917 GB, free: 145.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/1.284, allocations: 0 / 0.7917 GB, free: 145.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008085/1.284, allocations: 270.4 kB / 0.792 GB, free: 145.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000947/1.285, allocations: 173.3 kB / 0.7922 GB, free: 145.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001884/1.287, allocations: 0.8365 MB / 0.793 GB, free: 145.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004083/1.288, allocations: 0.972 MB / 0.7939 GB, free: 144.8 MB / 426.7 MB Notification: Performance of SimCode: time 5.31e-07/1.288, allocations: 0 / 0.7939 GB, free: 144.8 MB / 426.7 MB Notification: Performance of Templates: time 0.02551/1.313, allocations: 12.38 MB / 0.806 GB, free: 144.6 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1)