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.001708/0.001708, allocations: 199 kB / 8.767 MB, free: 316 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008374/0.0008374, allocations: 102.1 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2149/0.2149, allocations: 45.16 MB / 383.8 MB, free: 296 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.888e-05/1.941e-05, allocations: 4 kB / 453.3 MB, free: 75.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1141, allocations: 63.25 MB / 0.5045 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8735/0.9876, allocations: 290.6 MB / 0.7882 GB, free: 159.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/0.9879, allocations: 81.92 kB / 0.7883 GB, free: 159.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.2239/1.212, allocations: 118.7 MB / 0.9042 GB, free: 51.34 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.773e-06/1.212, allocations: 0 / 0.9042 GB, free: 51.34 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.555e-05/1.212, allocations: 19.98 kB / 0.9042 GB, free: 51.32 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.001683/1.214, allocations: 0.8666 MB / 0.9051 GB, free: 50.4 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/1.214, allocations: 8.031 kB / 0.9051 GB, free: 50.39 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004573/1.214, allocations: 79.16 kB / 0.9052 GB, free: 50.31 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001007/1.215, allocations: 0.5273 MB / 0.9057 GB, free: 49.75 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.483e-05/1.215, allocations: 12 kB / 0.9057 GB, free: 49.73 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.417e-05/1.215, allocations: 28 kB / 0.9057 GB, free: 49.71 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006737/1.216, allocations: 482.4 kB / 0.9062 GB, free: 49.23 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007364/1.217, allocations: 0.5829 MB / 0.9067 GB, free: 48.59 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/1.217, allocations: 0 / 0.9067 GB, free: 48.59 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.219e-05/1.217, allocations: 4 kB / 0.9068 GB, free: 48.59 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/1.217, allocations: 12 kB / 0.9068 GB, free: 48.57 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002786/1.22, allocations: 2.98 MB / 0.9097 GB, free: 45.42 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002773/1.22, allocations: 198.8 kB / 0.9099 GB, free: 45.21 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001559/1.22, allocations: 137 kB / 0.91 GB, free: 45.08 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001976/1.22, allocations: 332.4 kB / 0.9103 GB, free: 44.68 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002952/1.221, allocations: 275.9 kB / 0.9106 GB, free: 44.38 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=28): time 2.024e-06/1.221, allocations: 0 / 0.9106 GB, free: 44.38 MB / 0.5261 GB Notification: Performance of matching and sorting (n=28): time 0.002799/1.223, allocations: 0.6636 MB / 0.9112 GB, free: 43.71 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.916e-05/1.224, allocations: 286.7 kB / 0.9115 GB, free: 43.36 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003448/1.224, allocations: 381.2 kB / 0.9119 GB, free: 42.98 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.784e-05/1.224, allocations: 25.7 kB / 0.9119 GB, free: 42.95 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/1.224, allocations: 346.9 kB / 0.9122 GB, free: 42.61 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.539e-05/1.224, allocations: 98.62 kB / 0.9123 GB, free: 42.51 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.225e-05/1.224, allocations: 0 / 0.9123 GB, free: 42.51 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.499e-05/1.224, allocations: 358.8 kB / 0.9126 GB, free: 42.15 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001774/1.224, allocations: 137.1 kB / 0.9128 GB, free: 42.01 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002529/1.225, allocations: 347.9 kB / 0.9131 GB, free: 41.57 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002342/1.227, allocations: 0.4915 MB / 0.9136 GB, free: 41.08 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/1.227, allocations: 4 kB / 0.9136 GB, free: 41.08 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002812/1.23, allocations: 0.8285 MB / 0.9144 GB, free: 40.24 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004246/1.23, allocations: 2.13 MB / 0.9165 GB, free: 37.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/1.23, allocations: 4 kB / 0.9165 GB, free: 37.94 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.394e-05/1.23, allocations: 16 kB / 0.9165 GB, free: 37.92 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/1.231, allocations: 171.7 kB / 0.9167 GB, free: 37.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006755/1.232, allocations: 0.6719 MB / 0.9173 GB, free: 37.06 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005263/1.233, allocations: 55.42 kB / 0.9174 GB, free: 37 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.083e-05/1.233, allocations: 39.97 kB / 0.9174 GB, free: 36.96 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.596e-06/1.233, allocations: 4 kB / 0.9174 GB, free: 36.96 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001902/1.235, allocations: 0.6362 MB / 0.918 GB, free: 36.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/1.235, allocations: 7.938 kB / 0.918 GB, free: 36.32 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.676e-06/1.235, allocations: 8 kB / 0.9181 GB, free: 36.31 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003503/1.235, allocations: 111.9 kB / 0.9182 GB, free: 36.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/1.235, allocations: 11.94 kB / 0.9182 GB, free: 36.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004412/1.236, allocations: 43.95 kB / 0.9182 GB, free: 36.14 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.813e-05/1.236, allocations: 31.98 kB / 0.9182 GB, free: 36.11 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.000185/1.236, allocations: 154.5 kB / 0.9184 GB, free: 35.95 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00257/1.238, allocations: 0.6684 MB / 0.919 GB, free: 35.27 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.559e-05/1.238, allocations: 51.39 kB / 0.9191 GB, free: 35.22 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001829/1.24, allocations: 0.8038 MB / 0.9199 GB, free: 34.41 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.669e-06/1.24, allocations: 7.984 kB / 0.9199 GB, free: 34.41 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/1.24, allocations: 7.938 kB / 0.9199 GB, free: 34.4 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/1.24, allocations: 0 / 0.9199 GB, free: 34.4 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005634/1.241, allocations: 465.9 kB / 0.9203 GB, free: 33.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/1.241, allocations: 0 / 0.9203 GB, free: 33.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005299/1.241, allocations: 111.9 kB / 0.9204 GB, free: 33.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.885e-06/1.241, allocations: 3.953 kB / 0.9204 GB, free: 33.79 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.802e-05/1.242, allocations: 15.98 kB / 0.9205 GB, free: 33.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003302/1.242, allocations: 0.6171 MB / 0.9211 GB, free: 33.13 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/1.242, allocations: 0 / 0.9211 GB, free: 33.13 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001292/1.243, allocations: 0.5896 MB / 0.9216 GB, free: 32.53 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002522/1.243, allocations: 200.3 kB / 0.9218 GB, free: 32.31 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/1.244, allocations: 8 kB / 0.9218 GB, free: 32.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003097/1.244, allocations: 19.92 kB / 0.9219 GB, free: 32.29 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.284e-05/1.244, allocations: 36.23 kB / 0.9219 GB, free: 32.25 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.354e-05/1.244, allocations: 19.98 kB / 0.9219 GB, free: 32.23 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002765/1.244, allocations: 302.9 kB / 0.9222 GB, free: 31.94 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.41e-07/1.244, allocations: 0 / 0.9222 GB, free: 31.94 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001264/1.246, allocations: 447.2 kB / 0.9226 GB, free: 31.5 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.00233/1.248, allocations: 1.498 MB / 0.9241 GB, free: 29.98 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001851/1.25, allocations: 0.8472 MB / 0.9249 GB, free: 29.11 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/1.25, allocations: 0 / 0.9249 GB, free: 29.11 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0007297/1.25, allocations: 351.8 kB / 0.9253 GB, free: 28.75 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/1.252, allocations: 205.4 kB / 0.9255 GB, free: 28.55 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001864/1.254, allocations: 0.882 MB / 0.9263 GB, free: 27.63 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002756/1.254, allocations: 0.9003 MB / 0.9272 GB, free: 26.71 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0006914/1.255, allocations: 200.1 kB / 0.9274 GB, free: 26.51 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002676/1.255, allocations: 219.3 kB / 0.9276 GB, free: 26.3 MB / 0.5261 GB Notification: Performance of SimCode: time 1.052e-06/1.255, allocations: 0 / 0.9276 GB, free: 26.3 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04252/1.297, allocations: 18.16 MB / 0.9453 GB, free: 8.195 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001623/1.298, allocations: 194.1 kB / 0.9455 GB, free: 8.004 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.611/3.908, allocations: 0 / 0.9455 GB, free: 8.004 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