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.001026/0.001026, allocations: 196.7 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001045/0.001045, allocations: 85.5 kB / 292.1 MB, free: 5.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1926/0.1926, allocations: 45.15 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.146e-05/3.15e-05, allocations: 4 kB / 460.5 MB, free: 69.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1208, allocations: 63.24 MB / 0.5115 GB, free: 6.715 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.298/1.419, allocations: 478.2 MB / 0.9785 GB, free: 172.4 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002267/1.419, allocations: 87.27 kB / 0.9786 GB, free: 172.4 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.3615/1.781, allocations: 190.3 MB / 1.164 GB, free: 10.92 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.525e-06/1.781, allocations: 4 kB / 1.164 GB, free: 10.91 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.715e-05/1.781, allocations: 20 kB / 1.164 GB, free: 10.89 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.002164/1.783, allocations: 0.9997 MB / 1.165 GB, free: 9.844 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/1.783, allocations: 8.031 kB / 1.165 GB, free: 9.836 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001572/1.783, allocations: 82.53 kB / 1.165 GB, free: 9.746 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00132/1.785, allocations: 171 kB / 1.166 GB, free: 9.578 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/1.786, allocations: 0.5522 MB / 1.166 GB, free: 8.988 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.829e-05/1.786, allocations: 33 kB / 1.166 GB, free: 8.953 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.266e-05/1.786, allocations: 40 kB / 1.166 GB, free: 8.914 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008871/1.787, allocations: 0.6115 MB / 1.167 GB, free: 8.258 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/1.787, allocations: 0 / 1.167 GB, free: 8.258 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.149e-05/1.787, allocations: 20 kB / 1.167 GB, free: 8.238 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/1.787, allocations: 12 kB / 1.167 GB, free: 8.227 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006514/1.788, allocations: 479.1 kB / 1.167 GB, free: 7.754 MB / 0.5417 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.002823/1.791, allocations: 2.669 MB / 1.17 GB, free: 4.906 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004356/1.791, allocations: 287 kB / 1.17 GB, free: 4.613 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002201/1.791, allocations: 177.1 kB / 1.17 GB, free: 4.438 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002644/1.792, allocations: 348.5 kB / 1.171 GB, free: 4.023 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003697/1.792, allocations: 342.3 kB / 1.171 GB, free: 3.652 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=35): time 2.564e-06/1.792, allocations: 0 / 1.171 GB, free: 3.652 MB / 0.5417 GB Notification: Performance of matching and sorting (n=35): time 0.000806/1.793, allocations: 0.4985 MB / 1.172 GB, free: 3.141 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.257e-05/1.793, allocations: 290.7 kB / 1.172 GB, free: 2.789 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005327/1.793, allocations: 0.5462 MB / 1.172 GB, free: 2.234 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.687e-05/1.793, allocations: 33.7 kB / 1.172 GB, free: 2.195 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001781/1.794, allocations: 331.4 kB / 1.173 GB, free: 1.867 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 8.565e-05/1.794, allocations: 118.4 kB / 1.173 GB, free: 1.75 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.997e-05/1.794, allocations: 16 kB / 1.173 GB, free: 1.734 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.078e-05/1.794, allocations: 366.8 kB / 1.173 GB, free: 1.367 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000233/1.794, allocations: 165.1 kB / 1.173 GB, free: 1.207 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003076/1.794, allocations: 384.3 kB / 1.174 GB, free: 0.7344 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002899/1.795, allocations: 256.1 kB / 1.174 GB, free: 492 kB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/1.795, allocations: 0 / 1.174 GB, free: 492 kB / 0.5417 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.2591/2.054, allocations: 0.6523 MB / 1.175 GB, free: 120.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003637/2.054, allocations: 2.036 MB / 1.177 GB, free: 118.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/2.054, allocations: 7.5 kB / 1.177 GB, free: 118.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.821e-05/2.054, allocations: 7.531 kB / 1.177 GB, free: 118.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006187/2.06, allocations: 0.608 MB / 1.177 GB, free: 118.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004526/2.061, allocations: 0.6622 MB / 1.178 GB, free: 117.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006847/2.062, allocations: 73.55 kB / 1.178 GB, free: 117.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/2.062, allocations: 57.98 kB / 1.178 GB, free: 117.9 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/2.062, allocations: 7.938 kB / 1.178 GB, free: 117.9 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008843/2.063, allocations: 0.5443 MB / 1.178 GB, free: 117.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/2.063, allocations: 8 kB / 1.178 GB, free: 117.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/2.063, allocations: 7.719 kB / 1.178 GB, free: 117.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004102/2.063, allocations: 125 kB / 1.179 GB, free: 117.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/2.063, allocations: 11.41 kB / 1.179 GB, free: 117.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004424/2.064, allocations: 65.06 kB / 1.179 GB, free: 117.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.809e-05/2.064, allocations: 51.48 kB / 1.179 GB, free: 117.8 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 () * 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.0001893/2.064, allocations: 173.3 kB / 1.179 GB, free: 117.7 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/2.064, allocations: 77.45 kB / 1.179 GB, free: 117.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002203/2.066, allocations: 1.186 MB / 1.18 GB, free: 117.6 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/2.066, allocations: 3.812 kB / 1.18 GB, free: 117.6 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/2.066, allocations: 0 / 1.18 GB, free: 117.6 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/2.066, allocations: 5.172 kB / 1.18 GB, free: 117.6 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001931/2.068, allocations: 2.287 MB / 1.182 GB, free: 116 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/2.068, allocations: 3.906 kB / 1.182 GB, free: 116 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001801/2.07, allocations: 212.8 kB / 1.183 GB, free: 116 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/2.07, allocations: 4.422 kB / 1.183 GB, free: 116 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.002e-05/2.07, allocations: 26.02 kB / 1.183 GB, free: 116 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002634/2.07, allocations: 0.6442 MB / 1.183 GB, free: 115.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/2.07, allocations: 6.344 kB / 1.183 GB, free: 115.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007324/2.071, allocations: 0.8445 MB / 1.184 GB, free: 114.9 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/2.071, allocations: 156.9 kB / 1.184 GB, free: 114.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/2.071, allocations: 18 kB / 1.184 GB, free: 114.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003856/2.072, allocations: 36.44 kB / 1.184 GB, free: 114.8 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.273e-05/2.072, allocations: 38.23 kB / 1.184 GB, free: 114.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.117e-05/2.072, allocations: 42.17 kB / 1.184 GB, free: 114.8 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0004087/2.072, allocations: 442.3 kB / 1.185 GB, free: 114.7 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.6e-07/2.072, allocations: 0.6562 kB / 1.185 GB, free: 114.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001727/2.074, allocations: 0.592 MB / 1.185 GB, free: 114.7 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) * 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.002819/2.077, allocations: 3.126 MB / 1.188 GB, free: 112.9 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01045/2.087, allocations: 1.654 MB / 1.19 GB, free: 112.8 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/2.087, allocations: 4.578 kB / 1.19 GB, free: 112.8 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002783/2.09, allocations: 482.2 kB / 1.19 GB, free: 112.7 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001469/2.092, allocations: 296.9 kB / 1.191 GB, free: 112.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002091/2.094, allocations: 1.016 MB / 1.192 GB, free: 112.4 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000411/2.094, allocations: 0.9031 MB / 1.193 GB, free: 111.7 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002481/2.097, allocations: 1.03 MB / 1.194 GB, free: 111.7 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004504/2.097, allocations: 258.7 kB / 1.194 GB, free: 111.7 MB / 0.5417 GB Notification: Performance of SimCode: time 8.91e-07/2.097, allocations: 0 / 1.194 GB, free: 111.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06041/2.157, allocations: 37.22 MB / 1.23 GB, free: 110.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001737/2.158, allocations: 236.9 kB / 1.23 GB, free: 110.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.141/5.299, allocations: 0 / 1.23 GB, free: 110.4 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)