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.001432/0.001432, allocations: 177 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 223.2 MB / 241 MB, free: 11.91 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 95.06 kB / 292.1 MB, free: 10.96 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.4071/0.4071, allocations: 44.22 MB / 387.5 MB, free: 38.82 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003683/0.0003683, allocations: 8 kB / 460 MB, free: 1.469 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4563/0.4567, allocations: 61.9 MB / 0.5096 GB, free: 38.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.229/1.686, allocations: 477.2 MB / 0.9757 GB, free: 124.3 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/1.686, allocations: 87.91 kB / 0.9758 GB, free: 124.3 MB / 0.5261 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.7442/2.43, allocations: 190.7 MB / 1.162 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.274e-06/2.43, allocations: 2.438 kB / 1.162 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.996e-05/2.431, allocations: 13.66 kB / 1.162 GB, free: 119.8 MB / 0.5261 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.003303/2.434, allocations: 1.074 MB / 1.163 GB, free: 119.1 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.697e-05/2.434, allocations: 10.38 kB / 1.163 GB, free: 119.1 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002846/2.434, allocations: 82.59 kB / 1.163 GB, free: 119 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001497/2.436, allocations: 174.7 kB / 1.163 GB, free: 118.9 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001325/2.437, allocations: 0.563 MB / 1.164 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.769e-05/2.437, allocations: 31.25 kB / 1.164 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/2.437, allocations: 36.66 kB / 1.164 GB, free: 118.5 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/2.438, allocations: 0.6246 MB / 1.165 GB, free: 118.2 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.295e-05/2.438, allocations: 3.938 kB / 1.165 GB, free: 118.2 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.881e-05/2.439, allocations: 22.19 kB / 1.165 GB, free: 118.2 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.957e-05/2.439, allocations: 17.2 kB / 1.165 GB, free: 118.2 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008962/2.439, allocations: 493.4 kB / 1.165 GB, free: 118 MB / 0.5261 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.003559/2.443, allocations: 2.662 MB / 1.168 GB, free: 116.1 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005284/2.444, allocations: 284 kB / 1.168 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000342/2.444, allocations: 350 kB / 1.168 GB, free: 115.6 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004635/2.444, allocations: 350.2 kB / 1.169 GB, free: 115.4 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=35): time 3.867e-06/2.444, allocations: 0 / 1.169 GB, free: 115.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35): time 0.001218/2.446, allocations: 0.7229 MB / 1.169 GB, free: 115 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/2.446, allocations: 298.6 kB / 1.17 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006074/2.446, allocations: 0.5522 MB / 1.17 GB, free: 114.4 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.44e-05/2.446, allocations: 36.33 kB / 1.17 GB, free: 114.4 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002234/2.447, allocations: 331.3 kB / 1.17 GB, free: 114.1 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/2.447, allocations: 120.7 kB / 1.171 GB, free: 114 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.184e-05/2.447, allocations: 11.88 kB / 1.171 GB, free: 114 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001192/2.447, allocations: 369.1 kB / 1.171 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002627/2.447, allocations: 167.2 kB / 1.171 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003889/2.448, allocations: 386.8 kB / 1.172 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003487/2.448, allocations: 240.1 kB / 1.172 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/2.448, allocations: 5.719 kB / 1.172 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001013/2.449, allocations: 0.672 MB / 1.172 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005544/2.45, allocations: 2.036 MB / 1.174 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/2.45, allocations: 7.375 kB / 1.174 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.322e-05/2.45, allocations: 10.97 kB / 1.174 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006499/2.456, allocations: 0.6092 MB / 1.175 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004961/2.457, allocations: 0.6621 MB / 1.176 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007783/2.457, allocations: 76.52 kB / 1.176 GB, free: 110 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001381/2.458, allocations: 57.64 kB / 1.176 GB, free: 110 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/2.458, allocations: 4.219 kB / 1.176 GB, free: 110 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009318/2.459, allocations: 0.5538 MB / 1.176 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.377e-06/2.459, allocations: 7.875 kB / 1.176 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/2.459, allocations: 11.59 kB / 1.176 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003919/2.459, allocations: 122.5 kB / 1.176 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/2.459, allocations: 15.59 kB / 1.176 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006355/2.46, allocations: 62.72 kB / 1.177 GB, free: 109.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.947e-05/2.46, allocations: 51.81 kB / 1.177 GB, free: 109.8 MB / 0.5261 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 () * Number of clocked 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.0004529/2.46, allocations: 313.5 kB / 1.177 GB, free: 109.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001618/2.46, allocations: 78.59 kB / 1.177 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002053/2.462, allocations: 1.191 MB / 1.178 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.844e-06/2.462, allocations: 3.719 kB / 1.178 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/2.462, allocations: 0 / 1.178 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.056e-06/2.462, allocations: 3.703 kB / 1.178 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002605/2.465, allocations: 2.291 MB / 1.18 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.79e-06/2.465, allocations: 3.531 kB / 1.18 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00184/2.467, allocations: 219.4 kB / 1.181 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.267e-05/2.467, allocations: 1.844 kB / 1.181 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.25e-05/2.467, allocations: 19.19 kB / 1.181 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004031/2.467, allocations: 0.6523 MB / 1.181 GB, free: 106.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/2.467, allocations: 3.688 kB / 1.181 GB, free: 106.6 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/2.469, allocations: 0.8513 MB / 1.182 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000298/2.469, allocations: 154 kB / 1.182 GB, free: 105.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001783/2.469, allocations: 18.91 kB / 1.182 GB, free: 105.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004872/2.47, allocations: 33.86 kB / 1.182 GB, free: 105.8 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.751e-05/2.47, allocations: 41.11 kB / 1.182 GB, free: 105.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.049e-05/2.47, allocations: 36.84 kB / 1.182 GB, free: 105.8 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0005857/2.47, allocations: 449.9 kB / 1.183 GB, free: 105.6 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.783e-06/2.47, allocations: 0 / 1.183 GB, free: 105.6 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002356/2.473, allocations: 0.5802 MB / 1.183 GB, free: 105.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 35 * 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.004013/2.477, allocations: 3.14 MB / 1.186 GB, free: 103.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01173/2.488, allocations: 1.629 MB / 1.188 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.572e-05/2.489, allocations: 11.94 kB / 1.188 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003061/2.492, allocations: 476.1 kB / 1.188 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001911/2.494, allocations: 299 kB / 1.189 GB, free: 102.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008183/2.502, allocations: 7.138 MB / 1.196 GB, free: 97.19 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004432/2.502, allocations: 0.9052 MB / 1.197 GB, free: 96.47 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.002155/2.504, allocations: 0.9928 MB / 1.198 GB, free: 96.34 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005357/2.505, allocations: 269.6 kB / 1.198 GB, free: 96.18 MB / 0.5261 GB Notification: Performance of SimCode: time 1.453e-06/2.505, allocations: 0 / 1.198 GB, free: 96.18 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0672/2.572, allocations: 33.72 MB / 1.231 GB, free: 71.43 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001888/2.572, allocations: 267.6 kB / 1.231 GB, free: 71.08 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.474/6.046, allocations: 0 / 1.231 GB, free: 71.08 MB / 0.5261 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)