Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.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.TestSimpleGenericOrifice,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001491/0.001491, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.2 MB / 245 MB, free: 7.645 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009837/0.0009833, allocations: 91.06 kB / 297.2 MB, free: 6.219 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4083/0.4083, allocations: 45.23 MB / 394.6 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002657/0.0002658, allocations: 8 kB / 468.5 MB, free: 7.637 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4877/0.488, allocations: 63.24 MB / 0.5193 GB, free: 43.88 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.757/1.245, allocations: 291.3 MB / 0.8037 GB, free: 54.64 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002661/1.245, allocations: 93.23 kB / 0.8038 GB, free: 54.59 MB / 0.4948 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 0.6376/1.883, allocations: 120.2 MB / 0.9213 GB, free: 116.1 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.104e-06/1.883, allocations: 0 / 0.9213 GB, free: 116.1 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 4.694e-05/1.883, allocations: 16.66 kB / 0.9213 GB, free: 116.1 MB / 0.5417 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.001782/1.885, allocations: 0.9457 MB / 0.9222 GB, free: 115.5 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/1.885, allocations: 11.72 kB / 0.9222 GB, free: 115.5 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001099/1.885, allocations: 85.17 kB / 0.9223 GB, free: 115.5 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002993/1.885, allocations: 79.2 kB / 0.9224 GB, free: 115.5 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009539/1.886, allocations: 0.5281 MB / 0.9229 GB, free: 115.2 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.839e-05/1.886, allocations: 32.81 kB / 0.9229 GB, free: 115.2 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.723e-05/1.886, allocations: 44 kB / 0.923 GB, free: 115.2 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009259/1.887, allocations: 0.6587 MB / 0.9236 GB, free: 115 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/1.887, allocations: 5.531 kB / 0.9236 GB, free: 115 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.91e-05/1.887, allocations: 27.39 kB / 0.9236 GB, free: 115 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/1.888, allocations: 11.72 kB / 0.9236 GB, free: 115 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006938/1.888, allocations: 0.52 MB / 0.9241 GB, free: 115 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003147/1.891, allocations: 3.081 MB / 0.9272 GB, free: 113.1 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003571/1.892, allocations: 212.3 kB / 0.9274 GB, free: 113.1 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002273/1.892, allocations: 339.2 kB / 0.9277 GB, free: 112.7 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003531/1.892, allocations: 282.2 kB / 0.928 GB, free: 112.6 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=28): time 2.164e-06/1.892, allocations: 0 / 0.928 GB, free: 112.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=28): time 0.0009462/1.893, allocations: 0.5842 MB / 0.9285 GB, free: 112.4 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.412e-05/1.893, allocations: 294.8 kB / 0.9288 GB, free: 112.1 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004977/1.894, allocations: 488 kB / 0.9293 GB, free: 112 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.846e-05/1.894, allocations: 35.02 kB / 0.9293 GB, free: 111.9 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/1.894, allocations: 342.7 kB / 0.9296 GB, free: 111.8 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 6.845e-05/1.894, allocations: 92.42 kB / 0.9297 GB, free: 111.7 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.482e-05/1.894, allocations: 12.19 kB / 0.9297 GB, free: 111.7 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001107/1.894, allocations: 369.1 kB / 0.9301 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002099/1.895, allocations: 139.8 kB / 0.9302 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003273/1.895, allocations: 370.5 kB / 0.9306 GB, free: 111.2 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002983/1.895, allocations: 234.2 kB / 0.9308 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/1.895, allocations: 0 / 0.9308 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008545/1.896, allocations: 0.6104 MB / 0.9314 GB, free: 111 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004509/1.897, allocations: 2.124 MB / 0.9335 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/1.897, allocations: 8.281 kB / 0.9335 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.407e-05/1.897, allocations: 11.03 kB / 0.9335 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001126/1.898, allocations: 175.1 kB / 0.9336 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003635/1.898, allocations: 0.6103 MB / 0.9342 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005661/1.899, allocations: 80.02 kB / 0.9343 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.927e-05/1.899, allocations: 35.47 kB / 0.9344 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/1.899, allocations: 2.844 kB / 0.9344 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007654/1.9, allocations: 0.5387 MB / 0.9349 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/1.9, allocations: 8.812 kB / 0.9349 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.057e-06/1.9, allocations: 12.48 kB / 0.9349 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003477/1.9, allocations: 117.8 kB / 0.935 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/1.9, allocations: 9.172 kB / 0.935 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000415/1.9, allocations: 69.2 kB / 0.9351 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.32e-05/1.9, allocations: 26.48 kB / 0.9351 GB, free: 108.1 MB / 0.5417 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 () * Number of clocked 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.0003739/1.901, allocations: 307 kB / 0.9354 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.037e-05/1.901, allocations: 64.91 kB / 0.9355 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001292/1.902, allocations: 0.7535 MB / 0.9362 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/1.902, allocations: 5.188 kB / 0.9362 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/1.902, allocations: 2.812 kB / 0.9362 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/1.902, allocations: 0 / 0.9362 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005781/1.903, allocations: 0.5176 MB / 0.9367 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/1.903, allocations: 0 / 0.9367 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00055/1.903, allocations: 121.9 kB / 0.9368 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.501e-06/1.903, allocations: 2.469 kB / 0.9368 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.95e-05/1.903, allocations: 10.48 kB / 0.9368 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002393/1.904, allocations: 0.5984 MB / 0.9374 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/1.904, allocations: 3.562 kB / 0.9374 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006896/1.904, allocations: 0.5307 MB / 0.938 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002847/1.905, allocations: 220.6 kB / 0.9382 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.077e-05/1.905, allocations: 13.41 kB / 0.9382 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003155/1.905, allocations: 31.44 kB / 0.9382 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.333e-05/1.905, allocations: 31.94 kB / 0.9382 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.578e-05/1.905, allocations: 18.64 kB / 0.9383 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.000411/1.906, allocations: 408.3 kB / 0.9386 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.2e-07/1.906, allocations: 0 / 0.9386 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001428/1.907, allocations: 463.5 kB / 0.9391 GB, free: 106.5 MB / 0.5417 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) * Number of clocked states: 0 () * 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.001852/1.909, allocations: 1.43 MB / 0.9405 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002099/1.911, allocations: 0.8929 MB / 0.9414 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/1.911, allocations: 0 / 0.9414 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0008149/1.912, allocations: 367 kB / 0.9417 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/1.913, allocations: 266.4 kB / 0.942 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005515/1.919, allocations: 6.907 MB / 0.9487 GB, free: 100.9 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000406/1.919, allocations: 0.9037 MB / 0.9496 GB, free: 100.2 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.000845/1.92, allocations: 203.9 kB / 0.9498 GB, free: 100.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002994/1.92, allocations: 227.9 kB / 0.95 GB, free: 100.1 MB / 0.5417 GB Notification: Performance of SimCode: time 1.012e-06/1.92, allocations: 0 / 0.95 GB, free: 100.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05021/1.971, allocations: 21.24 MB / 0.9707 GB, free: 99.02 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002217/1.971, allocations: 263.3 kB / 0.971 GB, free: 98.66 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.891/4.861, allocations: 1 kB / 0.971 GB, free: 98.66 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat does not exist to compare? outputFormat=mat