Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002176/0.002175, allocations: 185.3 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.105/2.105, allocations: 205.4 MB / 222.5 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001194/0.001193, allocations: 94 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5319/0.5319, allocations: 43.56 MB / 362.7 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000508/0.0005077, allocations: 12 kB / 431.5 MB, free: 6.066 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1364, allocations: 58.84 MB / 490.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.726/1.862, allocations: 475.2 MB / 0.9429 GB, free: 133.6 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002983/1.863, allocations: 85.33 kB / 0.943 GB, free: 133.5 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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 1.097/2.959, allocations: 197.7 MB / 1.136 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.374e-06/2.959, allocations: 0 / 1.136 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.678e-05/2.959, allocations: 18.53 kB / 1.136 GB, free: 108.2 MB / 0.5105 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.003108/2.962, allocations: 1.127 MB / 1.137 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/2.963, allocations: 11.12 kB / 1.137 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000198/2.963, allocations: 84.34 kB / 1.137 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001861/2.965, allocations: 179.8 kB / 1.137 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001522/2.966, allocations: 0.5439 MB / 1.138 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.089e-05/2.966, allocations: 38.72 kB / 1.138 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/2.966, allocations: 39.16 kB / 1.138 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001411/2.968, allocations: 0.6235 MB / 1.139 GB, free: 107 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.299e-05/2.968, allocations: 0 / 1.139 GB, free: 107 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.559e-05/2.968, allocations: 24.16 kB / 1.139 GB, free: 107 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/2.968, allocations: 10.72 kB / 1.139 GB, free: 107 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/2.969, allocations: 490.8 kB / 1.139 GB, free: 107 MB / 0.5105 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.004698/2.974, allocations: 2.669 MB / 1.142 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007918/2.975, allocations: 284.5 kB / 1.142 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000422/2.975, allocations: 246 kB / 1.142 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006437/2.976, allocations: 339.7 kB / 1.143 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=35): time 2.655e-06/2.976, allocations: 0 / 1.143 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=35): time 0.001822/2.978, allocations: 0.7209 MB / 1.143 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.862e-05/2.978, allocations: 301 kB / 1.144 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008963/2.979, allocations: 0.5523 MB / 1.144 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.94e-05/2.979, allocations: 33.14 kB / 1.144 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002469/2.979, allocations: 358.2 kB / 1.144 GB, free: 104.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/2.979, allocations: 115.4 kB / 1.145 GB, free: 104.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.814e-05/2.979, allocations: 10.66 kB / 1.145 GB, free: 104.1 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.942e-05/2.979, allocations: 327.8 kB / 1.145 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004311/2.98, allocations: 171.2 kB / 1.145 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005822/2.98, allocations: 390.7 kB / 1.145 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005495/2.981, allocations: 247.1 kB / 1.146 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/2.981, allocations: 0 / 1.146 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001513/2.982, allocations: 0.6151 MB / 1.146 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004753/2.983, allocations: 2.042 MB / 1.148 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/2.983, allocations: 3.875 kB / 1.148 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.523e-05/2.983, allocations: 7.75 kB / 1.148 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01211/2.995, allocations: 0.6048 MB / 1.149 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006929/2.996, allocations: 0.6692 MB / 1.15 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001116/2.997, allocations: 71.09 kB / 1.15 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001405/2.997, allocations: 55.92 kB / 1.15 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/2.997, allocations: 3.281 kB / 1.15 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001422/2.999, allocations: 0.5499 MB / 1.15 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/2.999, allocations: 7.031 kB / 1.15 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/2.999, allocations: 9.531 kB / 1.15 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007349/2.999, allocations: 122.3 kB / 1.15 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.657e-05/2.999, allocations: 17.03 kB / 1.15 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006487/3, allocations: 60.88 kB / 1.15 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/3, allocations: 50.45 kB / 1.15 GB, free: 100.4 MB / 0.5105 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.0005766/3.001, allocations: 307.5 kB / 1.151 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000218/3.001, allocations: 66.28 kB / 1.151 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002641/3.004, allocations: 0.8239 MB / 1.152 GB, free: 99.71 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/3.004, allocations: 3.781 kB / 1.152 GB, free: 99.71 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/3.004, allocations: 2.938 kB / 1.152 GB, free: 99.71 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/3.004, allocations: 3.609 kB / 1.152 GB, free: 99.71 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002999/3.007, allocations: 1.643 MB / 1.153 GB, free: 98.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/3.007, allocations: 3.594 kB / 1.153 GB, free: 98.61 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00356/3.01, allocations: 206.8 kB / 1.153 GB, free: 98.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.556e-05/3.01, allocations: 6.375 kB / 1.153 GB, free: 98.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001013/3.011, allocations: 25.66 kB / 1.153 GB, free: 98.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004949/3.011, allocations: 0.6434 MB / 1.154 GB, free: 97.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/3.011, allocations: 0 / 1.154 GB, free: 97.98 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001497/3.013, allocations: 0.7782 MB / 1.155 GB, free: 97.45 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002765/3.013, allocations: 149.8 kB / 1.155 GB, free: 97.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001788/3.013, allocations: 11.03 kB / 1.155 GB, free: 97.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007038/3.014, allocations: 27.55 kB / 1.155 GB, free: 97.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/3.014, allocations: 39.41 kB / 1.155 GB, free: 97.29 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.999e-05/3.014, allocations: 40.52 kB / 1.155 GB, free: 97.29 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0007396/3.015, allocations: 453 kB / 1.156 GB, free: 97.08 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.01e-07/3.015, allocations: 0 / 1.156 GB, free: 97.08 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002804/3.018, allocations: 0.6164 MB / 1.156 GB, free: 96.92 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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.004953/3.023, allocations: 2.901 MB / 1.159 GB, free: 95.18 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0219/3.045, allocations: 1.639 MB / 1.161 GB, free: 94.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/3.045, allocations: 3.938 kB / 1.161 GB, free: 94.79 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005682/3.05, allocations: 494.1 kB / 1.161 GB, free: 94.63 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002681/3.053, allocations: 297.5 kB / 1.161 GB, free: 94.57 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008534/3.062, allocations: 7.164 MB / 1.168 GB, free: 89.17 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004119/3.062, allocations: 0.9005 MB / 1.169 GB, free: 88.46 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008711/3.063, allocations: 271.6 kB / 1.169 GB, free: 88.31 MB / 0.5105 GB Notification: Performance of SimCode: time 1.233e-06/3.063, allocations: 3.594 kB / 1.169 GB, free: 88.31 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.391/6.454, allocations: 22.8 MB / 1.192 GB, free: 83.14 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat does not exist to compare? outputFormat=mat