Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice",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 3.2.3+maint.om/package.mo): time 0.00172/0.001719, allocations: 186.2 kB / 7.802 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.739/1.739, allocations: 205.2 MB / 213.4 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001097/0.001097, allocations: 87.81 kB / 261.4 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2439/0.2439, allocations: 43.49 MB / 352.8 MB, free: 2.047 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2684/0.5123, allocations: 64.98 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4055/0.9179, allocations: 58.85 MB / 476.7 MB, free: 5.18 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.132/2.05, allocations: 474.4 MB / 0.9287 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003049/2.05, allocations: 75.95 kB / 0.9288 GB, free: 104.5 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.8284/2.878, allocations: 192.9 MB / 1.117 GB, free: 109.4 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.194e-05/2.878, allocations: 8 kB / 1.117 GB, free: 109.4 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002482/2.881, allocations: 178.9 kB / 1.117 GB, free: 109.2 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001958/2.883, allocations: 0.5674 MB / 1.118 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.971e-05/2.883, allocations: 12 kB / 1.118 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002007/2.883, allocations: 24 kB / 1.118 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001281/2.884, allocations: 453.9 kB / 1.118 GB, free: 108.1 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/2.886, allocations: 0.5392 MB / 1.119 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.36e-05/2.886, allocations: 8 kB / 1.119 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001624/2.886, allocations: 0 / 1.119 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.11e-05/2.886, allocations: 15.94 kB / 1.119 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005718/2.892, allocations: 2.763 MB / 1.122 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006239/2.893, allocations: 266.5 kB / 1.122 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002511/2.893, allocations: 132.8 kB / 1.122 GB, free: 104.2 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003288/2.893, allocations: 190.8 kB / 1.122 GB, free: 104 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003788/2.894, allocations: 250.2 kB / 1.122 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=25): time 3.417e-06/2.894, allocations: 0 / 1.122 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=25): time 0.01413/2.908, allocations: 1.624 MB / 1.124 GB, free: 102.1 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.904e-05/2.908, allocations: 294.7 kB / 1.124 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001127/2.909, allocations: 0.4943 MB / 1.125 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 8.387e-05/2.909, allocations: 29.7 kB / 1.125 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002723/2.909, allocations: 298.8 kB / 1.125 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/2.91, allocations: 78.94 kB / 1.125 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.936e-05/2.91, allocations: 4 kB / 1.125 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001322/2.91, allocations: 367 kB / 1.126 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000328/2.91, allocations: 153 kB / 1.126 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004412/2.911, allocations: 374.8 kB / 1.126 GB, free: 99.82 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01355/2.924, allocations: 1.543 MB / 1.128 GB, free: 98.28 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.702e-05/2.924, allocations: 4 kB / 1.128 GB, free: 98.27 MB / 0.4948 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.01466/2.939, allocations: 1.898 MB / 1.129 GB, free: 96.38 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005022/2.939, allocations: 2.006 MB / 1.131 GB, free: 94.22 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.424e-05/2.94, allocations: 7.984 kB / 1.131 GB, free: 94.21 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.538e-05/2.94, allocations: 12 kB / 1.131 GB, free: 94.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009038/2.949, allocations: 0.6165 MB / 1.132 GB, free: 93.58 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004785/2.953, allocations: 1.042 MB / 1.133 GB, free: 92.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001261/2.955, allocations: 59.52 kB / 1.133 GB, free: 92.46 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002399/2.955, allocations: 51.98 kB / 1.133 GB, free: 92.41 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/2.955, allocations: 4 kB / 1.133 GB, free: 92.41 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004261/2.959, allocations: 0.9053 MB / 1.134 GB, free: 91.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.891e-05/2.959, allocations: 7.938 kB / 1.134 GB, free: 91.49 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/2.959, allocations: 15.98 kB / 1.134 GB, free: 91.48 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006189/2.96, allocations: 128.4 kB / 1.134 GB, free: 91.35 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.609e-05/2.96, allocations: 11.94 kB / 1.134 GB, free: 91.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/2.961, allocations: 47.66 kB / 1.134 GB, free: 91.29 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/2.961, allocations: 44 kB / 1.134 GB, free: 91.25 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (55): * Single equations (assignments): 53 * 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.0004072/2.962, allocations: 162.4 kB / 1.134 GB, free: 91.08 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003234/2.962, allocations: 67.25 kB / 1.134 GB, free: 91.01 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005355/2.967, allocations: 0.8136 MB / 1.135 GB, free: 90.19 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/2.967, allocations: 4 kB / 1.135 GB, free: 90.19 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.417e-06/2.967, allocations: 0 / 1.135 GB, free: 90.19 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/2.967, allocations: 7.891 kB / 1.135 GB, free: 90.18 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001112/2.969, allocations: 453.1 kB / 1.136 GB, free: 89.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/2.969, allocations: 0 / 1.136 GB, free: 89.71 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0025/2.971, allocations: 187.7 kB / 1.136 GB, free: 89.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.075e-05/2.971, allocations: 4 kB / 1.136 GB, free: 89.52 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.119e-05/2.971, allocations: 8 kB / 1.136 GB, free: 89.51 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001462/2.973, allocations: 0.738 MB / 1.137 GB, free: 88.75 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/2.973, allocations: 96 / 1.137 GB, free: 88.75 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005083/2.978, allocations: 0.7146 MB / 1.137 GB, free: 88.02 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005434/2.983, allocations: 1.125 MB / 1.138 GB, free: 86.87 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005276/2.984, allocations: 156.2 kB / 1.139 GB, free: 86.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004082/2.984, allocations: 4 kB / 1.139 GB, free: 86.69 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008156/2.985, allocations: 23.89 kB / 1.139 GB, free: 86.67 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/2.985, allocations: 19.97 kB / 1.139 GB, free: 86.65 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.317e-05/2.985, allocations: 8 kB / 1.139 GB, free: 86.64 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0008328/2.986, allocations: 402.9 kB / 1.139 GB, free: 86.25 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005453/2.992, allocations: 0.788 MB / 1.14 GB, free: 85.46 MB / 0.4948 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 (24): * Single equations (assignments): 22 * 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 Backend phase and start with SimCode phase: time 0.004338/2.996, allocations: 1.381 MB / 1.141 GB, free: 84.21 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0163/3.012, allocations: 1.484 MB / 1.143 GB, free: 82.71 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.686e-06/3.012, allocations: 0 / 1.143 GB, free: 82.71 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004273/3.017, allocations: 393.4 kB / 1.143 GB, free: 82.32 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001945/3.019, allocations: 195.2 kB / 1.143 GB, free: 82.14 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002672/3.021, allocations: 0.6516 MB / 1.144 GB, free: 81.46 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00112/3.023, allocations: 1.011 MB / 1.145 GB, free: 80.43 MB / 0.4948 GB Notification: Performance of SimCode: time 7.72e-07/3.023, allocations: 0 / 1.145 GB, free: 80.43 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe 2>&1)