Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.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.TestSimpleGenericOrifice,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice",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.001576/0.001576, 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.121 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.001156/0.001155, allocations: 81.61 kB / 270.9 MB, free: 8.387 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.5221/0.5221, allocations: 43.56 MB / 362.7 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005007/0.0005006, allocations: 8 kB / 431.5 MB, free: 5.848 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1369, allocations: 58.85 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.197/1.334, allocations: 289 MB / 0.7611 GB, free: 81.02 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003278/1.335, allocations: 88.94 kB / 0.7612 GB, free: 80.96 MB / 490.7 MB [/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 0.7827/2.117, allocations: 117.8 MB / 0.8763 GB, free: 117.2 MB / 0.4949 GB Notification: Performance of FrontEnd: time 2.995e-06/2.117, allocations: 0 / 0.8763 GB, free: 117.2 MB / 0.4949 GB Notification: Performance of Transformations before backend: time 5.756e-05/2.117, allocations: 16.53 kB / 0.8763 GB, free: 117.2 MB / 0.4949 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.002463/2.12, allocations: 0.9348 MB / 0.8772 GB, free: 116.6 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/2.12, allocations: 13.8 kB / 0.8772 GB, free: 116.6 MB / 0.4949 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002299/2.12, allocations: 88.02 kB / 0.8773 GB, free: 116.6 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004739/2.121, allocations: 78.3 kB / 0.8774 GB, free: 116.5 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001531/2.122, allocations: 0.5275 MB / 0.8779 GB, free: 116.3 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.162e-05/2.122, allocations: 32.97 kB / 0.8779 GB, free: 116.3 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.289e-05/2.122, allocations: 45.42 kB / 0.878 GB, free: 116.3 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001416/2.124, allocations: 0.6561 MB / 0.8786 GB, free: 116.1 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.555e-05/2.124, allocations: 1.781 kB / 0.8786 GB, free: 116.1 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.237e-05/2.124, allocations: 35.08 kB / 0.8786 GB, free: 116.1 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.608e-05/2.124, allocations: 12.8 kB / 0.8786 GB, free: 116.1 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001125/2.125, allocations: 0.5196 MB / 0.8792 GB, free: 116.1 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004907/2.13, allocations: 3.076 MB / 0.8822 GB, free: 114.2 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005746/2.131, allocations: 213.9 kB / 0.8824 GB, free: 114.2 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003009/2.131, allocations: 340.5 kB / 0.8827 GB, free: 113.8 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005487/2.132, allocations: 285.1 kB / 0.883 GB, free: 113.7 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=28): time 2.595e-06/2.132, allocations: 0 / 0.883 GB, free: 113.7 MB / 0.4949 GB Notification: Performance of matching and sorting (n=28): time 0.001505/2.133, allocations: 0.5813 MB / 0.8835 GB, free: 113.5 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/2.133, allocations: 292.6 kB / 0.8838 GB, free: 113.2 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008455/2.134, allocations: 497.7 kB / 0.8843 GB, free: 113 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 8.566e-05/2.134, allocations: 29.45 kB / 0.8843 GB, free: 113 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002434/2.135, allocations: 369.9 kB / 0.8847 GB, free: 112.8 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/2.135, allocations: 95.53 kB / 0.8847 GB, free: 112.7 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.619e-05/2.135, allocations: 13.28 kB / 0.8848 GB, free: 112.7 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 7.572e-05/2.135, allocations: 327.9 kB / 0.8851 GB, free: 112.4 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003781/2.135, allocations: 142.2 kB / 0.8852 GB, free: 112.4 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005482/2.136, allocations: 372.1 kB / 0.8856 GB, free: 112.1 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004873/2.136, allocations: 224.7 kB / 0.8858 GB, free: 112.1 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/2.136, allocations: 0 / 0.8858 GB, free: 112.1 MB / 0.4949 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.00145/2.138, allocations: 0.5768 MB / 0.8863 GB, free: 112 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004901/2.138, allocations: 2.13 MB / 0.8884 GB, free: 109.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/2.138, allocations: 9.656 kB / 0.8884 GB, free: 109.8 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.348e-05/2.138, allocations: 9.719 kB / 0.8884 GB, free: 109.8 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002028/2.14, allocations: 170.5 kB / 0.8886 GB, free: 109.8 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000539/2.141, allocations: 0.6212 MB / 0.8892 GB, free: 109.2 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009788/2.142, allocations: 80.22 kB / 0.8893 GB, free: 109.2 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/2.142, allocations: 33.95 kB / 0.8893 GB, free: 109.2 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/2.142, allocations: 3.125 kB / 0.8893 GB, free: 109.2 MB / 0.4949 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001326/2.143, allocations: 0.5339 MB / 0.8898 GB, free: 109.2 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/2.143, allocations: 6.984 kB / 0.8898 GB, free: 109.2 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/2.143, allocations: 8.844 kB / 0.8899 GB, free: 109.2 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006815/2.144, allocations: 113.6 kB / 0.89 GB, free: 109.2 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.636e-05/2.144, allocations: 19.38 kB / 0.89 GB, free: 109.2 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006404/2.145, allocations: 49.19 kB / 0.89 GB, free: 109.2 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.246e-05/2.145, allocations: 31.92 kB / 0.8901 GB, free: 109.2 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (56): * Single equations (assignments): 54 * 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.0005263/2.145, allocations: 307.6 kB / 0.8904 GB, free: 108.9 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001899/2.146, allocations: 60.22 kB / 0.8904 GB, free: 108.9 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002023/2.148, allocations: 0.7624 MB / 0.8912 GB, free: 108.8 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.574e-05/2.148, allocations: 10.16 kB / 0.8912 GB, free: 108.8 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/2.148, allocations: 0 / 0.8912 GB, free: 108.8 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.537e-06/2.148, allocations: 3.188 kB / 0.8912 GB, free: 108.8 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009855/2.149, allocations: 0.5222 MB / 0.8917 GB, free: 108.6 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/2.149, allocations: 5.656 kB / 0.8917 GB, free: 108.6 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001047/2.15, allocations: 112.4 kB / 0.8918 GB, free: 108.6 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.157e-06/2.15, allocations: 2.969 kB / 0.8918 GB, free: 108.6 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.005e-05/2.15, allocations: 11.25 kB / 0.8918 GB, free: 108.6 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003366/2.15, allocations: 0.5963 MB / 0.8924 GB, free: 108 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.165e-06/2.15, allocations: 3 kB / 0.8924 GB, free: 108 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/2.152, allocations: 0.5307 MB / 0.8929 GB, free: 107.9 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004249/2.152, allocations: 223.4 kB / 0.8931 GB, free: 107.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001566/2.152, allocations: 9.594 kB / 0.8931 GB, free: 107.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005962/2.153, allocations: 32.75 kB / 0.8932 GB, free: 107.7 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.354e-05/2.153, allocations: 26.69 kB / 0.8932 GB, free: 107.7 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.867e-05/2.153, allocations: 13.72 kB / 0.8932 GB, free: 107.7 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.0006779/2.154, allocations: 414 kB / 0.8936 GB, free: 107.6 MB / 0.4949 GB Notification: Performance of sort global known variables: time 4.81e-07/2.154, allocations: 2.812 kB / 0.8936 GB, free: 107.6 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.002014/2.156, allocations: 460.6 kB / 0.894 GB, free: 107.6 MB / 0.4949 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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.002674/2.158, allocations: 1.443 MB / 0.8954 GB, free: 106.8 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.003508/2.162, allocations: 0.889 MB / 0.8963 GB, free: 106.7 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 8.837e-06/2.162, allocations: 0 / 0.8963 GB, free: 106.7 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.001488/2.164, allocations: 363.2 kB / 0.8967 GB, free: 106.6 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002284/2.166, allocations: 270.5 kB / 0.8969 GB, free: 106.6 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008554/2.174, allocations: 6.931 MB / 0.9037 GB, free: 101.9 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005148/2.175, allocations: 0.9046 MB / 0.9046 GB, free: 101.2 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005574/2.176, allocations: 238.8 kB / 0.9048 GB, free: 101.1 MB / 0.4949 GB Notification: Performance of SimCode: time 9.92e-07/2.176, allocations: 2.781 kB / 0.9048 GB, free: 101.1 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.035/5.211, allocations: 17.53 MB / 0.9219 GB, free: 99.99 MB / 0.4949 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat does not exist to compare? outputFormat=mat