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.001144/0.001144, allocations: 179.7 kB / 14.15 MB, free: 1.176 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.406/1.406, allocations: 221.3 MB / 236 MB, free: 2.949 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.000919/0.0009189, allocations: 80.12 kB / 287 MB, free: 240 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.201/0.201, allocations: 44.15 MB / 382 MB, free: 14.65 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.587e-05/3.59e-05, allocations: 8.203 kB / 451.9 MB, free: 9.316 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1372, allocations: 61.91 MB / 0.5018 GB, free: 11.34 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.46/1.597, allocations: 477.2 MB / 0.9678 GB, free: 153.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002831/1.598, allocations: 81.14 kB / 0.9679 GB, free: 153.6 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.7374/2.335, allocations: 190.2 MB / 1.154 GB, free: 121.6 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.272e-06/2.335, allocations: 0 / 1.154 GB, free: 121.6 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.119e-05/2.335, allocations: 12.91 kB / 1.154 GB, free: 121.6 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.002055/2.337, allocations: 0.9957 MB / 1.155 GB, free: 121.1 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/2.337, allocations: 10.75 kB / 1.155 GB, free: 121.1 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001027/2.337, allocations: 82.3 kB / 1.155 GB, free: 121 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001297/2.339, allocations: 179.8 kB / 1.155 GB, free: 121 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000994/2.34, allocations: 0.5517 MB / 1.155 GB, free: 120.8 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.738e-05/2.34, allocations: 28.5 kB / 1.155 GB, free: 120.8 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.086e-05/2.34, allocations: 44.5 kB / 1.155 GB, free: 120.8 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008744/2.341, allocations: 0.6078 MB / 1.156 GB, free: 120.6 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/2.341, allocations: 0 / 1.156 GB, free: 120.6 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.211e-05/2.341, allocations: 23.09 kB / 1.156 GB, free: 120.6 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.799e-06/2.341, allocations: 9.875 kB / 1.156 GB, free: 120.6 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006415/2.341, allocations: 484.2 kB / 1.157 GB, free: 120.6 MB / 0.5261 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.00275/2.344, allocations: 2.659 MB / 1.159 GB, free: 119.1 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004653/2.345, allocations: 284.1 kB / 1.159 GB, free: 119.1 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002336/2.345, allocations: 183.7 kB / 1.16 GB, free: 119.1 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002918/2.345, allocations: 351.6 kB / 1.16 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000409/2.346, allocations: 346.1 kB / 1.16 GB, free: 118.5 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=35): time 2.234e-06/2.346, allocations: 0 / 1.16 GB, free: 118.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35): time 0.0008265/2.346, allocations: 0.5028 MB / 1.161 GB, free: 118.4 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.139e-05/2.347, allocations: 291.6 kB / 1.161 GB, free: 118.1 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005297/2.347, allocations: 0.5447 MB / 1.162 GB, free: 118 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.584e-05/2.347, allocations: 32.8 kB / 1.162 GB, free: 117.9 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001879/2.347, allocations: 338.9 kB / 1.162 GB, free: 117.8 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 8.562e-05/2.347, allocations: 114.6 kB / 1.162 GB, free: 117.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.233e-05/2.347, allocations: 9.969 kB / 1.162 GB, free: 117.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.65e-05/2.348, allocations: 371.8 kB / 1.162 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002373/2.348, allocations: 167.4 kB / 1.163 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003259/2.348, allocations: 377.3 kB / 1.163 GB, free: 117.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003104/2.348, allocations: 244.5 kB / 1.163 GB, free: 117.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/2.348, allocations: 0 / 1.163 GB, free: 117.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009049/2.349, allocations: 0.6617 MB / 1.164 GB, free: 117.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003874/2.35, allocations: 2.042 MB / 1.166 GB, free: 114.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/2.35, allocations: 6.531 kB / 1.166 GB, free: 114.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/2.35, allocations: 9.406 kB / 1.166 GB, free: 114.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006102/2.356, allocations: 0.6057 MB / 1.166 GB, free: 114.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004717/2.356, allocations: 0.6598 MB / 1.167 GB, free: 114.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007381/2.357, allocations: 75.34 kB / 1.167 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001022/2.357, allocations: 55.34 kB / 1.167 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/2.357, allocations: 3.188 kB / 1.167 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009101/2.358, allocations: 0.5468 MB / 1.168 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/2.358, allocations: 7.781 kB / 1.168 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/2.358, allocations: 9.938 kB / 1.168 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004007/2.359, allocations: 132.4 kB / 1.168 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/2.359, allocations: 13.14 kB / 1.168 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004714/2.359, allocations: 66.47 kB / 1.168 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.064e-05/2.359, allocations: 52.2 kB / 1.168 GB, free: 114.3 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 () * 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.0001874/2.359, allocations: 176.1 kB / 1.168 GB, free: 114.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/2.36, allocations: 66.19 kB / 1.168 GB, free: 114.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001975/2.362, allocations: 1.18 MB / 1.169 GB, free: 114 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/2.362, allocations: 3.5 kB / 1.169 GB, free: 114 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/2.362, allocations: 7.141 kB / 1.169 GB, free: 114 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/2.362, allocations: 3.938 kB / 1.169 GB, free: 114 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002197/2.364, allocations: 2.296 MB / 1.172 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/2.364, allocations: 3.219 kB / 1.172 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001902/2.366, allocations: 218.2 kB / 1.172 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.195e-05/2.366, allocations: 7.406 kB / 1.172 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.222e-05/2.366, allocations: 23.94 kB / 1.172 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003219/2.366, allocations: 0.6441 MB / 1.172 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/2.366, allocations: 7.859 kB / 1.172 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009335/2.367, allocations: 0.8377 MB / 1.173 GB, free: 111.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002006/2.367, allocations: 149.5 kB / 1.173 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001495/2.367, allocations: 16.09 kB / 1.173 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004506/2.368, allocations: 27 kB / 1.173 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.477e-05/2.368, allocations: 46.7 kB / 1.173 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.975e-05/2.368, allocations: 38.86 kB / 1.174 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0005152/2.369, allocations: 443.9 kB / 1.174 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.8e-07/2.369, allocations: 0 / 1.174 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002202/2.371, allocations: 0.5783 MB / 1.175 GB, free: 111.1 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) * 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.003996/2.375, allocations: 3.128 MB / 1.178 GB, free: 109.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01126/2.386, allocations: 1.649 MB / 1.179 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.093e-05/2.386, allocations: 0 / 1.179 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00303/2.389, allocations: 478.2 kB / 1.18 GB, free: 109 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001912/2.391, allocations: 306.4 kB / 1.18 GB, free: 109 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003045/2.394, allocations: 1.009 MB / 1.181 GB, free: 108.6 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003808/2.395, allocations: 0.9077 MB / 1.182 GB, free: 107.9 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.002182/2.397, allocations: 1.031 MB / 1.183 GB, free: 107.9 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004829/2.397, allocations: 258.5 kB / 1.183 GB, free: 107.9 MB / 0.5261 GB Notification: Performance of SimCode: time 1.332e-06/2.397, allocations: 0 / 1.183 GB, free: 107.9 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0678/2.465, allocations: 37.1 MB / 1.219 GB, free: 101.2 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001941/2.465, allocations: 243 kB / 1.22 GB, free: 100.9 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.504/5.97, allocations: 0 / 1.22 GB, free: 100.9 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)