Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.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.TestSharpEdgedOrifice,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001539/0.001539, allocations: 174.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.642/1.642, allocations: 221.5 MB / 230.7 MB, free: 7.566 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.0008618/0.0008619, allocations: 94.95 kB / 281.6 MB, free: 5.332 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.193/0.193, allocations: 44.14 MB / 376.5 MB, free: 3.055 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.701e-05/1.703e-05, allocations: 4.156 kB / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1331, allocations: 61.91 MB / 0.4948 GB, free: 1.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.387/1.52, allocations: 476.5 MB / 0.9601 GB, free: 125 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/1.52, allocations: 82.58 kB / 0.9602 GB, free: 124.9 MB / 0.5105 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: Performance of FrontEnd - DAE generated: time 0.6924/2.213, allocations: 184.5 MB / 1.14 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.683e-06/2.213, allocations: 0 / 1.14 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.128e-05/2.213, allocations: 15.14 kB / 1.14 GB, free: 119.4 MB / 0.5105 GB 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.002202/2.215, allocations: 0.9849 MB / 1.141 GB, free: 118.8 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/2.215, allocations: 14.58 kB / 1.141 GB, free: 118.8 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001355/2.216, allocations: 172.5 kB / 1.142 GB, free: 118.8 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009667/2.217, allocations: 0.5551 MB / 1.142 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/2.217, allocations: 14.38 kB / 1.142 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.148e-05/2.217, allocations: 24.78 kB / 1.142 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006688/2.218, allocations: 452.2 kB / 1.143 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007404/2.219, allocations: 0.5486 MB / 1.143 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/2.219, allocations: 3.938 kB / 1.143 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.706e-05/2.219, allocations: 3.844 kB / 1.143 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/2.219, allocations: 11.28 kB / 1.143 GB, free: 118.4 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003079/2.222, allocations: 3 MB / 1.146 GB, free: 116.4 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006346/2.223, allocations: 276 kB / 1.146 GB, free: 116.4 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001859/2.223, allocations: 125 kB / 1.146 GB, free: 116.3 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003042/2.223, allocations: 256.5 kB / 1.147 GB, free: 116 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003179/2.224, allocations: 275.7 kB / 1.147 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=25): time 2.485e-06/2.224, allocations: 0 / 1.147 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=25): time 0.008875/2.232, allocations: 1.421 MB / 1.148 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/2.233, allocations: 293.4 kB / 1.149 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006614/2.233, allocations: 0.4975 MB / 1.149 GB, free: 115 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.668e-05/2.233, allocations: 25.7 kB / 1.149 GB, free: 115 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002703/2.234, allocations: 368.6 kB / 1.149 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 8.422e-05/2.234, allocations: 88.52 kB / 1.15 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-05/2.234, allocations: 0 / 1.15 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.598e-05/2.234, allocations: 367.4 kB / 1.15 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002052/2.234, allocations: 151.4 kB / 1.15 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003307/2.234, allocations: 371.7 kB / 1.15 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008383/2.243, allocations: 1.32 MB / 1.152 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.887e-06/2.243, allocations: 3.938 kB / 1.152 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.009323/2.252, allocations: 1.704 MB / 1.153 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005008/2.253, allocations: 2.036 MB / 1.155 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/2.253, allocations: 7.812 kB / 1.155 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.738e-05/2.253, allocations: 7.844 kB / 1.155 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005941/2.259, allocations: 0.6038 MB / 1.156 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003212/2.262, allocations: 1.014 MB / 1.157 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/2.263, allocations: 65.27 kB / 1.157 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001898/2.263, allocations: 53.98 kB / 1.157 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/2.263, allocations: 5.094 kB / 1.157 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002587/2.266, allocations: 0.7721 MB / 1.158 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/2.266, allocations: 3.938 kB / 1.158 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/2.266, allocations: 7.875 kB / 1.158 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004133/2.266, allocations: 121.7 kB / 1.158 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/2.266, allocations: 18.22 kB / 1.158 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006758/2.267, allocations: 49.72 kB / 1.158 GB, free: 110.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.845e-05/2.267, allocations: 57.25 kB / 1.158 GB, free: 110.4 MB / 0.5105 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.0002785/2.268, allocations: 155.2 kB / 1.158 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009069/2.277, allocations: 1.442 MB / 1.16 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002139/2.277, allocations: 57.86 kB / 1.16 GB, free: 110 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003648/2.281, allocations: 0.7785 MB / 1.16 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/2.281, allocations: 3.031 kB / 1.16 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/2.281, allocations: 0 / 1.16 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/2.281, allocations: 6.062 kB / 1.16 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007604/2.281, allocations: 457.8 kB / 1.161 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/2.281, allocations: 3.938 kB / 1.161 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001791/2.283, allocations: 173.4 kB / 1.161 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.786e-06/2.283, allocations: 7 kB / 1.161 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.965e-05/2.283, allocations: 7.312 kB / 1.161 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001037/2.284, allocations: 0.7243 MB / 1.162 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/2.284, allocations: 0 / 1.162 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003329/2.288, allocations: 0.7188 MB / 1.162 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002873/2.288, allocations: 145.5 kB / 1.163 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001945/2.288, allocations: 7.438 kB / 1.163 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004449/2.289, allocations: 17.64 kB / 1.163 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.934e-05/2.289, allocations: 19.7 kB / 1.163 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.093e-05/2.289, allocations: 17.91 kB / 1.163 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0006066/2.289, allocations: 402.3 kB / 1.163 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2e-07/2.289, allocations: 0 / 1.163 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002252/2.292, allocations: 0.5618 MB / 1.164 GB, free: 108.2 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 (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.006026/2.298, allocations: 2.364 MB / 1.166 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01105/2.309, allocations: 1.548 MB / 1.167 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/2.309, allocations: 4.062 kB / 1.167 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002885/2.312, allocations: 398.4 kB / 1.168 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001416/2.313, allocations: 212.2 kB / 1.168 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002862/2.316, allocations: 0.8407 MB / 1.169 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003607/2.316, allocations: 0.8962 MB / 1.17 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001866/2.318, allocations: 0.8447 MB / 1.17 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004028/2.319, allocations: 234.4 kB / 1.171 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of SimCode: time 6.22e-07/2.319, allocations: 3.938 kB / 1.171 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05134/2.37, allocations: 24.75 MB / 1.195 GB, free: 84.28 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002052/2.37, allocations: 188.1 kB / 1.195 GB, free: 84.09 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.036/5.407, allocations: 4 kB / 1.195 GB, free: 84.09 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe 2>&1)