Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.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.TestDensity,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001094/0.001094, allocations: 194.6 kB / 17.08 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.544/1.544, allocations: 227.2 MB / 245 MB, free: 7.676 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001056/0.001056, allocations: 105 kB / 297.3 MB, free: 6.203 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3909/0.3909, allocations: 45.22 MB / 394.6 MB, free: 31.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002886/0.0002888, allocations: 8.219 kB / 468.5 MB, free: 7.648 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4849/0.4852, allocations: 63.25 MB / 0.5193 GB, free: 43.91 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.804/8.29, allocations: 2.768 GB / 3.287 GB, free: 146.3 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004381/8.29, allocations: 90.56 kB / 3.287 GB, free: 146.3 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 .... [/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 3.169/11.46, allocations: 0.6744 GB / 3.962 GB, free: 50.88 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.878e-06/11.46, allocations: 0 / 3.962 GB, free: 50.88 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001205/11.46, allocations: 21.59 kB / 3.962 GB, free: 50.88 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.01178/11.47, allocations: 2.295 MB / 3.964 GB, free: 50.06 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 6.533e-05/11.47, allocations: 12.25 kB / 3.964 GB, free: 50.06 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006664/11.47, allocations: 120.6 kB / 3.964 GB, free: 50.02 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005904/11.48, allocations: 0.5897 MB / 3.965 GB, free: 49.98 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002436/11.48, allocations: 0.6757 MB / 3.965 GB, free: 49.71 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000134/11.48, allocations: 65.97 kB / 3.965 GB, free: 49.71 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000277/11.48, allocations: 70.91 kB / 3.966 GB, free: 49.71 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004076/11.49, allocations: 1.38 MB / 3.967 GB, free: 49.41 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.892e-05/11.49, allocations: 8.516 kB / 3.967 GB, free: 49.41 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002032/11.49, allocations: 33.78 kB / 3.967 GB, free: 49.41 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.002e-05/11.49, allocations: 23.56 kB / 3.967 GB, free: 49.41 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003572/11.49, allocations: 1.241 MB / 3.968 GB, free: 49.41 MB / 0.5573 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.009468/11.5, allocations: 5.736 MB / 3.974 GB, free: 45.8 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003238/11.5, allocations: 1.007 MB / 3.975 GB, free: 45.75 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07459/11.58, allocations: 35.86 MB / 4.01 GB, free: 38.46 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.95e-05/11.58, allocations: 39.53 kB / 4.01 GB, free: 38.42 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001108/11.58, allocations: 147.2 kB / 4.01 GB, free: 38.38 MB / 0.573 GB Notification: Performance of pre-optimization done (n=58): time 8.486e-06/11.58, allocations: 0.6562 kB / 4.01 GB, free: 38.38 MB / 0.573 GB Notification: Performance of matching and sorting (n=58): time 0.006806/11.58, allocations: 1.872 MB / 4.012 GB, free: 38.09 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001392/11.58, allocations: 196.3 kB / 4.012 GB, free: 37.87 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001338/11.59, allocations: 0.586 MB / 4.013 GB, free: 37.74 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001307/11.59, allocations: 37.92 kB / 4.013 GB, free: 37.71 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000376/11.59, allocations: 398.6 kB / 4.013 GB, free: 37.53 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002348/11.59, allocations: 194.7 kB / 4.013 GB, free: 37.4 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.285e-05/11.59, allocations: 17.12 kB / 4.013 GB, free: 37.4 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002321/11.59, allocations: 392.5 kB / 4.014 GB, free: 37.09 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007782/11.59, allocations: 276.5 kB / 4.014 GB, free: 37.09 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008469/11.59, allocations: 0.5296 MB / 4.014 GB, free: 36.78 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007946/11.59, allocations: 346.3 kB / 4.015 GB, free: 36.77 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.548e-06/11.59, allocations: 3.656 kB / 4.015 GB, free: 36.77 MB / 0.573 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002213/11.59, allocations: 0.9487 MB / 4.016 GB, free: 36.68 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001303/11.59, allocations: 2.959 MB / 4.018 GB, free: 33.6 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.281e-05/11.59, allocations: 7.062 kB / 4.018 GB, free: 33.6 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00512/11.6, allocations: 0.6417 MB / 4.019 GB, free: 33.58 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008142/11.6, allocations: 193.1 kB / 4.019 GB, free: 33.58 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001025/11.6, allocations: 1.172 MB / 4.02 GB, free: 32.54 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001158/11.6, allocations: 82.81 kB / 4.02 GB, free: 32.54 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001497/11.6, allocations: 41.58 kB / 4.021 GB, free: 32.54 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/11.6, allocations: 7.188 kB / 4.021 GB, free: 32.54 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001922/11.6, allocations: 0.7943 MB / 4.021 GB, free: 32.53 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.856e-05/11.6, allocations: 7.062 kB / 4.021 GB, free: 32.53 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/11.6, allocations: 13.88 kB / 4.021 GB, free: 32.53 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007925/11.6, allocations: 231.5 kB / 4.022 GB, free: 32.52 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.143e-05/11.6, allocations: 13.91 kB / 4.022 GB, free: 32.52 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001026/11.61, allocations: 80.31 kB / 4.022 GB, free: 32.52 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.653e-05/11.61, allocations: 42.56 kB / 4.022 GB, free: 32.52 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 8 (boundary_fixed1.medium.phase,boundary_fixed.medium.phase,massFlowRate1.medium.phase,massFlowRate2.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,simpleGenericOrifice1.state_b.phase,simpleGenericOrifice1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006871/11.61, allocations: 309.3 kB / 4.022 GB, free: 32.32 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003099/11.61, allocations: 91.03 kB / 4.022 GB, free: 32.28 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005114/11.61, allocations: 3.722 MB / 4.026 GB, free: 31.85 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-05/11.61, allocations: 49.5 kB / 4.026 GB, free: 31.85 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/11.61, allocations: 0 / 4.026 GB, free: 31.85 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/11.61, allocations: 3.328 kB / 4.026 GB, free: 31.85 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002962/11.61, allocations: 1.766 MB / 4.027 GB, free: 31.55 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.315e-05/11.61, allocations: 3.844 kB / 4.027 GB, free: 31.55 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006288/11.62, allocations: 168.4 kB / 4.028 GB, free: 31.55 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002746/11.62, allocations: 0.8709 MB / 4.028 GB, free: 31.5 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.596e-05/11.62, allocations: 13.62 kB / 4.029 GB, free: 31.5 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001329/11.62, allocations: 1.582 MB / 4.03 GB, free: 30.45 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/11.62, allocations: 0 / 4.03 GB, free: 30.45 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003533/11.62, allocations: 2.179 MB / 4.032 GB, free: 29.96 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/11.62, allocations: 462.6 kB / 4.033 GB, free: 29.73 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00034/11.62, allocations: 13.25 kB / 4.033 GB, free: 29.73 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/11.63, allocations: 70.7 kB / 4.033 GB, free: 29.72 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001748/11.63, allocations: 63.17 kB / 4.033 GB, free: 29.72 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.569e-05/11.63, allocations: 27.41 kB / 4.033 GB, free: 29.72 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001334/11.63, allocations: 0.7557 MB / 4.034 GB, free: 29.61 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.71e-07/11.63, allocations: 2.969 kB / 4.034 GB, free: 29.61 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.008048/11.64, allocations: 1.35 MB / 4.035 GB, free: 29.45 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 28 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,massFlowRate2.medium.phase,boundary_fixed1.medium.phase,$cse13.phase,$cse13.region,$cse17.phase,$cse17.region,$cse20.phase,$cse20.region,$cse22.region3boundary,$cse23.region3boundary,$cse24.phase,$cse24.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.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 (68): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.01364/11.65, allocations: 4.286 MB / 4.039 GB, free: 28.08 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.003921/11.65, allocations: 1.528 MB / 4.041 GB, free: 28.04 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/11.65, allocations: 0 / 4.041 GB, free: 28.04 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001449/11.65, allocations: 0.8886 MB / 4.041 GB, free: 28.02 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002924/11.66, allocations: 482 kB / 4.042 GB, free: 27.98 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02128/11.68, allocations: 12.23 MB / 4.054 GB, free: 20.21 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001174/11.68, allocations: 1.293 MB / 4.055 GB, free: 19.47 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.002249/11.68, allocations: 1.227 MB / 4.056 GB, free: 19.43 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007498/11.68, allocations: 0.5505 MB / 4.057 GB, free: 19.42 MB / 0.573 GB Notification: Performance of SimCode: time 1.512e-06/11.68, allocations: 0 / 4.057 GB, free: 19.42 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1292/11.81, allocations: 63.82 MB / 4.119 GB, free: 15.93 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002753/11.81, allocations: 252.6 kB / 4.119 GB, free: 15.59 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.681/16.49, allocations: 0 / 4.119 GB, free: 15.59 MB / 0.573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat does not exist to compare? outputFormat=mat