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.001152/0.001152, allocations: 196.1 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.339/1.339, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009248/0.0009251, allocations: 86.12 kB / 292.1 MB, free: 5.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2056/0.2056, allocations: 45.15 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.357e-05/3.359e-05, allocations: 4 kB / 460.5 MB, free: 69.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1231, allocations: 63.25 MB / 0.5115 GB, free: 6.691 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8567/0.9798, allocations: 291.2 MB / 0.7959 GB, free: 170 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/0.9801, allocations: 87.94 kB / 0.796 GB, free: 169.9 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 0.2289/1.209, allocations: 119.8 MB / 0.9129 GB, free: 48.75 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.583e-06/1.209, allocations: 4 kB / 0.9129 GB, free: 48.75 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.785e-05/1.209, allocations: 16 kB / 0.9129 GB, free: 48.73 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: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001559/1.211, allocations: 0.8663 MB / 0.9138 GB, free: 47.82 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/1.211, allocations: 8.031 kB / 0.9138 GB, free: 47.81 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001422/1.211, allocations: 82.53 kB / 0.9139 GB, free: 47.72 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003868/1.211, allocations: 87.14 kB / 0.914 GB, free: 47.63 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009775/1.212, allocations: 0.521 MB / 0.9145 GB, free: 47.07 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.722e-05/1.212, allocations: 32.94 kB / 0.9145 GB, free: 47.04 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.531e-05/1.212, allocations: 48 kB / 0.9145 GB, free: 46.99 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008681/1.213, allocations: 0.6512 MB / 0.9152 GB, free: 46.28 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/1.213, allocations: 0 / 0.9152 GB, free: 46.28 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.541e-05/1.213, allocations: 28 kB / 0.9152 GB, free: 46.25 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/1.213, allocations: 16 kB / 0.9152 GB, free: 46.24 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006394/1.214, allocations: 0.5152 MB / 0.9157 GB, free: 45.72 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002721/1.217, allocations: 3.066 MB / 0.9187 GB, free: 42.47 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003076/1.217, allocations: 222.5 kB / 0.9189 GB, free: 42.24 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001835/1.217, allocations: 133.1 kB / 0.9191 GB, free: 42.11 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001926/1.217, allocations: 344.4 kB / 0.9194 GB, free: 41.7 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003155/1.218, allocations: 276.2 kB / 0.9197 GB, free: 41.39 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=28): time 2.314e-06/1.218, allocations: 0 / 0.9197 GB, free: 41.39 MB / 0.5261 GB Notification: Performance of matching and sorting (n=28): time 0.0006794/1.218, allocations: 405.6 kB / 0.92 GB, free: 40.99 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.078e-05/1.219, allocations: 294.7 kB / 0.9203 GB, free: 40.63 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004481/1.219, allocations: 492.9 kB / 0.9208 GB, free: 40.14 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.775e-05/1.219, allocations: 33.7 kB / 0.9208 GB, free: 40.1 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000162/1.219, allocations: 339 kB / 0.9211 GB, free: 39.77 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.78e-05/1.219, allocations: 86.75 kB / 0.9212 GB, free: 39.68 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.242e-05/1.219, allocations: 12 kB / 0.9212 GB, free: 39.67 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.232e-05/1.219, allocations: 362.8 kB / 0.9216 GB, free: 39.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/1.22, allocations: 145.1 kB / 0.9217 GB, free: 39.16 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002825/1.22, allocations: 365 kB / 0.9221 GB, free: 38.71 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002638/1.22, allocations: 228 kB / 0.9223 GB, free: 38.48 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/1.22, allocations: 0 / 0.9223 GB, free: 38.48 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008143/1.221, allocations: 0.6111 MB / 0.9229 GB, free: 37.86 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003893/1.221, allocations: 2.123 MB / 0.925 GB, free: 35.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/1.221, allocations: 8 kB / 0.925 GB, free: 35.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.357e-05/1.221, allocations: 8 kB / 0.925 GB, free: 35.55 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/1.222, allocations: 175.7 kB / 0.9251 GB, free: 35.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003199/1.223, allocations: 0.6133 MB / 0.9257 GB, free: 34.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005049/1.223, allocations: 91.23 kB / 0.9258 GB, free: 34.65 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.65e-05/1.223, allocations: 31.98 kB / 0.9259 GB, free: 34.62 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.227e-06/1.223, allocations: 4 kB / 0.9259 GB, free: 34.61 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006992/1.224, allocations: 0.528 MB / 0.9264 GB, free: 34.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/1.224, allocations: 8 kB / 0.9264 GB, free: 34.07 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.306e-06/1.224, allocations: 8 kB / 0.9264 GB, free: 34.06 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003177/1.224, allocations: 116.5 kB / 0.9265 GB, free: 33.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.762e-06/1.224, allocations: 8 kB / 0.9265 GB, free: 33.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004117/1.225, allocations: 71.42 kB / 0.9266 GB, free: 33.87 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.425e-05/1.225, allocations: 27.98 kB / 0.9266 GB, free: 33.84 MB / 0.5261 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.0001616/1.225, allocations: 179.9 kB / 0.9268 GB, free: 33.66 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.172e-05/1.225, allocations: 67.23 kB / 0.9268 GB, free: 33.59 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001169/1.226, allocations: 0.7475 MB / 0.9276 GB, free: 32.83 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.219e-05/1.226, allocations: 4 kB / 0.9276 GB, free: 32.82 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/1.226, allocations: 4 kB / 0.9276 GB, free: 32.82 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/1.226, allocations: 4 kB / 0.9276 GB, free: 32.82 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006297/1.227, allocations: 0.5209 MB / 0.9281 GB, free: 32.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/1.227, allocations: 0 / 0.9281 GB, free: 32.24 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005524/1.228, allocations: 123.8 kB / 0.9282 GB, free: 32.12 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.564e-06/1.228, allocations: 7.953 kB / 0.9282 GB, free: 32.11 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.928e-05/1.228, allocations: 11.98 kB / 0.9282 GB, free: 32.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002131/1.228, allocations: 0.5937 MB / 0.9288 GB, free: 31.48 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/1.228, allocations: 0 / 0.9288 GB, free: 31.48 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006398/1.229, allocations: 0.5288 MB / 0.9293 GB, free: 30.94 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002792/1.229, allocations: 208.2 kB / 0.9295 GB, free: 30.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/1.229, allocations: 12 kB / 0.9295 GB, free: 30.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003432/1.229, allocations: 31.83 kB / 0.9296 GB, free: 30.67 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.09e-05/1.229, allocations: 24.3 kB / 0.9296 GB, free: 30.65 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.465e-05/1.229, allocations: 23.98 kB / 0.9296 GB, free: 30.62 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0003698/1.23, allocations: 403.2 kB / 0.93 GB, free: 30.23 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.91e-07/1.23, allocations: 4 kB / 0.93 GB, free: 30.22 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001239/1.231, allocations: 459.5 kB / 0.9304 GB, free: 29.77 MB / 0.5261 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.001662/1.233, allocations: 1.419 MB / 0.9318 GB, free: 28.32 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001935/1.235, allocations: 0.9055 MB / 0.9327 GB, free: 27.39 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/1.235, allocations: 0 / 0.9327 GB, free: 27.39 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.000774/1.235, allocations: 359.8 kB / 0.9331 GB, free: 27.03 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/1.237, allocations: 262.5 kB / 0.9333 GB, free: 26.78 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001817/1.238, allocations: 0.9403 MB / 0.9342 GB, free: 25.8 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002509/1.239, allocations: 0.9048 MB / 0.9351 GB, free: 24.86 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0007195/1.239, allocations: 224.6 kB / 0.9353 GB, free: 24.64 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002374/1.24, allocations: 223.3 kB / 0.9355 GB, free: 24.42 MB / 0.5261 GB Notification: Performance of SimCode: time 1.553e-06/1.24, allocations: 4 kB / 0.9355 GB, free: 24.42 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04099/1.281, allocations: 22.18 MB / 0.9572 GB, free: 2.48 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002069/1.281, allocations: 240.2 kB / 0.9574 GB, free: 2.168 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.535/3.816, allocations: 0 / 0.9574 GB, free: 2.168 MB / 0.5261 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