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.00148/0.00148, allocations: 181.1 kB / 13.66 MB, free: 1.664 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.026/2.026, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001148/0.001148, allocations: 85.92 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2827/0.2827, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.094e-05/4.101e-05, allocations: 8 kB / 425.4 MB, free: 23.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1212, allocations: 58.86 MB / 484.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.689/1.81, allocations: 475.1 MB / 0.9369 GB, free: 161.9 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002838/1.811, allocations: 85.3 kB / 0.9369 GB, free: 161.9 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.058/2.869, allocations: 197.1 MB / 1.129 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.454e-06/2.869, allocations: 0 / 1.129 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.301e-05/2.869, allocations: 18.8 kB / 1.129 GB, free: 118.4 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.003485/2.872, allocations: 1.038 MB / 1.13 GB, free: 118 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.661e-05/2.872, allocations: 7.781 kB / 1.13 GB, free: 118 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002239/2.873, allocations: 92.42 kB / 1.131 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002011/2.875, allocations: 175.9 kB / 1.131 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001781/2.876, allocations: 0.547 MB / 1.131 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.241e-05/2.876, allocations: 38.28 kB / 1.131 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/2.877, allocations: 40.97 kB / 1.131 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/2.878, allocations: 0.6001 MB / 1.132 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.218e-05/2.878, allocations: 0 / 1.132 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/2.878, allocations: 20.55 kB / 1.132 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.959e-05/2.878, allocations: 11.5 kB / 1.132 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/2.879, allocations: 486.1 kB / 1.132 GB, free: 117.5 MB / 0.5105 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.005034/2.885, allocations: 2.664 MB / 1.135 GB, free: 116 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007942/2.885, allocations: 279.8 kB / 1.135 GB, free: 116 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000407/2.886, allocations: 181.6 kB / 1.135 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004106/2.886, allocations: 234.3 kB / 1.136 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006415/2.887, allocations: 345.5 kB / 1.136 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=35): time 3.016e-06/2.887, allocations: 0 / 1.136 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=35): time 0.001401/2.888, allocations: 0.4899 MB / 1.137 GB, free: 115.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/2.888, allocations: 292.5 kB / 1.137 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009553/2.889, allocations: 0.549 MB / 1.137 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001387/2.89, allocations: 35.55 kB / 1.137 GB, free: 115 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002523/2.89, allocations: 354.1 kB / 1.138 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/2.89, allocations: 114.1 kB / 1.138 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.874e-05/2.89, allocations: 10.59 kB / 1.138 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.01e-05/2.89, allocations: 334 kB / 1.138 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004319/2.891, allocations: 162.9 kB / 1.138 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000577/2.891, allocations: 387.7 kB / 1.139 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005448/2.892, allocations: 243.5 kB / 1.139 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/2.892, allocations: 3.469 kB / 1.139 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001522/2.893, allocations: 0.608 MB / 1.139 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004695/2.894, allocations: 2.042 MB / 1.141 GB, free: 112 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/2.894, allocations: 7.219 kB / 1.141 GB, free: 112 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.229e-05/2.894, allocations: 7.844 kB / 1.142 GB, free: 112 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01188/2.906, allocations: 0.5957 MB / 1.142 GB, free: 112 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006624/2.906, allocations: 0.6615 MB / 1.143 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001172/2.908, allocations: 77.25 kB / 1.143 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001571/2.908, allocations: 54.75 kB / 1.143 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/2.908, allocations: 3.469 kB / 1.143 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001384/2.909, allocations: 0.5447 MB / 1.143 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/2.909, allocations: 7.016 kB / 1.143 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/2.909, allocations: 10.5 kB / 1.143 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007526/2.91, allocations: 127.4 kB / 1.144 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.422e-05/2.91, allocations: 14.14 kB / 1.144 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006517/2.911, allocations: 62.91 kB / 1.144 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/2.911, allocations: 47.94 kB / 1.144 GB, free: 111.3 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 () * 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.0003405/2.911, allocations: 177 kB / 1.144 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002183/2.912, allocations: 70.91 kB / 1.144 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002647/2.914, allocations: 0.8191 MB / 1.145 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/2.914, allocations: 3.344 kB / 1.145 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/2.914, allocations: 0 / 1.145 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/2.914, allocations: 0 / 1.145 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002998/2.917, allocations: 1.64 MB / 1.146 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.285e-06/2.917, allocations: 3.703 kB / 1.146 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003431/2.921, allocations: 209.1 kB / 1.146 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.825e-05/2.921, allocations: 3.375 kB / 1.146 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/2.921, allocations: 25.55 kB / 1.147 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004779/2.921, allocations: 0.6426 MB / 1.147 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/2.921, allocations: 3.781 kB / 1.147 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001459/2.923, allocations: 0.764 MB / 1.148 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002693/2.923, allocations: 153.8 kB / 1.148 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001939/2.923, allocations: 11.69 kB / 1.148 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007999/2.924, allocations: 31.44 kB / 1.148 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/2.924, allocations: 37.8 kB / 1.148 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.593e-05/2.925, allocations: 38.64 kB / 1.148 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0007656/2.925, allocations: 451 kB / 1.149 GB, free: 109 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.91e-07/2.925, allocations: 0 / 1.149 GB, free: 109 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002919/2.928, allocations: 0.6219 MB / 1.149 GB, free: 109 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) * 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.005001/2.933, allocations: 2.902 MB / 1.152 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02137/2.955, allocations: 1.624 MB / 1.154 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/2.955, allocations: 3.656 kB / 1.154 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005417/2.96, allocations: 485.1 kB / 1.154 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002766/2.963, allocations: 297.7 kB / 1.154 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004047/2.967, allocations: 1.025 MB / 1.155 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004924/2.968, allocations: 0.9025 MB / 1.156 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001001/2.969, allocations: 280.7 kB / 1.157 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of SimCode: time 2.405e-06/2.969, allocations: 0 / 1.157 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.779/6.747, allocations: 22.7 MB / 1.179 GB, free: 104.9 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