Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice",fmuType="me",version="2.0",platforms={"static"}) [: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 4.0.0+maint.om/package.mo): time 0.0009923/0.0009923, allocations: 179.8 kB / 8.517 MB, free: 1.848 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.172/1.172, allocations: 221.4 MB / 230.3 MB, free: 7.688 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009386/0.0009388, allocations: 86.02 kB / 281.2 MB, free: 5.5 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1617/0.1617, allocations: 44.15 MB / 376.1 MB, free: 3.211 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1958/0.3575, allocations: 68.03 MB / 444.1 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09804/0.4555, allocations: 61.91 MB / 0.4942 GB, free: 1.516 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5774/1.033, allocations: 289.5 MB / 0.7768 GB, free: 98.21 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002019/1.033, allocations: 89.77 kB / 0.7769 GB, free: 98.16 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:306:3-308: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 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:306:3-308: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: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.3829/1.416, allocations: 120 MB / 0.8942 GB, free: 133.3 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.108e-05/1.416, allocations: 13.09 kB / 0.8942 GB, free: 133.3 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003275/1.417, allocations: 89.53 kB / 0.8943 GB, free: 133.3 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008234/1.417, allocations: 0.5297 MB / 0.8948 GB, free: 133.1 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/1.417, allocations: 16.59 kB / 0.8948 GB, free: 133.1 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.427e-05/1.417, allocations: 29.53 kB / 0.8948 GB, free: 133.1 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005931/1.418, allocations: 477.2 kB / 0.8953 GB, free: 133.1 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006409/1.419, allocations: 0.5841 MB / 0.8958 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/1.419, allocations: 3.125 kB / 0.8958 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.888e-05/1.419, allocations: 4.375 kB / 0.8958 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/1.419, allocations: 11.69 kB / 0.8959 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002559/1.421, allocations: 2.978 MB / 0.8988 GB, free: 131.1 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002689/1.422, allocations: 198.4 kB / 0.899 GB, free: 131 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000168/1.422, allocations: 136.3 kB / 0.8991 GB, free: 131 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001903/1.422, allocations: 340.8 kB / 0.8994 GB, free: 130.6 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002697/1.422, allocations: 258.2 kB / 0.8997 GB, free: 130.5 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=28): time 1.443e-06/1.422, allocations: 2.406 kB / 0.8997 GB, free: 130.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=28): time 0.002857/1.425, allocations: 0.6672 MB / 0.9003 GB, free: 130.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.297e-05/1.425, allocations: 290.3 kB / 0.9006 GB, free: 130.1 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003427/1.426, allocations: 377.9 kB / 0.901 GB, free: 130 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.334e-05/1.426, allocations: 25.7 kB / 0.901 GB, free: 130 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/1.426, allocations: 299 kB / 0.9013 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 5.588e-05/1.426, allocations: 89.47 kB / 0.9013 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.404e-05/1.426, allocations: 3.938 kB / 0.9013 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.364e-05/1.426, allocations: 354 kB / 0.9017 GB, free: 129.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001803/1.426, allocations: 132.8 kB / 0.9018 GB, free: 129.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002482/1.426, allocations: 351.8 kB / 0.9021 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002506/1.429, allocations: 0.5222 MB / 0.9027 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/1.429, allocations: 7.625 kB / 0.9027 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002945/1.432, allocations: 0.835 MB / 0.9035 GB, free: 129.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003174/1.432, allocations: 2.101 MB / 0.9055 GB, free: 126.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/1.432, allocations: 3.781 kB / 0.9055 GB, free: 126.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/1.432, allocations: 7.781 kB / 0.9055 GB, free: 126.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/1.433, allocations: 177.8 kB / 0.9057 GB, free: 126.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007397/1.434, allocations: 0.6855 MB / 0.9064 GB, free: 126.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004707/1.434, allocations: 60.64 kB / 0.9064 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.744e-05/1.435, allocations: 29.56 kB / 0.9065 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 6.652e-06/1.435, allocations: 6.25 kB / 0.9065 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001974/1.437, allocations: 0.6091 MB / 0.9071 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/1.437, allocations: 11.47 kB / 0.9071 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.123e-06/1.437, allocations: 7.781 kB / 0.9071 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003508/1.437, allocations: 108.6 kB / 0.9072 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/1.437, allocations: 10.44 kB / 0.9072 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003905/1.437, allocations: 58.59 kB / 0.9073 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.345e-05/1.437, allocations: 29.5 kB / 0.9073 GB, free: 126.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 54 * 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.0001641/1.438, allocations: 155 kB / 0.9074 GB, free: 126.2 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.451e-05/1.438, allocations: 53.09 kB / 0.9075 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002015/1.44, allocations: 0.9297 MB / 0.9084 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.288e-06/1.44, allocations: 3.719 kB / 0.9084 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/1.44, allocations: 3.312 kB / 0.9084 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/1.44, allocations: 3.422 kB / 0.9084 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004843/1.44, allocations: 466.6 kB / 0.9088 GB, free: 125.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/1.44, allocations: 3.375 kB / 0.9089 GB, free: 125.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005651/1.441, allocations: 115.3 kB / 0.909 GB, free: 125.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/1.441, allocations: 0 / 0.909 GB, free: 125.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.659e-05/1.441, allocations: 17.66 kB / 0.909 GB, free: 125.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003373/1.441, allocations: 0.6185 MB / 0.9096 GB, free: 125.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/1.441, allocations: 3.047 kB / 0.9096 GB, free: 125.3 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001291/1.442, allocations: 0.5819 MB / 0.9102 GB, free: 125.2 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001339/1.444, allocations: 0.9758 MB / 0.9111 GB, free: 124.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002224/1.444, allocations: 203.3 kB / 0.9113 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/1.444, allocations: 10.03 kB / 0.9113 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003061/1.445, allocations: 13.58 kB / 0.9113 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.161e-05/1.445, allocations: 30.64 kB / 0.9114 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.452e-05/1.445, allocations: 16.97 kB / 0.9114 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0002638/1.445, allocations: 302.7 kB / 0.9117 GB, free: 124.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002385/1.447, allocations: 0.5235 MB / 0.9122 GB, free: 124.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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.0007561/1.448, allocations: 468.4 kB / 0.9126 GB, free: 124.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00186/1.45, allocations: 0.7697 MB / 0.9134 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/1.45, allocations: 3.844 kB / 0.9134 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0008241/1.451, allocations: 337.4 kB / 0.9137 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008857/1.452, allocations: 189.5 kB / 0.9139 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/1.453, allocations: 0.7243 MB / 0.9146 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004137/1.453, allocations: 0.977 MB / 0.9155 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of SimCode: time 2.91e-07/1.453, allocations: 0 / 0.9155 GB, free: 123.2 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1)