Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.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.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00108/0.00108, 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.355/1.355, allocations: 225.4 MB / 240.1 MB, free: 15.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001005/0.001005, allocations: 87.34 kB / 292.1 MB, free: 5.945 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.218/0.218, allocations: 45.14 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.897e-05/3.9e-05, allocations: 4 kB / 460.5 MB, free: 69.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1435, allocations: 63.24 MB / 0.5115 GB, free: 6.695 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.048/6.192, allocations: 2.767 GB / 3.278 GB, free: 88.91 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001844/6.192, allocations: 83.95 kB / 3.278 GB, free: 88.83 MB / 0.5417 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 .... Notification: Performance of FrontEnd - DAE generated: time 1.23/7.422, allocations: 405.8 MB / 3.675 GB, free: 88.37 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.062e-06/7.422, allocations: 0 / 3.675 GB, free: 88.37 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.609e-05/7.422, allocations: 19.47 kB / 3.675 GB, free: 88.36 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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.005017/7.427, allocations: 1.552 MB / 3.676 GB, free: 87.53 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/7.427, allocations: 7.25 kB / 3.676 GB, free: 87.53 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.326e-05/7.427, allocations: 79.66 kB / 3.676 GB, free: 87.47 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00216/7.43, allocations: 306.3 kB / 3.677 GB, free: 87.43 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007553/7.43, allocations: 460.3 kB / 3.677 GB, free: 87.1 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.328e-05/7.43, allocations: 36.25 kB / 3.677 GB, free: 87.08 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.851e-05/7.43, allocations: 35.05 kB / 3.677 GB, free: 87.07 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001298/7.432, allocations: 0.6971 MB / 3.678 GB, free: 86.74 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/7.432, allocations: 3.969 kB / 3.678 GB, free: 86.74 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.524e-05/7.432, allocations: 23.95 kB / 3.678 GB, free: 86.72 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/7.432, allocations: 9.781 kB / 3.678 GB, free: 86.72 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/7.433, allocations: 0.5678 MB / 3.678 GB, free: 86.56 MB / 0.5417 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.002786/7.436, allocations: 2.971 MB / 3.681 GB, free: 84.23 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001053/7.437, allocations: 481.9 kB / 3.682 GB, free: 84.09 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001928/7.437, allocations: 150 kB / 3.682 GB, free: 84.02 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0877/7.525, allocations: 62.01 MB / 3.742 GB, free: 36.98 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.132e-05/7.525, allocations: 42.03 kB / 3.742 GB, free: 36.93 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=30): time 2.715e-06/7.525, allocations: 0 / 3.742 GB, free: 36.93 MB / 0.5417 GB Notification: Performance of matching and sorting (n=30): time 0.002108/7.527, allocations: 0.7261 MB / 3.743 GB, free: 36.35 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.535e-05/7.527, allocations: 110.8 kB / 3.743 GB, free: 36.22 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000362/7.527, allocations: 356.3 kB / 3.744 GB, free: 35.89 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.899e-05/7.527, allocations: 33.7 kB / 3.744 GB, free: 35.85 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/7.528, allocations: 252.9 kB / 3.744 GB, free: 35.62 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 5.547e-05/7.528, allocations: 99.3 kB / 3.744 GB, free: 35.53 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.645e-05/7.528, allocations: 8 kB / 3.744 GB, free: 35.52 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.392e-05/7.528, allocations: 357.3 kB / 3.744 GB, free: 35.18 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/7.528, allocations: 117.4 kB / 3.744 GB, free: 35.07 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001902/7.528, allocations: 221.9 kB / 3.745 GB, free: 34.81 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001862/7.528, allocations: 138.8 kB / 3.745 GB, free: 34.7 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/7.528, allocations: 4 kB / 3.745 GB, free: 34.69 MB / 0.5417 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005945/7.529, allocations: 436.9 kB / 3.745 GB, free: 34.29 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002361/7.529, allocations: 1.312 MB / 3.747 GB, free: 32.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/7.529, allocations: 4 kB / 3.747 GB, free: 32.88 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002417/7.532, allocations: 338 kB / 3.747 GB, free: 32.64 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003286/7.532, allocations: 95.27 kB / 3.747 GB, free: 32.56 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003968/7.532, allocations: 0.5988 MB / 3.748 GB, free: 31.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004245/7.533, allocations: 71.34 kB / 3.748 GB, free: 31.89 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.332e-05/7.533, allocations: 16 kB / 3.748 GB, free: 31.88 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/7.533, allocations: 5.406 kB / 3.748 GB, free: 31.87 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004875/7.533, allocations: 336.6 kB / 3.748 GB, free: 31.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/7.533, allocations: 4 kB / 3.748 GB, free: 31.57 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.022e-06/7.533, allocations: 7.938 kB / 3.748 GB, free: 31.56 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003487/7.534, allocations: 106.7 kB / 3.748 GB, free: 31.48 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/7.534, allocations: 8 kB / 3.748 GB, free: 31.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002944/7.534, allocations: 75.42 kB / 3.748 GB, free: 31.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.661e-05/7.534, allocations: 16 kB / 3.748 GB, free: 31.39 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (boundary_fixed.medium.phase,massFlowRate1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001129/7.534, allocations: 134.3 kB / 3.748 GB, free: 31.25 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.42e-05/7.534, allocations: 47.47 kB / 3.748 GB, free: 31.21 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001824/7.536, allocations: 2.004 MB / 3.75 GB, free: 29.4 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-05/7.536, allocations: 26.64 kB / 3.75 GB, free: 29.39 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/7.536, allocations: 0 / 3.75 GB, free: 29.39 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/7.536, allocations: 4 kB / 3.75 GB, free: 29.38 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007758/7.537, allocations: 1.006 MB / 3.751 GB, free: 28.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/7.537, allocations: 0 / 3.751 GB, free: 28.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000267/7.537, allocations: 85.95 kB / 3.751 GB, free: 28.43 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001245/7.538, allocations: 0.759 MB / 3.752 GB, free: 27.82 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.274e-05/7.538, allocations: 8 kB / 3.752 GB, free: 27.81 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005437/7.539, allocations: 1.005 MB / 3.753 GB, free: 26.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/7.539, allocations: 4.031 kB / 3.753 GB, free: 26.83 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009231/7.54, allocations: 1.265 MB / 3.754 GB, free: 25.65 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002081/7.54, allocations: 254.2 kB / 3.755 GB, free: 25.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.995e-05/7.54, allocations: 8 kB / 3.755 GB, free: 25.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003/7.541, allocations: 45.83 kB / 3.755 GB, free: 25.37 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.222e-05/7.541, allocations: 26.27 kB / 3.755 GB, free: 25.35 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.195e-05/7.541, allocations: 14.81 kB / 3.755 GB, free: 25.34 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0003326/7.541, allocations: 388.6 kB / 3.755 GB, free: 24.98 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.31e-07/7.541, allocations: 0 / 3.755 GB, free: 24.98 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.004187/7.545, allocations: 1.213 MB / 3.756 GB, free: 23.8 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: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,massFlowRate1.medium.phase,boundary_fixed.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.007068/7.552, allocations: 3.14 MB / 3.759 GB, free: 21.08 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001099/7.553, allocations: 0.716 MB / 3.76 GB, free: 20.41 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/7.553, allocations: 4 kB / 3.76 GB, free: 20.4 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000394/7.554, allocations: 462.6 kB / 3.76 GB, free: 19.97 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001298/7.555, allocations: 270.4 kB / 3.761 GB, free: 19.79 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003759/7.559, allocations: 1.654 MB / 3.762 GB, free: 18.25 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003395/7.559, allocations: 0.9986 MB / 3.763 GB, free: 17.34 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0007575/7.56, allocations: 0.5798 MB / 3.764 GB, free: 17 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002305/7.56, allocations: 278.4 kB / 3.764 GB, free: 16.75 MB / 0.5417 GB Notification: Performance of SimCode: time 8.62e-07/7.56, allocations: 0 / 3.764 GB, free: 16.75 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3403/7.901, allocations: 49.44 MB / 3.812 GB, free: 99.34 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001638/7.901, allocations: 229.4 kB / 3.813 GB, free: 99.11 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.28/11.18, allocations: 0 / 3.813 GB, free: 99.11 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat does not exist to compare? outputFormat=mat