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.002171/0.002172, allocations: 197.6 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.655/1.655, allocations: 225.6 MB / 234.8 MB, free: 3.234 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008802/0.0008801, allocations: 103.5 kB / 286.7 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2011/0.2011, allocations: 45.15 MB / 383.7 MB, free: 252 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.628e-05/1.629e-05, allocations: 0 / 453.3 MB, free: 75.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1109, allocations: 63.25 MB / 0.5045 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.339/1.45, allocations: 477.6 MB / 0.9708 GB, free: 162.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002904/1.451, allocations: 85.41 kB / 0.9709 GB, free: 162.4 MB / 0.5261 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.3645/1.815, allocations: 184.6 MB / 1.151 GB, free: 0.9336 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.182e-06/1.815, allocations: 0 / 1.151 GB, free: 0.9336 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.645e-05/1.815, allocations: 12 kB / 1.151 GB, free: 0.9219 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.319/2.134, allocations: 0.9925 MB / 1.152 GB, free: 109.2 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.228e-05/2.134, allocations: 8.812 kB / 1.152 GB, free: 109.2 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001963/2.136, allocations: 174.4 kB / 1.152 GB, free: 109.2 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001357/2.138, allocations: 0.5443 MB / 1.153 GB, free: 109 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.185e-05/2.138, allocations: 13.88 kB / 1.153 GB, free: 109 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.192e-05/2.138, allocations: 30.5 kB / 1.153 GB, free: 109 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008208/2.139, allocations: 452.5 kB / 1.153 GB, free: 109 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009457/2.14, allocations: 0.5472 MB / 1.154 GB, free: 108.8 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/2.14, allocations: 5.5 kB / 1.154 GB, free: 108.8 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.19e-05/2.14, allocations: 1.938 kB / 1.154 GB, free: 108.8 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.185e-05/2.14, allocations: 11.34 kB / 1.154 GB, free: 108.8 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.00344/2.143, allocations: 3.002 MB / 1.157 GB, free: 107 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006439/2.144, allocations: 273.5 kB / 1.157 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001825/2.144, allocations: 124.1 kB / 1.157 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002223/2.144, allocations: 260.7 kB / 1.157 GB, free: 106.6 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003204/2.145, allocations: 262 kB / 1.158 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=25): time 3.096e-06/2.145, allocations: 0 / 1.158 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=25): time 0.00963/2.154, allocations: 1.437 MB / 1.159 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/2.154, allocations: 295.2 kB / 1.159 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008301/2.155, allocations: 0.4962 MB / 1.16 GB, free: 106 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.391e-05/2.155, allocations: 26.8 kB / 1.16 GB, free: 106 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002752/2.156, allocations: 369.8 kB / 1.16 GB, free: 105.8 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 7.053e-05/2.156, allocations: 80.34 kB / 1.16 GB, free: 105.8 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.196e-05/2.156, allocations: 1.188 kB / 1.16 GB, free: 105.8 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000111/2.156, allocations: 371.7 kB / 1.161 GB, free: 105.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002569/2.156, allocations: 157.5 kB / 1.161 GB, free: 105.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003698/2.156, allocations: 362.2 kB / 1.161 GB, free: 105.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009372/2.166, allocations: 1.335 MB / 1.163 GB, free: 105.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-05/2.166, allocations: 7.125 kB / 1.163 GB, free: 105.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.01013/2.176, allocations: 1.722 MB / 1.164 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004084/2.177, allocations: 2.044 MB / 1.166 GB, free: 103 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/2.177, allocations: 4.906 kB / 1.166 GB, free: 103 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.722e-05/2.177, allocations: 11.28 kB / 1.166 GB, free: 103 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006253/2.183, allocations: 0.6051 MB / 1.167 GB, free: 103 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003584/2.186, allocations: 1.028 MB / 1.168 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009429/2.187, allocations: 61.95 kB / 1.168 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/2.188, allocations: 52.44 kB / 1.168 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/2.188, allocations: 4.875 kB / 1.168 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002745/2.19, allocations: 0.7718 MB / 1.169 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/2.19, allocations: 5.375 kB / 1.169 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/2.19, allocations: 12.11 kB / 1.169 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004454/2.191, allocations: 129.8 kB / 1.169 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/2.191, allocations: 8.828 kB / 1.169 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005717/2.191, allocations: 44.55 kB / 1.169 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.511e-05/2.192, allocations: 54.62 kB / 1.169 GB, free: 102.4 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.0002384/2.192, allocations: 159.5 kB / 1.169 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009609/2.201, allocations: 1.455 MB / 1.17 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.831e-05/2.202, allocations: 58.34 kB / 1.171 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003765/2.205, allocations: 0.7817 MB / 1.171 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.734e-06/2.205, allocations: 2.562 kB / 1.171 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/2.205, allocations: 8.047 kB / 1.171 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/2.205, allocations: 5.875 kB / 1.171 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007992/2.206, allocations: 454.6 kB / 1.172 GB, free: 101.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/2.206, allocations: 0 / 1.172 GB, free: 101.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001818/2.208, allocations: 176.6 kB / 1.172 GB, free: 101.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.368e-06/2.208, allocations: 4.891 kB / 1.172 GB, free: 101.9 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.16e-05/2.208, allocations: 5.703 kB / 1.172 GB, free: 101.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001001/2.209, allocations: 0.7343 MB / 1.173 GB, free: 101.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/2.209, allocations: 1.219 kB / 1.173 GB, free: 101.4 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003503/2.213, allocations: 0.7212 MB / 1.173 GB, free: 101.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002062/2.213, allocations: 154.4 kB / 1.173 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/2.213, allocations: 7.188 kB / 1.174 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003439/2.213, allocations: 22.44 kB / 1.174 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.139e-05/2.213, allocations: 15.95 kB / 1.174 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.686e-05/2.213, allocations: 14.72 kB / 1.174 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0004948/2.214, allocations: 404.7 kB / 1.174 GB, free: 101 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.1e-07/2.214, allocations: 5 kB / 1.174 GB, free: 101 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002178/2.216, allocations: 0.5598 MB / 1.174 GB, free: 101 MB / 0.5261 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.005446/2.222, allocations: 2.399 MB / 1.177 GB, free: 100.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01112/2.233, allocations: 1.55 MB / 1.178 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.303e-06/2.233, allocations: 3.844 kB / 1.178 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002817/2.236, allocations: 396.4 kB / 1.179 GB, free: 100.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00125/2.237, allocations: 211.8 kB / 1.179 GB, free: 100.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002289/2.239, allocations: 0.847 MB / 1.18 GB, free: 99.87 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003134/2.239, allocations: 0.8981 MB / 1.181 GB, free: 99.17 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001709/2.241, allocations: 0.8501 MB / 1.181 GB, free: 99.15 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003534/2.242, allocations: 229.8 kB / 1.182 GB, free: 99.14 MB / 0.5261 GB Notification: Performance of SimCode: time 1.072e-06/2.242, allocations: 0 / 1.182 GB, free: 99.14 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05155/2.293, allocations: 24.84 MB / 1.206 GB, free: 98.48 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001644/2.293, allocations: 190.4 kB / 1.206 GB, free: 98.29 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.074/5.367, allocations: 0 / 1.206 GB, free: 98.29 MB / 0.5261 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)