Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.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.TestWallFriction,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestWallFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestWallFriction",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.002602/0.002608, allocations: 181.4 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.084/2.084, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001097/0.001097, allocations: 74.72 kB / 267.5 MB, free: 14.05 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.2871/0.2871, allocations: 43.48 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.664e-05/3.674e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1252, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.182/1.307, allocations: 335.5 MB / 0.8005 GB, free: 89.29 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003106/1.307, allocations: 88.11 kB / 0.8006 GB, free: 89.24 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 1.888/3.196, allocations: 336.2 MB / 1.129 GB, free: 69.57 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.294e-06/3.196, allocations: 0 / 1.129 GB, free: 69.57 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000153/3.196, allocations: 40.02 kB / 1.129 GB, free: 69.57 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: 254 * Number of variables: 254 Notification: Performance of Generate backend data structure: time 0.006291/3.202, allocations: 1.785 MB / 1.131 GB, free: 68.72 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/3.202, allocations: 9.781 kB / 1.131 GB, free: 68.72 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004933/3.203, allocations: 158.8 kB / 1.131 GB, free: 68.68 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001126/3.204, allocations: 176.8 kB / 1.131 GB, free: 68.6 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003666/3.208, allocations: 1.076 MB / 1.132 GB, free: 68.27 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.883e-05/3.208, allocations: 72.2 kB / 1.132 GB, free: 68.27 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000247/3.208, allocations: 103.5 kB / 1.132 GB, free: 68.27 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003382/3.211, allocations: 1.457 MB / 1.134 GB, free: 67.96 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.453e-05/3.212, allocations: 7.656 kB / 1.134 GB, free: 67.96 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002083/3.212, allocations: 50.39 kB / 1.134 GB, free: 67.96 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.774e-05/3.212, allocations: 51.8 kB / 1.134 GB, free: 67.96 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003182/3.215, allocations: 1.305 MB / 1.135 GB, free: 67.95 MB / 0.4948 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01349/3.229, allocations: 6.632 MB / 1.142 GB, free: 64.31 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001455/3.23, allocations: 0.5281 MB / 1.142 GB, free: 64.29 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007908/3.231, allocations: 334.9 kB / 1.142 GB, free: 64.27 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02991/3.261, allocations: 17.14 MB / 1.159 GB, free: 47.7 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009491/3.262, allocations: 476.3 kB / 1.16 GB, free: 47.52 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=49): time 5.06e-06/3.262, allocations: 3.125 kB / 1.16 GB, free: 47.52 MB / 0.4948 GB Notification: Performance of matching and sorting (n=49): time 0.002337/3.264, allocations: 0.7056 MB / 1.16 GB, free: 47.38 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001904/3.265, allocations: 0.5448 MB / 1.161 GB, free: 46.71 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00262/3.267, allocations: 1.133 MB / 1.162 GB, free: 46.54 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000255/3.267, allocations: 37.23 kB / 1.162 GB, free: 46.5 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005937/3.268, allocations: 0.6849 MB / 1.163 GB, free: 46.13 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002531/3.268, allocations: 174 kB / 1.163 GB, free: 46.02 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.671e-05/3.268, allocations: 27.34 kB / 1.163 GB, free: 46.02 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001109/3.269, allocations: 346.3 kB / 1.163 GB, free: 45.71 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009283/3.27, allocations: 324.9 kB / 1.163 GB, free: 45.71 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001584/3.271, allocations: 0.8631 MB / 1.164 GB, free: 45.06 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001939/3.273, allocations: 486.1 kB / 1.165 GB, free: 45.02 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.664e-05/3.273, allocations: 3.938 kB / 1.165 GB, free: 45.02 MB / 0.4948 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003746/3.277, allocations: 1.194 MB / 1.166 GB, free: 44.92 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001505/3.279, allocations: 5.534 MB / 1.171 GB, free: 39.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.161e-05/3.279, allocations: 13.75 kB / 1.171 GB, free: 39.16 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.189e-05/3.279, allocations: 32.55 kB / 1.171 GB, free: 39.16 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004089/3.283, allocations: 397.2 kB / 1.172 GB, free: 39.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008908/3.284, allocations: 1.26 MB / 1.173 GB, free: 37.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002557/3.286, allocations: 187.9 kB / 1.173 GB, free: 37.91 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002955/3.287, allocations: 66.95 kB / 1.173 GB, free: 37.91 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/3.287, allocations: 10.33 kB / 1.173 GB, free: 37.9 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002881/3.29, allocations: 1.091 MB / 1.174 GB, free: 37.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.204e-05/3.29, allocations: 16.53 kB / 1.174 GB, free: 37.86 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.221e-05/3.29, allocations: 25.33 kB / 1.174 GB, free: 37.86 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001841/3.292, allocations: 282.4 kB / 1.175 GB, free: 37.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003474/3.292, allocations: 0.6212 MB / 1.175 GB, free: 37.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001658/3.294, allocations: 129.9 kB / 1.175 GB, free: 37.23 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001874/3.294, allocations: 69.14 kB / 1.175 GB, free: 37.23 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00047/3.294, allocations: 215.5 kB / 1.176 GB, free: 37.08 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004401/3.295, allocations: 143.9 kB / 1.176 GB, free: 37.01 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003927/3.299, allocations: 1.391 MB / 1.177 GB, free: 36.79 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.562e-05/3.299, allocations: 14.73 kB / 1.177 GB, free: 36.79 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/3.299, allocations: 3.5 kB / 1.177 GB, free: 36.79 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/3.299, allocations: 3.703 kB / 1.177 GB, free: 36.79 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005219/3.304, allocations: 2.177 MB / 1.179 GB, free: 36.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/3.304, allocations: 0 / 1.179 GB, free: 36.39 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003268/3.307, allocations: 263.2 kB / 1.18 GB, free: 36.39 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.059e-05/3.307, allocations: 3.031 kB / 1.18 GB, free: 36.39 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001693/3.308, allocations: 22 kB / 1.18 GB, free: 36.39 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006607/3.308, allocations: 1.232 MB / 1.181 GB, free: 35.22 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/3.308, allocations: 1.469 kB / 1.181 GB, free: 35.22 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002644/3.311, allocations: 1.055 MB / 1.182 GB, free: 34.93 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007721/3.312, allocations: 266.4 kB / 1.182 GB, free: 34.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003733/3.312, allocations: 21.75 kB / 1.182 GB, free: 34.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001523/3.314, allocations: 58.28 kB / 1.182 GB, free: 34.74 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001588/3.314, allocations: 52.77 kB / 1.182 GB, free: 34.74 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001265/3.314, allocations: 34.14 kB / 1.182 GB, free: 34.74 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001878/3.316, allocations: 0.8883 MB / 1.183 GB, free: 34.62 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.81e-07/3.316, allocations: 3.172 kB / 1.183 GB, free: 34.62 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006304/3.322, allocations: 1.398 MB / 1.184 GB, free: 34.34 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (77): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008093/3.33, allocations: 2.926 MB / 1.187 GB, free: 33.16 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007961/3.339, allocations: 1.786 MB / 1.189 GB, free: 33.02 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.186e-05/3.339, allocations: 3.969 kB / 1.189 GB, free: 33.02 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005026/3.344, allocations: 0.664 MB / 1.19 GB, free: 32.95 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005039/3.349, allocations: 0.5519 MB / 1.19 GB, free: 32.94 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007723/3.356, allocations: 2.268 MB / 1.192 GB, free: 32.15 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007804/3.357, allocations: 1.198 MB / 1.194 GB, free: 31.45 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001253/3.359, allocations: 0.5389 MB / 1.194 GB, free: 31.44 MB / 0.4948 GB Notification: Performance of SimCode: time 2.725e-06/3.359, allocations: 0 / 1.194 GB, free: 31.44 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.907/7.265, allocations: 48.15 MB / 1.241 GB, free: 15.27 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestWallFriction_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestWallFriction.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction_res.mat does not exist to compare? outputFormat=mat