Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001266/0.001266, allocations: 198.8 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 227.2 MB / 245 MB, free: 5.781 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001127/0.001127, allocations: 108.2 kB / 297.3 MB, free: 5.957 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4619/0.4619, allocations: 45.23 MB / 394.6 MB, free: 31.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003042/0.0003043, allocations: 8 kB / 468.5 MB, free: 7.621 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4038/0.4042, allocations: 63.25 MB / 0.5193 GB, free: 37.38 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.261/1.665, allocations: 478.3 MB / 0.9864 GB, free: 135 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002508/1.666, allocations: 91.92 kB / 0.9864 GB, free: 134.9 MB / 0.5417 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.8248/2.49, allocations: 190.8 MB / 1.173 GB, free: 133.5 MB / 0.5417 GB Notification: Performance of FrontEnd: time 4.589e-06/2.49, allocations: 2.5 kB / 1.173 GB, free: 133.5 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001455/2.491, allocations: 14.97 kB / 1.173 GB, free: 133.5 MB / 0.5417 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.004258/2.495, allocations: 1.087 MB / 1.174 GB, free: 132.8 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.468e-05/2.495, allocations: 6.625 kB / 1.174 GB, free: 132.8 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003763/2.495, allocations: 82.7 kB / 1.174 GB, free: 132.8 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001674/2.497, allocations: 175.9 kB / 1.174 GB, free: 132.8 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001411/2.498, allocations: 0.5624 MB / 1.175 GB, free: 132.5 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.104e-05/2.498, allocations: 32.5 kB / 1.175 GB, free: 132.5 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000141/2.499, allocations: 42.03 kB / 1.175 GB, free: 132.5 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001115/2.5, allocations: 0.6225 MB / 1.175 GB, free: 132.1 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/2.5, allocations: 0 / 1.175 GB, free: 132.1 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.4e-05/2.5, allocations: 23.81 kB / 1.175 GB, free: 132.1 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.576e-05/2.5, allocations: 13.67 kB / 1.175 GB, free: 132.1 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008198/2.501, allocations: 496 kB / 1.176 GB, free: 132 MB / 0.5417 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.003938/2.505, allocations: 2.661 MB / 1.178 GB, free: 130 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005257/2.505, allocations: 288.9 kB / 1.179 GB, free: 129.9 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003323/2.506, allocations: 353.8 kB / 1.179 GB, free: 129.5 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004441/2.506, allocations: 346 kB / 1.179 GB, free: 129.3 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=35): time 2.494e-06/2.506, allocations: 3.609 kB / 1.179 GB, free: 129.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=35): time 0.001222/2.507, allocations: 0.7199 MB / 1.18 GB, free: 128.9 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/2.507, allocations: 294.1 kB / 1.18 GB, free: 128.6 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000695/2.508, allocations: 0.5473 MB / 1.181 GB, free: 128.3 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.866e-05/2.508, allocations: 36.2 kB / 1.181 GB, free: 128.3 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002513/2.508, allocations: 335.2 kB / 1.181 GB, free: 128 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/2.509, allocations: 117.7 kB / 1.181 GB, free: 128 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.385e-05/2.509, allocations: 11.94 kB / 1.181 GB, free: 127.9 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001341/2.509, allocations: 366.2 kB / 1.182 GB, free: 127.6 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002966/2.509, allocations: 173.2 kB / 1.182 GB, free: 127.5 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003893/2.509, allocations: 389.2 kB / 1.182 GB, free: 127.2 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003617/2.51, allocations: 246.4 kB / 1.183 GB, free: 127.1 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/2.51, allocations: 0 / 1.183 GB, free: 127.1 MB / 0.5417 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001102/2.511, allocations: 0.6739 MB / 1.183 GB, free: 126.8 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006999/2.512, allocations: 2.038 MB / 1.185 GB, free: 124.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.273e-05/2.512, allocations: 5.828 kB / 1.185 GB, free: 124.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.934e-05/2.512, allocations: 10.03 kB / 1.185 GB, free: 124.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006913/2.519, allocations: 0.607 MB / 1.186 GB, free: 124.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004972/2.519, allocations: 0.664 MB / 1.186 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007133/2.52, allocations: 76.33 kB / 1.186 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001272/2.52, allocations: 51.36 kB / 1.187 GB, free: 124 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/2.52, allocations: 3.844 kB / 1.187 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009348/2.521, allocations: 0.5613 MB / 1.187 GB, free: 123.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/2.521, allocations: 6.812 kB / 1.187 GB, free: 123.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/2.521, allocations: 6.812 kB / 1.187 GB, free: 123.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004073/2.521, allocations: 125.5 kB / 1.187 GB, free: 123.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/2.521, allocations: 10 kB / 1.187 GB, free: 123.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005907/2.522, allocations: 69.92 kB / 1.187 GB, free: 123.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.948e-05/2.522, allocations: 51.97 kB / 1.187 GB, free: 123.7 MB / 0.5417 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.0004633/2.523, allocations: 315.4 kB / 1.188 GB, free: 123.4 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/2.523, allocations: 74.98 kB / 1.188 GB, free: 123.4 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002078/2.525, allocations: 1.191 MB / 1.189 GB, free: 123 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/2.525, allocations: 3.875 kB / 1.189 GB, free: 123 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/2.525, allocations: 3.938 kB / 1.189 GB, free: 123 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/2.525, allocations: 7.781 kB / 1.189 GB, free: 123 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002606/2.527, allocations: 2.292 MB / 1.191 GB, free: 121.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.769e-06/2.528, allocations: 3.781 kB / 1.191 GB, free: 121.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001935/2.529, allocations: 219.8 kB / 1.191 GB, free: 121.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.215e-05/2.529, allocations: 3.875 kB / 1.191 GB, free: 121.1 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.241e-05/2.53, allocations: 23.08 kB / 1.191 GB, free: 121.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003503/2.53, allocations: 0.6478 MB / 1.192 GB, free: 120.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/2.53, allocations: 7.75 kB / 1.192 GB, free: 120.5 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/2.531, allocations: 0.8438 MB / 1.193 GB, free: 119.9 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000256/2.531, allocations: 154.2 kB / 1.193 GB, free: 119.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001563/2.531, allocations: 15.06 kB / 1.193 GB, free: 119.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004881/2.532, allocations: 36.44 kB / 1.193 GB, free: 119.7 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.414e-05/2.532, allocations: 41.81 kB / 1.193 GB, free: 119.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-05/2.532, allocations: 36.41 kB / 1.193 GB, free: 119.7 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0005695/2.533, allocations: 452.4 kB / 1.194 GB, free: 119.5 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/2.533, allocations: 2.094 kB / 1.194 GB, free: 119.5 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.002551/2.535, allocations: 0.5778 MB / 1.194 GB, free: 119.3 MB / 0.5417 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.004791/2.54, allocations: 3.154 MB / 1.197 GB, free: 117.3 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.013/2.553, allocations: 1.642 MB / 1.199 GB, free: 116.9 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.411e-05/2.553, allocations: 0 / 1.199 GB, free: 116.9 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00336/2.556, allocations: 477.1 kB / 1.199 GB, free: 116.7 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002313/2.559, allocations: 300.8 kB / 1.2 GB, free: 116.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009936/2.569, allocations: 7.146 MB / 1.207 GB, free: 111.3 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004517/2.569, allocations: 0.9044 MB / 1.207 GB, free: 110.6 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002238/2.572, allocations: 0.9945 MB / 1.208 GB, free: 110.4 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005431/2.572, allocations: 263.2 kB / 1.209 GB, free: 110.3 MB / 0.5417 GB Notification: Performance of SimCode: time 8.166e-06/2.572, allocations: 0 / 1.209 GB, free: 110.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06887/2.641, allocations: 33.83 MB / 1.242 GB, free: 90.12 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002817/2.641, allocations: 265.4 kB / 1.242 GB, free: 89.77 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.698/6.339, allocations: 0 / 1.242 GB, free: 89.77 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe 2>&1)