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.001598/0.001598, allocations: 182.8 kB / 13.19 MB, free: 2.129 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.569/1.569, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.0008106/0.0008105, allocations: 86.55 kB / 267 MB, free: 9.281 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.3842/0.3842, allocations: 43.47 MB / 358.6 MB, free: 51.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.095e-05/4.098e-05, allocations: 0 / 425.4 MB, free: 8.105 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1335, allocations: 58.84 MB / 484.3 MB, free: 13.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8717/1.005, allocations: 288.9 MB / 0.7551 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002391/1.006, allocations: 84.38 kB / 0.7552 GB, free: 139.3 MB / 0.4948 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.2195/1.225, allocations: 117.4 MB / 0.8698 GB, free: 20.93 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.683e-06/1.225, allocations: 0 / 0.8698 GB, free: 20.93 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.31e-05/1.225, allocations: 19.98 kB / 0.8698 GB, free: 20.91 MB / 0.4948 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.001517/1.227, allocations: 0.8598 MB / 0.8707 GB, free: 20 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/1.227, allocations: 15.95 kB / 0.8707 GB, free: 19.98 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001198/1.227, allocations: 82.53 kB / 0.8708 GB, free: 19.89 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003242/1.227, allocations: 83.14 kB / 0.8708 GB, free: 19.81 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009092/1.228, allocations: 0.5184 MB / 0.8714 GB, free: 19.26 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.438e-05/1.228, allocations: 29 kB / 0.8714 GB, free: 19.23 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.388e-05/1.228, allocations: 51.95 kB / 0.8714 GB, free: 19.18 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008875/1.229, allocations: 0.6473 MB / 0.8721 GB, free: 18.47 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/1.229, allocations: 0 / 0.8721 GB, free: 18.47 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.734e-05/1.229, allocations: 24 kB / 0.8721 GB, free: 18.45 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/1.229, allocations: 15.94 kB / 0.8721 GB, free: 18.43 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006578/1.23, allocations: 0.5075 MB / 0.8726 GB, free: 17.93 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003091/1.233, allocations: 3.077 MB / 0.8756 GB, free: 14.66 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003696/1.233, allocations: 222.6 kB / 0.8758 GB, free: 14.43 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002035/1.234, allocations: 138.5 kB / 0.8759 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000294/1.234, allocations: 332.4 kB / 0.8763 GB, free: 13.9 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003501/1.234, allocations: 281 kB / 0.8765 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=28): time 3.046e-06/1.234, allocations: 0 / 0.8765 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of matching and sorting (n=28): time 0.0007578/1.235, allocations: 405.5 kB / 0.8769 GB, free: 13.18 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.102e-05/1.235, allocations: 290.9 kB / 0.8772 GB, free: 12.83 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00048/1.236, allocations: 492.8 kB / 0.8777 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.399e-05/1.236, allocations: 25.7 kB / 0.8777 GB, free: 12.31 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/1.236, allocations: 339 kB / 0.878 GB, free: 11.98 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 5.493e-05/1.236, allocations: 98.67 kB / 0.8781 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.209e-05/1.236, allocations: 8 kB / 0.8781 GB, free: 11.87 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.137e-05/1.236, allocations: 370.8 kB / 0.8785 GB, free: 11.5 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001974/1.236, allocations: 141.1 kB / 0.8786 GB, free: 11.36 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002998/1.237, allocations: 365 kB / 0.879 GB, free: 10.91 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002664/1.237, allocations: 222 kB / 0.8792 GB, free: 10.68 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.137e-06/1.237, allocations: 3.938 kB / 0.8792 GB, free: 10.68 MB / 0.4948 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000821/1.238, allocations: 0.6168 MB / 0.8798 GB, free: 10.05 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003739/1.238, allocations: 2.119 MB / 0.8818 GB, free: 7.762 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/1.238, allocations: 8 kB / 0.8818 GB, free: 7.754 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.284e-05/1.238, allocations: 8 kB / 0.8819 GB, free: 7.746 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/1.239, allocations: 175.7 kB / 0.882 GB, free: 7.574 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000355/1.24, allocations: 0.6211 MB / 0.8826 GB, free: 6.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005676/1.24, allocations: 75.27 kB / 0.8827 GB, free: 6.855 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.612e-05/1.24, allocations: 35.97 kB / 0.8827 GB, free: 6.82 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/1.24, allocations: 4.625 kB / 0.8827 GB, free: 6.816 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000725/1.241, allocations: 0.5249 MB / 0.8833 GB, free: 6.285 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/1.241, allocations: 12.12 kB / 0.8833 GB, free: 6.273 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.957e-06/1.241, allocations: 8 kB / 0.8833 GB, free: 6.266 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003254/1.241, allocations: 115.8 kB / 0.8834 GB, free: 6.152 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/1.241, allocations: 8 kB / 0.8834 GB, free: 6.145 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004104/1.242, allocations: 63.42 kB / 0.8834 GB, free: 6.082 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.847e-05/1.242, allocations: 35.98 kB / 0.8835 GB, free: 6.047 MB / 0.4948 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 () * 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.0001798/1.242, allocations: 178.5 kB / 0.8837 GB, free: 5.859 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.752e-05/1.242, allocations: 59.3 kB / 0.8837 GB, free: 5.801 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001209/1.243, allocations: 0.7436 MB / 0.8844 GB, free: 5.039 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/1.243, allocations: 7.984 kB / 0.8844 GB, free: 5.031 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/1.243, allocations: 0 / 0.8844 GB, free: 5.031 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/1.243, allocations: 4 kB / 0.8844 GB, free: 5.027 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005632/1.244, allocations: 0.517 MB / 0.885 GB, free: 4.461 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/1.244, allocations: 4 kB / 0.885 GB, free: 4.457 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005669/1.245, allocations: 119.8 kB / 0.8851 GB, free: 4.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/1.245, allocations: 0 / 0.8851 GB, free: 4.34 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.884e-05/1.245, allocations: 15.98 kB / 0.8851 GB, free: 4.324 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002341/1.245, allocations: 0.5976 MB / 0.8857 GB, free: 3.703 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/1.245, allocations: 0 / 0.8857 GB, free: 3.703 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000637/1.246, allocations: 0.5251 MB / 0.8862 GB, free: 3.152 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002407/1.246, allocations: 208.1 kB / 0.8864 GB, free: 2.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.068e-05/1.246, allocations: 19.92 kB / 0.8864 GB, free: 2.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003081/1.246, allocations: 31.98 kB / 0.8864 GB, free: 2.879 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.611e-05/1.246, allocations: 24.3 kB / 0.8865 GB, free: 2.855 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.783e-05/1.246, allocations: 19.98 kB / 0.8865 GB, free: 2.836 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0003967/1.247, allocations: 407.1 kB / 0.8869 GB, free: 2.434 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.6e-07/1.247, allocations: 0 / 0.8869 GB, free: 2.434 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001322/1.248, allocations: 463.5 kB / 0.8873 GB, free: 1.98 MB / 0.4948 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 (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.001636/1.25, allocations: 1.424 MB / 0.8887 GB, free: 0.5312 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.277/1.527, allocations: 0.9003 MB / 0.8896 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.806e-06/1.527, allocations: 1.031 kB / 0.8896 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001094/1.528, allocations: 360.6 kB / 0.8899 GB, free: 104.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00157/1.529, allocations: 260 kB / 0.8902 GB, free: 104.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002422/1.532, allocations: 0.9321 MB / 0.8911 GB, free: 104 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004203/1.532, allocations: 0.9035 MB / 0.892 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.000864/1.533, allocations: 228.7 kB / 0.8922 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003167/1.533, allocations: 230.4 kB / 0.8924 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of SimCode: time 1.323e-06/1.533, allocations: 0 / 0.8924 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04191/1.575, allocations: 22.18 MB / 0.9141 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001803/1.576, allocations: 236.8 kB / 0.9143 GB, free: 102.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.708/4.284, allocations: 4 kB / 0.9143 GB, free: 102.1 MB / 0.4948 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