Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestWallFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestWallFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002195/0.002195, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008966/0.0008966, allocations: 92.59 kB / 292.1 MB, free: 5.898 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1905/0.1905, allocations: 45.14 MB / 389.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.008e-05/3.01e-05, allocations: 4 kB / 460.5 MB, free: 69.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.106, allocations: 63.25 MB / 0.5115 GB, free: 6.703 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9001/1.006, allocations: 337.1 MB / 0.8406 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002076/1.006, allocations: 87.02 kB / 0.8407 GB, free: 105.2 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.299/2.306, allocations: 339.9 MB / 1.173 GB, free: 69.18 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.625e-06/2.306, allocations: 0 / 1.173 GB, free: 69.18 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001929/2.306, allocations: 37.67 kB / 1.173 GB, free: 69.18 MB / 0.5261 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.00571/2.312, allocations: 1.802 MB / 1.174 GB, free: 68.48 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/2.312, allocations: 12.16 kB / 1.174 GB, free: 68.48 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005346/2.312, allocations: 152.6 kB / 1.175 GB, free: 68.44 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001313/2.314, allocations: 176.2 kB / 1.175 GB, free: 68.36 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003623/2.317, allocations: 1.066 MB / 1.176 GB, free: 68.09 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001762/2.317, allocations: 72.83 kB / 1.176 GB, free: 68.09 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003851/2.318, allocations: 92.3 kB / 1.176 GB, free: 68.09 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002774/2.321, allocations: 1.456 MB / 1.177 GB, free: 67.78 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.587e-05/2.321, allocations: 4 kB / 1.177 GB, free: 67.78 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001259/2.321, allocations: 44.66 kB / 1.177 GB, free: 67.78 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.362e-05/2.321, allocations: 60.97 kB / 1.178 GB, free: 67.78 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002087/2.323, allocations: 1.305 MB / 1.179 GB, free: 67.77 MB / 0.5261 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.009022/2.332, allocations: 6.567 MB / 1.185 GB, free: 64.17 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008828/2.333, allocations: 0.5373 MB / 1.186 GB, free: 64.14 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004556/2.333, allocations: 333.7 kB / 1.186 GB, free: 64.14 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01837/2.352, allocations: 17.07 MB / 1.203 GB, free: 47.6 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006085/2.352, allocations: 472.3 kB / 1.203 GB, free: 47.42 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=49): time 3.567e-06/2.352, allocations: 2.375 kB / 1.203 GB, free: 47.42 MB / 0.5261 GB Notification: Performance of matching and sorting (n=49): time 0.001343/2.354, allocations: 0.7004 MB / 1.204 GB, free: 47.28 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001368/2.354, allocations: 0.5437 MB / 1.204 GB, free: 46.62 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001364/2.355, allocations: 1.132 MB / 1.205 GB, free: 46.46 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.689e-05/2.355, allocations: 39.95 kB / 1.206 GB, free: 46.43 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004498/2.356, allocations: 0.7088 MB / 1.206 GB, free: 46.17 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/2.356, allocations: 177.4 kB / 1.206 GB, free: 46.09 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.845e-05/2.356, allocations: 24.78 kB / 1.206 GB, free: 46.09 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.083e-05/2.356, allocations: 350.1 kB / 1.207 GB, free: 45.79 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004483/2.357, allocations: 318.9 kB / 1.207 GB, free: 45.78 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007441/2.357, allocations: 0.8656 MB / 1.208 GB, free: 45.13 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006362/2.358, allocations: 484.2 kB / 1.208 GB, free: 45.09 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/2.358, allocations: 7.219 kB / 1.208 GB, free: 45.09 MB / 0.5261 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.001855/2.36, allocations: 1.28 MB / 1.21 GB, free: 44.96 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001014/2.361, allocations: 5.581 MB / 1.215 GB, free: 39.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-05/2.361, allocations: 11 kB / 1.215 GB, free: 39.19 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.882e-05/2.361, allocations: 22.91 kB / 1.215 GB, free: 39.19 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001955/2.363, allocations: 393.6 kB / 1.215 GB, free: 39.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005653/2.363, allocations: 1.271 MB / 1.217 GB, free: 38.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00145/2.365, allocations: 195.3 kB / 1.217 GB, free: 37.94 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/2.365, allocations: 62.78 kB / 1.217 GB, free: 37.94 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/2.365, allocations: 3.969 kB / 1.217 GB, free: 37.94 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001561/2.367, allocations: 1.094 MB / 1.218 GB, free: 37.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/2.367, allocations: 13.97 kB / 1.218 GB, free: 37.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/2.367, allocations: 26.05 kB / 1.218 GB, free: 37.89 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00083/2.367, allocations: 283.8 kB / 1.218 GB, free: 37.89 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002149/2.368, allocations: 0.6228 MB / 1.219 GB, free: 37.31 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001146/2.369, allocations: 152.2 kB / 1.219 GB, free: 37.25 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.064e-05/2.369, allocations: 71.2 kB / 1.219 GB, free: 37.25 MB / 0.5261 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.0002801/2.369, allocations: 215.3 kB / 1.219 GB, free: 37.11 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002238/2.37, allocations: 141.2 kB / 1.219 GB, free: 37.04 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002171/2.372, allocations: 1.378 MB / 1.221 GB, free: 36.89 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.534e-05/2.372, allocations: 11.28 kB / 1.221 GB, free: 36.89 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/2.372, allocations: 0.75 kB / 1.221 GB, free: 36.89 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/2.372, allocations: 7.078 kB / 1.221 GB, free: 36.89 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002826/2.375, allocations: 2.157 MB / 1.223 GB, free: 36.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/2.375, allocations: 0 / 1.223 GB, free: 36.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001619/2.376, allocations: 261.1 kB / 1.223 GB, free: 36.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.344e-05/2.376, allocations: 3.375 kB / 1.223 GB, free: 36.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.094e-05/2.376, allocations: 25.56 kB / 1.223 GB, free: 36.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004098/2.377, allocations: 1.238 MB / 1.224 GB, free: 35.32 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/2.377, allocations: 3.875 kB / 1.224 GB, free: 35.32 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001217/2.378, allocations: 1.043 MB / 1.225 GB, free: 35.03 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004205/2.378, allocations: 268.3 kB / 1.226 GB, free: 34.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000193/2.379, allocations: 21.16 kB / 1.226 GB, free: 34.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006954/2.379, allocations: 64.52 kB / 1.226 GB, free: 34.84 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.068e-05/2.379, allocations: 47.89 kB / 1.226 GB, free: 34.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.724e-05/2.379, allocations: 36.42 kB / 1.226 GB, free: 34.84 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001105/2.381, allocations: 0.8898 MB / 1.227 GB, free: 34.73 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.61e-07/2.381, allocations: 0 / 1.227 GB, free: 34.73 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004724/2.385, allocations: 1.41 MB / 1.228 GB, free: 34.43 MB / 0.5261 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.00463/2.39, allocations: 2.908 MB / 1.231 GB, free: 33.27 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004307/2.394, allocations: 1.822 MB / 1.233 GB, free: 33.12 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/2.394, allocations: 7.031 kB / 1.233 GB, free: 33.12 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002508/2.397, allocations: 0.6609 MB / 1.233 GB, free: 33.05 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002941/2.4, allocations: 0.5559 MB / 1.234 GB, free: 33.05 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005664/2.405, allocations: 2.234 MB / 1.236 GB, free: 32.31 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005672/2.406, allocations: 1.208 MB / 1.237 GB, free: 31.6 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001995/2.408, allocations: 0.5429 MB / 1.238 GB, free: 31.57 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005659/2.409, allocations: 0.5201 MB / 1.238 GB, free: 31.57 MB / 0.5261 GB Notification: Performance of SimCode: time 1.253e-06/2.409, allocations: 0 / 1.238 GB, free: 31.57 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08368/2.492, allocations: 52.53 MB / 1.29 GB, free: 28.79 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001659/2.493, allocations: 237.6 kB / 1.29 GB, free: 28.49 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.638/6.13, allocations: 0 / 1.29 GB, free: 28.49 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestWallFriction_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestWallFriction.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction_res.mat does not exist to compare? outputFormat=mat