Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001495/0.001495, allocations: 174.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.59/1.59, allocations: 221.5 MB / 230.7 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009675/0.0009674, allocations: 85.56 kB / 281.6 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1962/0.1962, allocations: 44.15 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.109e-05/2.11e-05, allocations: 4.219 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1377, allocations: 61.92 MB / 0.4948 GB, free: 1.164 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.935/1.073, allocations: 289.5 MB / 0.7775 GB, free: 100.1 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002723/1.073, allocations: 85.31 kB / 0.7776 GB, free: 100 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.4973/1.57, allocations: 118.6 MB / 0.8934 GB, free: 132.4 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.372e-06/1.57, allocations: 3.562 kB / 0.8934 GB, free: 132.4 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.664e-05/1.57, allocations: 15.89 kB / 0.8934 GB, free: 132.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: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001593/1.572, allocations: 0.8707 MB / 0.8943 GB, free: 131.9 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/1.572, allocations: 14.11 kB / 0.8943 GB, free: 131.9 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003477/1.572, allocations: 79.08 kB / 0.8944 GB, free: 131.9 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001009/1.573, allocations: 0.5232 MB / 0.8949 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.61e-05/1.573, allocations: 15.92 kB / 0.8949 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.733e-05/1.574, allocations: 27.53 kB / 0.8949 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007843/1.574, allocations: 479.8 kB / 0.8954 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009168/1.575, allocations: 0.5989 MB / 0.896 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.977e-05/1.575, allocations: 2.969 kB / 0.896 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.333e-05/1.575, allocations: 2.156 kB / 0.896 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.813e-05/1.575, allocations: 11.72 kB / 0.896 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003624/1.579, allocations: 2.968 MB / 0.8989 GB, free: 129.6 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003974/1.579, allocations: 205.5 kB / 0.8991 GB, free: 129.6 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002278/1.58, allocations: 129.3 kB / 0.8992 GB, free: 129.6 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000258/1.58, allocations: 340.7 kB / 0.8995 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004549/1.58, allocations: 263.9 kB / 0.8998 GB, free: 129.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=28): time 2.024e-06/1.58, allocations: 0 / 0.8998 GB, free: 129.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=28): time 0.003212/1.584, allocations: 0.6506 MB / 0.9004 GB, free: 129 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.402e-05/1.584, allocations: 299.6 kB / 0.9007 GB, free: 128.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004575/1.584, allocations: 384.2 kB / 0.9011 GB, free: 128.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.669e-05/1.584, allocations: 27.41 kB / 0.9011 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002309/1.584, allocations: 341.3 kB / 0.9014 GB, free: 128.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 7.865e-05/1.585, allocations: 90.83 kB / 0.9015 GB, free: 128.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.469e-05/1.585, allocations: 1.188 kB / 0.9015 GB, free: 128.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.745e-05/1.585, allocations: 364.5 kB / 0.9019 GB, free: 128 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002211/1.585, allocations: 135.1 kB / 0.902 GB, free: 128 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003174/1.585, allocations: 352.1 kB / 0.9023 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002476/1.588, allocations: 498.8 kB / 0.9028 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-06/1.588, allocations: 6.641 kB / 0.9028 GB, free: 127.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.003087/1.591, allocations: 0.8294 MB / 0.9036 GB, free: 127.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003868/1.591, allocations: 2.121 MB / 0.9057 GB, free: 125.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/1.591, allocations: 8.562 kB / 0.9057 GB, free: 125.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.611e-05/1.591, allocations: 8.312 kB / 0.9057 GB, free: 125.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001107/1.592, allocations: 172.5 kB / 0.9059 GB, free: 125.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007176/1.593, allocations: 0.6784 MB / 0.9065 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000575/1.594, allocations: 56.98 kB / 0.9066 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.469e-05/1.594, allocations: 30.3 kB / 0.9066 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.001e-05/1.594, allocations: 5.25 kB / 0.9066 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002179/1.596, allocations: 0.6387 MB / 0.9072 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/1.596, allocations: 6.438 kB / 0.9073 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/1.596, allocations: 8.25 kB / 0.9073 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003741/1.596, allocations: 119.1 kB / 0.9074 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/1.596, allocations: 9.75 kB / 0.9074 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000477/1.597, allocations: 50.22 kB / 0.9074 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.954e-05/1.597, allocations: 31.33 kB / 0.9075 GB, free: 124.9 MB / 0.5105 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.0002217/1.597, allocations: 160.3 kB / 0.9076 GB, free: 124.7 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003207/1.6, allocations: 0.6647 MB / 0.9083 GB, free: 124.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.181e-05/1.601, allocations: 55.09 kB / 0.9083 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002342/1.603, allocations: 0.8133 MB / 0.9091 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/1.603, allocations: 8.562 kB / 0.9091 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/1.603, allocations: 0 / 0.9091 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/1.603, allocations: 5.75 kB / 0.9091 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/1.604, allocations: 471.5 kB / 0.9096 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.102e-06/1.604, allocations: 0 / 0.9096 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006475/1.605, allocations: 117.4 kB / 0.9097 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.08e-05/1.605, allocations: 2.328 kB / 0.9097 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.869e-05/1.605, allocations: 7.578 kB / 0.9097 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000426/1.605, allocations: 0.6147 MB / 0.9103 GB, free: 123.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/1.605, allocations: 0 / 0.9103 GB, free: 123.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00185/1.607, allocations: 0.5931 MB / 0.9109 GB, free: 123.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003914/1.607, allocations: 205.9 kB / 0.9111 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.725e-05/1.608, allocations: 6.125 kB / 0.9111 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003398/1.608, allocations: 17.08 kB / 0.9111 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/1.608, allocations: 27.48 kB / 0.9111 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.57e-05/1.608, allocations: 23.28 kB / 0.9111 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0004863/1.609, allocations: 303.4 kB / 0.9114 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.61e-07/1.609, allocations: 0 / 0.9114 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002139/1.611, allocations: 463.9 kB / 0.9119 GB, free: 123.4 MB / 0.5105 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.002956/1.614, allocations: 1.475 MB / 0.9133 GB, free: 122.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002531/1.616, allocations: 0.8445 MB / 0.9141 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/1.616, allocations: 1.375 kB / 0.9141 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0009023/1.617, allocations: 354.7 kB / 0.9145 GB, free: 122.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001219/1.618, allocations: 188.1 kB / 0.9147 GB, free: 122.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002476/1.621, allocations: 0.8819 MB / 0.9155 GB, free: 122.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004501/1.621, allocations: 0.9041 MB / 0.9164 GB, free: 121.5 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0008735/1.622, allocations: 204.2 kB / 0.9166 GB, free: 121.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003044/1.623, allocations: 224.7 kB / 0.9168 GB, free: 121.5 MB / 0.5105 GB Notification: Performance of SimCode: time 9.02e-07/1.623, allocations: 0 / 0.9168 GB, free: 121.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04311/1.666, allocations: 18.17 MB / 0.9346 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001497/1.666, allocations: 198.5 kB / 0.9347 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.552/4.218, allocations: 0 / 0.9347 GB, free: 120.5 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat does not exist to compare? outputFormat=mat