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.002246/0.002246, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.121/2.121, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001523/0.001523, allocations: 97.02 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4542/0.4542, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.868e-05/1.895e-05, allocations: 8 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.414/0.4141, allocations: 58.85 MB / 477.2 MB, free: 5.156 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7952/1.209, allocations: 288.3 MB / 0.7475 GB, free: 47.33 MB / 475.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003108/1.21, allocations: 85.7 kB / 0.7476 GB, free: 47.29 MB / 475.1 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.7408/1.951, allocations: 116.3 MB / 0.8612 GB, free: 144.7 MB / 0.4952 GB Notification: Performance of FrontEnd: time 2.335e-06/1.951, allocations: 0 / 0.8612 GB, free: 144.7 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 6.042e-05/1.951, allocations: 19.58 kB / 0.8612 GB, free: 144.7 MB / 0.4952 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.002023/1.953, allocations: 0.8646 MB / 0.862 GB, free: 144.1 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/1.953, allocations: 13.31 kB / 0.862 GB, free: 144.1 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005516/1.953, allocations: 83.45 kB / 0.8621 GB, free: 144.1 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001613/1.955, allocations: 0.5192 MB / 0.8626 GB, free: 143.8 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/1.955, allocations: 14.88 kB / 0.8627 GB, free: 143.8 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.499e-05/1.955, allocations: 25.84 kB / 0.8627 GB, free: 143.8 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001112/1.956, allocations: 479.6 kB / 0.8631 GB, free: 143.8 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001188/1.957, allocations: 0.5971 MB / 0.8637 GB, free: 143.6 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/1.958, allocations: 0 / 0.8637 GB, free: 143.6 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.704e-05/1.958, allocations: 6.844 kB / 0.8637 GB, free: 143.6 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.7e-05/1.958, allocations: 11.75 kB / 0.8637 GB, free: 143.6 MB / 0.4952 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004806/1.962, allocations: 2.971 MB / 0.8666 GB, free: 141.8 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005342/1.963, allocations: 199.1 kB / 0.8668 GB, free: 141.7 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002832/1.963, allocations: 127.8 kB / 0.8669 GB, free: 141.7 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003009/1.964, allocations: 339 kB / 0.8673 GB, free: 141.4 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004977/1.964, allocations: 278.9 kB / 0.8675 GB, free: 141.2 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=28): time 2.725e-06/1.964, allocations: 0 / 0.8675 GB, free: 141.2 MB / 0.4952 GB Notification: Performance of matching and sorting (n=28): time 0.004675/1.969, allocations: 0.6588 MB / 0.8682 GB, free: 141.2 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/1.969, allocations: 290.4 kB / 0.8685 GB, free: 140.8 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006136/1.97, allocations: 383.6 kB / 0.8688 GB, free: 140.7 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 9.881e-05/1.97, allocations: 25.7 kB / 0.8688 GB, free: 140.7 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002829/1.97, allocations: 388.6 kB / 0.8692 GB, free: 140.4 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/1.97, allocations: 89.61 kB / 0.8693 GB, free: 140.3 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.65e-05/1.97, allocations: 3.875 kB / 0.8693 GB, free: 140.3 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 8.431e-05/1.97, allocations: 329.1 kB / 0.8696 GB, free: 140 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003732/1.971, allocations: 136.8 kB / 0.8698 GB, free: 140 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005012/1.971, allocations: 352.9 kB / 0.8701 GB, free: 139.8 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003957/1.975, allocations: 0.489 MB / 0.8706 GB, free: 139.8 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.068e-05/1.975, allocations: 3 kB / 0.8706 GB, free: 139.8 MB / 0.4952 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.004948/1.98, allocations: 0.8035 MB / 0.8714 GB, free: 139.7 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005073/1.981, allocations: 2.122 MB / 0.8734 GB, free: 137.5 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/1.981, allocations: 6.594 kB / 0.8734 GB, free: 137.5 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.52e-05/1.981, allocations: 11.09 kB / 0.8734 GB, free: 137.5 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002015/1.983, allocations: 170.7 kB / 0.8736 GB, free: 137.5 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001083/1.984, allocations: 0.6707 MB / 0.8743 GB, free: 136.9 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/1.985, allocations: 58.98 kB / 0.8743 GB, free: 136.9 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000117/1.985, allocations: 31.56 kB / 0.8743 GB, free: 136.9 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/1.985, allocations: 6.844 kB / 0.8744 GB, free: 136.9 MB / 0.4952 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003365/1.989, allocations: 0.6376 MB / 0.875 GB, free: 136.9 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/1.989, allocations: 7.406 kB / 0.875 GB, free: 136.9 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/1.989, allocations: 17.2 kB / 0.875 GB, free: 136.8 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000669/1.989, allocations: 116 kB / 0.8751 GB, free: 136.8 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.306e-05/1.989, allocations: 17.22 kB / 0.8751 GB, free: 136.8 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006461/1.99, allocations: 43.02 kB / 0.8752 GB, free: 136.8 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.237e-05/1.99, allocations: 28.94 kB / 0.8752 GB, free: 136.8 MB / 0.4952 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.0003215/1.991, allocations: 163.4 kB / 0.8753 GB, free: 136.7 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004496/1.995, allocations: 0.6612 MB / 0.876 GB, free: 136.6 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/1.995, allocations: 56.7 kB / 0.876 GB, free: 136.6 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00321/1.998, allocations: 0.8032 MB / 0.8768 GB, free: 136.5 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.947e-05/1.999, allocations: 8.031 kB / 0.8768 GB, free: 136.5 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.809e-06/1.999, allocations: 0 / 0.8768 GB, free: 136.5 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/1.999, allocations: 3.469 kB / 0.8768 GB, free: 136.5 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000959/2, allocations: 463.8 kB / 0.8773 GB, free: 136.3 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/2, allocations: 0 / 0.8773 GB, free: 136.3 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001065/2.001, allocations: 113.8 kB / 0.8774 GB, free: 136.3 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.064e-05/2.001, allocations: 0 / 0.8774 GB, free: 136.3 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.466e-05/2.001, allocations: 14.64 kB / 0.8774 GB, free: 136.3 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005427/2.001, allocations: 0.6177 MB / 0.878 GB, free: 135.7 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/2.001, allocations: 6.5 kB / 0.878 GB, free: 135.7 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002435/2.004, allocations: 0.58 MB / 0.8786 GB, free: 135.6 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000402/2.004, allocations: 215.4 kB / 0.8788 GB, free: 135.5 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001324/2.004, allocations: 3.875 kB / 0.8788 GB, free: 135.5 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005542/2.005, allocations: 18.84 kB / 0.8788 GB, free: 135.5 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.779e-05/2.005, allocations: 28.05 kB / 0.8788 GB, free: 135.5 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.782e-05/2.005, allocations: 23.09 kB / 0.8789 GB, free: 135.5 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.0004725/2.006, allocations: 305 kB / 0.8792 GB, free: 135.4 MB / 0.4952 GB Notification: Performance of sort global known variables: time 4.01e-07/2.006, allocations: 0 / 0.8792 GB, free: 135.4 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.002074/2.008, allocations: 451.7 kB / 0.8796 GB, free: 135.3 MB / 0.4952 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.004075/2.012, allocations: 1.486 MB / 0.881 GB, free: 134.5 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.003392/2.015, allocations: 0.8309 MB / 0.8818 GB, free: 134.1 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 7.263e-06/2.015, allocations: 0 / 0.8818 GB, free: 134.1 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.001412/2.017, allocations: 355.1 kB / 0.8822 GB, free: 134 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001931/2.019, allocations: 204.8 kB / 0.8824 GB, free: 133.9 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003233/2.022, allocations: 0.9089 MB / 0.8833 GB, free: 133.5 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004014/2.022, allocations: 0.9008 MB / 0.8841 GB, free: 132.8 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000521/2.023, allocations: 227.6 kB / 0.8844 GB, free: 132.6 MB / 0.4952 GB Notification: Performance of SimCode: time 1.292e-06/2.023, allocations: 0 / 0.8844 GB, free: 132.6 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.194/5.217, allocations: 16.67 MB / 0.9006 GB, free: 128 MB / 0.4952 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