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.001521/0.001521, allocations: 181.7 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.048/2.048, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.00119/0.00119, allocations: 86.7 kB / 267.5 MB, free: 14.04 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.2869/0.2869, allocations: 43.48 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.635e-05/3.657e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1204, allocations: 58.86 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.193/1.314, allocations: 288.9 MB / 0.7551 GB, free: 133.7 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002906/1.314, allocations: 86.23 kB / 0.7552 GB, free: 133.6 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.4148/1.729, allocations: 117.4 MB / 0.8698 GB, free: 23.73 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.174e-06/1.729, allocations: 4 kB / 0.8698 GB, free: 23.73 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 5.289e-05/1.729, allocations: 12 kB / 0.8698 GB, free: 23.71 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.001883/1.731, allocations: 0.8623 MB / 0.8706 GB, free: 22.8 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/1.731, allocations: 8.031 kB / 0.8707 GB, free: 22.79 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001887/1.731, allocations: 86.75 kB / 0.8707 GB, free: 22.7 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004826/1.731, allocations: 91.14 kB / 0.8708 GB, free: 22.61 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001449/1.733, allocations: 0.517 MB / 0.8713 GB, free: 22.05 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.014e-05/1.733, allocations: 37 kB / 0.8714 GB, free: 22.02 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.785e-05/1.733, allocations: 47.89 kB / 0.8714 GB, free: 21.97 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001348/1.734, allocations: 0.6474 MB / 0.872 GB, free: 21.27 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.712e-05/1.735, allocations: 3.938 kB / 0.872 GB, free: 21.26 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-05/1.735, allocations: 28 kB / 0.8721 GB, free: 21.23 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/1.735, allocations: 12 kB / 0.8721 GB, free: 21.22 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001101/1.736, allocations: 0.5075 MB / 0.8726 GB, free: 20.71 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004756/1.741, allocations: 3.08 MB / 0.8756 GB, free: 17.45 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005485/1.741, allocations: 210.7 kB / 0.8758 GB, free: 17.23 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003132/1.741, allocations: 137.1 kB / 0.8759 GB, free: 17.1 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002852/1.742, allocations: 348.3 kB / 0.8763 GB, free: 16.68 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005131/1.742, allocations: 274.7 kB / 0.8765 GB, free: 16.38 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=28): time 2.645e-06/1.742, allocations: 0 / 0.8765 GB, free: 16.38 MB / 0.4948 GB Notification: Performance of matching and sorting (n=28): time 0.001164/1.743, allocations: 397.6 kB / 0.8769 GB, free: 15.98 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.396e-05/1.744, allocations: 294.9 kB / 0.8772 GB, free: 15.62 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007939/1.744, allocations: 492.9 kB / 0.8776 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 6.622e-05/1.744, allocations: 29.7 kB / 0.8777 GB, free: 15.1 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002368/1.745, allocations: 369.5 kB / 0.878 GB, free: 14.74 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 9.69e-05/1.745, allocations: 90.75 kB / 0.8781 GB, free: 14.65 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.986e-05/1.745, allocations: 8 kB / 0.8781 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.693e-05/1.745, allocations: 326.8 kB / 0.8784 GB, free: 14.31 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003809/1.745, allocations: 141.1 kB / 0.8786 GB, free: 14.18 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005218/1.746, allocations: 373 kB / 0.8789 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004734/1.746, allocations: 221.5 kB / 0.8791 GB, free: 13.49 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.745e-06/1.746, allocations: 4 kB / 0.8791 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001447/1.748, allocations: 0.5777 MB / 0.8797 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000454/1.748, allocations: 2.119 MB / 0.8818 GB, free: 10.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/1.748, allocations: 8 kB / 0.8818 GB, free: 10.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.193e-05/1.748, allocations: 8 kB / 0.8818 GB, free: 10.59 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00199/1.75, allocations: 175.7 kB / 0.882 GB, free: 10.42 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005572/1.751, allocations: 0.6172 MB / 0.8826 GB, free: 9.777 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000996/1.752, allocations: 87.28 kB / 0.8826 GB, free: 9.691 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/1.752, allocations: 31.98 kB / 0.8827 GB, free: 9.66 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/1.752, allocations: 4 kB / 0.8827 GB, free: 9.656 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00127/1.753, allocations: 0.5242 MB / 0.8832 GB, free: 9.125 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/1.754, allocations: 4 kB / 0.8832 GB, free: 9.121 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/1.754, allocations: 8 kB / 0.8832 GB, free: 9.113 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006892/1.754, allocations: 120.5 kB / 0.8833 GB, free: 8.996 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.615e-05/1.754, allocations: 12 kB / 0.8833 GB, free: 8.984 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006959/1.755, allocations: 55.67 kB / 0.8834 GB, free: 8.93 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.038e-05/1.755, allocations: 31.98 kB / 0.8834 GB, free: 8.898 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.000281/1.755, allocations: 172.9 kB / 0.8836 GB, free: 8.719 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002004/1.756, allocations: 71.14 kB / 0.8836 GB, free: 8.648 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002065/1.758, allocations: 0.7592 MB / 0.8844 GB, free: 7.875 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.636e-05/1.758, allocations: 4 kB / 0.8844 GB, free: 7.871 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/1.758, allocations: 0 / 0.8844 GB, free: 7.871 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.766e-06/1.758, allocations: 0 / 0.8844 GB, free: 7.871 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009869/1.759, allocations: 0.5208 MB / 0.8849 GB, free: 7.301 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/1.759, allocations: 0 / 0.8849 GB, free: 7.301 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001067/1.76, allocations: 119.8 kB / 0.885 GB, free: 7.184 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.041e-05/1.76, allocations: 4 kB / 0.885 GB, free: 7.18 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.81e-05/1.76, allocations: 15.98 kB / 0.885 GB, free: 7.164 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003342/1.76, allocations: 0.5861 MB / 0.8856 GB, free: 6.555 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/1.76, allocations: 0 / 0.8856 GB, free: 6.555 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00119/1.761, allocations: 0.5329 MB / 0.8861 GB, free: 5.996 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004022/1.762, allocations: 216 kB / 0.8863 GB, free: 5.766 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001487/1.762, allocations: 16 kB / 0.8863 GB, free: 5.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006136/1.763, allocations: 19.98 kB / 0.8864 GB, free: 5.73 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.332e-05/1.763, allocations: 28.3 kB / 0.8864 GB, free: 5.703 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.451e-05/1.763, allocations: 27.92 kB / 0.8864 GB, free: 5.676 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0006609/1.764, allocations: 403.2 kB / 0.8868 GB, free: 5.277 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.51e-07/1.764, allocations: 0 / 0.8868 GB, free: 5.277 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001846/1.765, allocations: 459.4 kB / 0.8872 GB, free: 4.828 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.0026/1.768, allocations: 1.436 MB / 0.8886 GB, free: 3.359 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003616/1.772, allocations: 0.8783 MB / 0.8895 GB, free: 2.461 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/1.772, allocations: 1.875 kB / 0.8895 GB, free: 2.461 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001562/1.773, allocations: 359.6 kB / 0.8898 GB, free: 2.098 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002498/1.776, allocations: 262.8 kB / 0.8901 GB, free: 1.844 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003377/1.779, allocations: 0.9561 MB / 0.891 GB, free: 0.8398 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3249/2.104, allocations: 0.8993 MB / 0.8919 GB, free: 124.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007204/2.105, allocations: 235.8 kB / 0.8921 GB, free: 124.2 MB / 0.4948 GB Notification: Performance of SimCode: time 1.222e-06/2.105, allocations: 0 / 0.8921 GB, free: 124.2 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.092/5.197, allocations: 17.5 MB / 0.9092 GB, free: 123.8 MB / 0.4948 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