Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,fileNamePrefix="ModelicaTest_3_2_3_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.001431/0.001431, allocations: 183.2 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.836/1.836, allocations: 205.4 MB / 221.9 MB, free: 13.86 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.001005/0.001006, allocations: 82.88 kB / 270.2 MB, free: 13.38 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.241/0.241, allocations: 43.57 MB / 362.1 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003461/0.000346, allocations: 8 kB / 431.5 MB, free: 19.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1397, allocations: 58.84 MB / 490.3 MB, free: 8.598 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.993/1.133, allocations: 289.1 MB / 0.7611 GB, free: 129.3 MB / 0.4949 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003039/1.133, allocations: 88.62 kB / 0.7612 GB, free: 129.3 MB / 0.4949 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 0.2343/1.367, allocations: 117.8 MB / 0.8763 GB, free: 18.73 MB / 0.4949 GB Notification: Performance of FrontEnd: time 1.934e-06/1.367, allocations: 0 / 0.8763 GB, free: 18.73 MB / 0.4949 GB Notification: Performance of Transformations before backend: time 5.981e-05/1.368, allocations: 15.98 kB / 0.8763 GB, free: 18.71 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.002209/1.37, allocations: 0.9361 MB / 0.8772 GB, free: 17.73 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/1.37, allocations: 16.02 kB / 0.8772 GB, free: 17.71 MB / 0.4949 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002742/1.37, allocations: 94.45 kB / 0.8773 GB, free: 17.61 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005184/1.371, allocations: 83.14 kB / 0.8774 GB, free: 17.53 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001179/1.372, allocations: 0.5171 MB / 0.8779 GB, free: 16.97 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.402e-05/1.372, allocations: 37 kB / 0.8779 GB, free: 16.93 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.1e-05/1.372, allocations: 43.95 kB / 0.878 GB, free: 16.89 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009889/1.373, allocations: 0.6629 MB / 0.8786 GB, free: 16.17 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/1.373, allocations: 0 / 0.8786 GB, free: 16.17 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.823e-05/1.373, allocations: 20 kB / 0.8786 GB, free: 16.15 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/1.373, allocations: 12 kB / 0.8787 GB, free: 16.14 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007466/1.374, allocations: 0.5191 MB / 0.8792 GB, free: 15.62 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003254/1.377, allocations: 3.085 MB / 0.8822 GB, free: 12.35 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003397/1.378, allocations: 222.7 kB / 0.8824 GB, free: 12.12 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001993/1.378, allocations: 332.4 kB / 0.8827 GB, free: 11.72 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003346/1.378, allocations: 290.6 kB / 0.883 GB, free: 11.4 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=28): time 1.873e-06/1.378, allocations: 0 / 0.883 GB, free: 11.4 MB / 0.4949 GB Notification: Performance of matching and sorting (n=28): time 0.0009467/1.379, allocations: 0.5771 MB / 0.8835 GB, free: 10.79 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.227e-05/1.379, allocations: 290.9 kB / 0.8838 GB, free: 10.44 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004987/1.38, allocations: 0.4941 MB / 0.8843 GB, free: 9.938 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 4.264e-05/1.38, allocations: 33.7 kB / 0.8843 GB, free: 9.898 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001787/1.38, allocations: 335 kB / 0.8847 GB, free: 9.566 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 6.963e-05/1.38, allocations: 94.73 kB / 0.8847 GB, free: 9.473 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.347e-05/1.38, allocations: 8 kB / 0.8848 GB, free: 9.465 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 8.909e-05/1.38, allocations: 362.8 kB / 0.8851 GB, free: 9.102 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002096/1.38, allocations: 149 kB / 0.8852 GB, free: 8.957 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003022/1.381, allocations: 376.9 kB / 0.8856 GB, free: 8.492 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002867/1.381, allocations: 220.3 kB / 0.8858 GB, free: 8.273 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/1.381, allocations: 4 kB / 0.8858 GB, free: 8.27 MB / 0.4949 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009159/1.382, allocations: 0.6189 MB / 0.8864 GB, free: 7.637 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004513/1.382, allocations: 2.134 MB / 0.8885 GB, free: 5.336 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/1.382, allocations: 4 kB / 0.8885 GB, free: 5.332 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.588e-05/1.382, allocations: 8 kB / 0.8885 GB, free: 5.324 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/1.384, allocations: 179.7 kB / 0.8887 GB, free: 5.148 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003871/1.384, allocations: 0.6094 MB / 0.8893 GB, free: 4.516 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006172/1.385, allocations: 91.3 kB / 0.8894 GB, free: 4.426 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.761e-05/1.385, allocations: 31.98 kB / 0.8894 GB, free: 4.395 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/1.385, allocations: 4 kB / 0.8894 GB, free: 4.391 MB / 0.4949 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007801/1.385, allocations: 0.5286 MB / 0.8899 GB, free: 3.855 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.958e-06/1.385, allocations: 7.984 kB / 0.8899 GB, free: 3.848 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.967e-06/1.385, allocations: 8 kB / 0.8899 GB, free: 3.84 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003373/1.386, allocations: 119.8 kB / 0.8901 GB, free: 3.723 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/1.386, allocations: 11.94 kB / 0.8901 GB, free: 3.711 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005421/1.386, allocations: 67.83 kB / 0.8901 GB, free: 3.645 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.422e-05/1.386, allocations: 31.98 kB / 0.8902 GB, free: 3.613 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.000385/1.387, allocations: 299.5 kB / 0.8904 GB, free: 3.305 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/1.387, allocations: 63.3 kB / 0.8905 GB, free: 3.242 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001245/1.388, allocations: 0.7552 MB / 0.8912 GB, free: 2.465 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/1.388, allocations: 8 kB / 0.8912 GB, free: 2.457 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/1.388, allocations: 0 / 0.8912 GB, free: 2.457 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/1.388, allocations: 7.969 kB / 0.8913 GB, free: 2.449 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006632/1.389, allocations: 0.5209 MB / 0.8918 GB, free: 1.879 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/1.389, allocations: 3.984 kB / 0.8918 GB, free: 1.875 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005791/1.39, allocations: 111.8 kB / 0.8919 GB, free: 1.766 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.043e-05/1.39, allocations: 11.98 kB / 0.8919 GB, free: 1.754 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.637e-05/1.39, allocations: 16 kB / 0.8919 GB, free: 1.738 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002217/1.39, allocations: 0.5821 MB / 0.8925 GB, free: 1.133 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/1.39, allocations: 3.938 kB / 0.8925 GB, free: 1.129 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007229/1.391, allocations: 0.5369 MB / 0.893 GB, free: 0.5664 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003006/1.391, allocations: 220 kB / 0.8932 GB, free: 340 kB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/1.391, allocations: 16 kB / 0.8932 GB, free: 324 kB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003541/1.391, allocations: 19.98 kB / 0.8932 GB, free: 304 kB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.652e-05/1.391, allocations: 28.28 kB / 0.8933 GB, free: 276 kB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.589e-05/1.392, allocations: 20 kB / 0.8933 GB, free: 256 kB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.3155/1.707, allocations: 408.2 kB / 0.8937 GB, free: 125.5 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.162e-06/1.707, allocations: 0 / 0.8937 GB, free: 125.5 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.002411/1.709, allocations: 457.8 kB / 0.8941 GB, free: 125.5 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.002625/1.712, allocations: 1.429 MB / 0.8955 GB, free: 124.9 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.00272/1.715, allocations: 0.8946 MB / 0.8964 GB, free: 124.7 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/1.715, allocations: 1.125 kB / 0.8964 GB, free: 124.7 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.001021/1.716, allocations: 363.9 kB / 0.8967 GB, free: 124.7 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001689/1.718, allocations: 265.2 kB / 0.897 GB, free: 124.7 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00804/1.726, allocations: 6.904 MB / 0.9037 GB, free: 120.1 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007532/1.726, allocations: 0.9052 MB / 0.9046 GB, free: 119.4 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.001095/1.728, allocations: 203.9 kB / 0.9048 GB, free: 119.4 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004294/1.728, allocations: 233.8 kB / 0.905 GB, free: 119.3 MB / 0.4949 GB Notification: Performance of SimCode: time 2.645e-06/1.728, allocations: 0 / 0.905 GB, free: 119.3 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07489/1.803, allocations: 21.22 MB / 0.9258 GB, free: 118.4 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002554/1.803, allocations: 274 kB / 0.926 GB, free: 118.1 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.873/4.676, allocations: 0 / 0.926 GB, free: 118.1 MB / 0.4949 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat does not exist to compare? outputFormat=mat