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.001516/0.001516, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.505/1.505, allocations: 227.2 MB / 245 MB, free: 5.773 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009801/0.0009797, allocations: 100 kB / 297.3 MB, free: 5.965 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4381/0.4381, allocations: 45.23 MB / 394.6 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003133/0.0003134, allocations: 8 kB / 468.5 MB, free: 7.633 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3903/0.3907, allocations: 63.25 MB / 0.5193 GB, free: 37.42 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.118/8.509, allocations: 2.767 GB / 3.286 GB, free: 125 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003595/8.51, allocations: 92.23 kB / 3.286 GB, free: 125 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.869/10.38, allocations: 406.9 MB / 3.684 GB, free: 71.85 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.615e-06/10.38, allocations: 0 / 3.684 GB, free: 71.85 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.755e-05/10.38, allocations: 7.875 kB / 3.684 GB, free: 71.85 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.00859/10.39, allocations: 1.607 MB / 3.685 GB, free: 71.12 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 7.041e-05/10.39, allocations: 11.69 kB / 3.685 GB, free: 71.12 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003353/10.39, allocations: 76.28 kB / 3.685 GB, free: 71.09 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002779/10.39, allocations: 307.5 kB / 3.686 GB, free: 71.06 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001393/10.39, allocations: 454.4 kB / 3.686 GB, free: 70.84 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.781e-05/10.39, allocations: 31.97 kB / 3.686 GB, free: 70.83 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/10.39, allocations: 39.64 kB / 3.686 GB, free: 70.83 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001986/10.39, allocations: 0.6968 MB / 3.687 GB, free: 70.68 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.766e-05/10.39, allocations: 8.281 kB / 3.687 GB, free: 70.68 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.142e-05/10.39, allocations: 21.05 kB / 3.687 GB, free: 70.68 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.49e-05/10.39, allocations: 15.5 kB / 3.687 GB, free: 70.68 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001676/10.4, allocations: 0.6042 MB / 3.687 GB, free: 70.67 MB / 0.5417 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.004292/10.4, allocations: 2.983 MB / 3.69 GB, free: 68.75 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001426/10.4, allocations: 494 kB / 3.691 GB, free: 68.72 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1179/10.52, allocations: 61.82 MB / 3.751 GB, free: 44.13 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.262e-05/10.52, allocations: 37.56 kB / 3.751 GB, free: 44.09 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=30): time 4.147e-06/10.52, allocations: 0 / 3.751 GB, free: 44.09 MB / 0.5573 GB Notification: Performance of matching and sorting (n=30): time 0.004066/10.52, allocations: 0.9907 MB / 3.752 GB, free: 43.92 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/10.52, allocations: 106.6 kB / 3.752 GB, free: 43.8 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000743/10.52, allocations: 361.2 kB / 3.753 GB, free: 43.69 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 7.332e-05/10.52, allocations: 33.17 kB / 3.753 GB, free: 43.66 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002598/10.53, allocations: 249.7 kB / 3.753 GB, free: 43.54 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001391/10.53, allocations: 112.1 kB / 3.753 GB, free: 43.47 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.456e-05/10.53, allocations: 6.188 kB / 3.753 GB, free: 43.47 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002438/10.53, allocations: 357.1 kB / 3.753 GB, free: 43.16 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004023/10.53, allocations: 147.4 kB / 3.754 GB, free: 43.15 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004767/10.53, allocations: 261.9 kB / 3.754 GB, free: 43.01 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00044/10.53, allocations: 167.8 kB / 3.754 GB, free: 43 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-05/10.53, allocations: 3.406 kB / 3.754 GB, free: 43 MB / 0.5573 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001382/10.53, allocations: 0.4964 MB / 3.754 GB, free: 42.93 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009852/10.53, allocations: 1.313 MB / 3.756 GB, free: 41.56 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.998e-05/10.53, allocations: 3.812 kB / 3.756 GB, free: 41.56 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002738/10.53, allocations: 338.8 kB / 3.756 GB, free: 41.54 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004071/10.53, allocations: 91.91 kB / 3.756 GB, free: 41.54 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007171/10.53, allocations: 0.603 MB / 3.757 GB, free: 41.01 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006842/10.53, allocations: 64.98 kB / 3.757 GB, free: 40.99 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.925e-05/10.53, allocations: 17.78 kB / 3.757 GB, free: 40.99 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/10.53, allocations: 7.719 kB / 3.757 GB, free: 40.99 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001017/10.54, allocations: 415.6 kB / 3.757 GB, free: 40.98 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/10.54, allocations: 3.953 kB / 3.757 GB, free: 40.97 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/10.54, allocations: 8.156 kB / 3.757 GB, free: 40.97 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000397/10.54, allocations: 120 kB / 3.757 GB, free: 40.97 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/10.54, allocations: 2.562 kB / 3.757 GB, free: 40.97 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005623/10.54, allocations: 73.86 kB / 3.757 GB, free: 40.94 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.511e-05/10.54, allocations: 13.84 kB / 3.757 GB, free: 40.94 MB / 0.5573 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 () * Number of clocked 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.0004736/10.54, allocations: 249.4 kB / 3.758 GB, free: 40.75 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001632/10.54, allocations: 44.69 kB / 3.758 GB, free: 40.73 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002876/10.54, allocations: 2.046 MB / 3.76 GB, free: 40.48 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.719e-05/10.54, allocations: 24.81 kB / 3.76 GB, free: 40.48 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/10.54, allocations: 0 / 3.76 GB, free: 40.48 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/10.54, allocations: 3.656 kB / 3.76 GB, free: 40.48 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001411/10.54, allocations: 1.014 MB / 3.761 GB, free: 40.23 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.233e-06/10.54, allocations: 2.75 kB / 3.761 GB, free: 40.23 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002896/10.54, allocations: 84.91 kB / 3.761 GB, free: 40.22 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001434/10.54, allocations: 0.631 MB / 3.761 GB, free: 40.17 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.248e-05/10.54, allocations: 7.781 kB / 3.761 GB, free: 40.17 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008995/10.54, allocations: 1.008 MB / 3.762 GB, free: 39.64 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/10.54, allocations: 4.062 kB / 3.762 GB, free: 39.63 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001849/10.55, allocations: 1.334 MB / 3.764 GB, free: 39.37 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004706/10.55, allocations: 262.1 kB / 3.764 GB, free: 39.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001298/10.55, allocations: 11.78 kB / 3.764 GB, free: 39.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004252/10.55, allocations: 41.88 kB / 3.764 GB, free: 39.2 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/10.55, allocations: 33.39 kB / 3.764 GB, free: 39.2 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.109e-05/10.55, allocations: 10.88 kB / 3.764 GB, free: 39.2 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0005416/10.55, allocations: 395.5 kB / 3.764 GB, free: 39.11 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.71e-07/10.55, allocations: 3.938 kB / 3.764 GB, free: 39.11 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.00725/10.55, allocations: 1.214 MB / 3.766 GB, free: 38.93 MB / 0.5573 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 () * Number of clocked 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.01408/10.57, allocations: 3.213 MB / 3.769 GB, free: 37.89 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002518/10.57, allocations: 0.812 MB / 3.77 GB, free: 37.86 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/10.57, allocations: 0 / 3.77 GB, free: 37.86 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0009614/10.57, allocations: 0.4911 MB / 3.77 GB, free: 37.85 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001725/10.57, allocations: 267 kB / 3.77 GB, free: 37.83 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01173/10.59, allocations: 6.264 MB / 3.776 GB, free: 34.14 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006463/10.59, allocations: 0.9911 MB / 3.777 GB, free: 33.42 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0009752/10.59, allocations: 0.5536 MB / 3.778 GB, free: 33.4 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003808/10.59, allocations: 289.2 kB / 3.778 GB, free: 33.39 MB / 0.5573 GB Notification: Performance of SimCode: time 5.71e-07/10.59, allocations: 0 / 3.778 GB, free: 33.39 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1005/10.69, allocations: 46.32 MB / 3.823 GB, free: 18.79 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002809/10.69, allocations: 247.3 kB / 3.824 GB, free: 18.46 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.942/14.63, allocations: 4 kB / 3.824 GB, free: 18.46 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