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.001807/0.001807, allocations: 201.8 kB / 8.767 MB, free: 288 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.513/1.513, allocations: 225.6 MB / 234.8 MB, free: 3.258 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001059/0.001059, allocations: 96.25 kB / 286.7 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2249/0.2249, allocations: 45.14 MB / 383.7 MB, free: 276 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.322e-05/2.325e-05, allocations: 4 kB / 453.3 MB, free: 75.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.1395, allocations: 63.25 MB / 0.5045 GB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.557/7.697, allocations: 2.767 GB / 3.272 GB, free: 72.42 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/7.697, allocations: 85.39 kB / 3.272 GB, free: 72.38 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 2.324/10.02, allocations: 0.6664 GB / 3.938 GB, free: 28.88 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.705e-06/10.02, allocations: 0 / 3.938 GB, free: 28.88 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.534e-05/10.02, allocations: 26.67 kB / 3.938 GB, free: 28.86 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.007483/10.03, allocations: 2.202 MB / 3.94 GB, free: 26.62 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/10.03, allocations: 15.97 kB / 3.94 GB, free: 26.6 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004677/10.03, allocations: 0.6018 MB / 3.941 GB, free: 26 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001318/10.03, allocations: 0.6647 MB / 3.942 GB, free: 25.3 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.808e-05/10.04, allocations: 36 kB / 3.942 GB, free: 25.27 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.36e-05/10.04, allocations: 44.69 kB / 3.942 GB, free: 25.23 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001161/10.04, allocations: 0.7498 MB / 3.943 GB, free: 24.48 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/10.04, allocations: 0.9217 MB / 3.943 GB, free: 23.46 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/10.04, allocations: 0 / 3.943 GB, free: 23.46 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.661e-05/10.04, allocations: 7.938 kB / 3.943 GB, free: 23.45 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.136e-05/10.04, allocations: 20 kB / 3.943 GB, free: 23.43 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.5961/10.63, allocations: 113.4 MB / 4.054 GB, free: 27.87 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001083/10.63, allocations: 0.5275 MB / 4.055 GB, free: 27.82 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003353/10.64, allocations: 226.9 kB / 4.055 GB, free: 27.81 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06654/10.7, allocations: 35.97 MB / 4.09 GB, free: 19.38 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.575e-05/10.7, allocations: 42.91 kB / 4.09 GB, free: 19.34 MB / 0.5886 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000867/10.7, allocations: 102.5 kB / 4.09 GB, free: 19.32 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=46): time 3.406e-06/10.7, allocations: 0 / 4.09 GB, free: 19.32 MB / 0.5886 GB Notification: Performance of matching and sorting (n=46): time 0.004154/10.71, allocations: 1.156 MB / 4.091 GB, free: 19.22 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/10.71, allocations: 193.3 kB / 4.091 GB, free: 19 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006034/10.71, allocations: 461.2 kB / 4.092 GB, free: 18.89 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 5.962e-05/10.71, allocations: 27.2 kB / 4.092 GB, free: 18.86 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003001/10.71, allocations: 450.4 kB / 4.092 GB, free: 18.66 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/10.71, allocations: 156.7 kB / 4.093 GB, free: 18.58 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-05/10.71, allocations: 0 / 4.093 GB, free: 18.58 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001904/10.71, allocations: 372.6 kB / 4.093 GB, free: 18.27 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003273/10.71, allocations: 185 kB / 4.093 GB, free: 18.27 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004089/10.71, allocations: 456.7 kB / 4.093 GB, free: 17.95 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001949/10.71, allocations: 0.4886 MB / 4.094 GB, free: 17.94 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/10.71, allocations: 3.531 kB / 4.094 GB, free: 17.94 MB / 0.5886 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002702/10.71, allocations: 0.9643 MB / 4.095 GB, free: 17.84 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001882/10.72, allocations: 2.967 MB / 4.098 GB, free: 30.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/10.72, allocations: 7.562 kB / 4.098 GB, free: 30.73 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003127/10.72, allocations: 82 kB / 4.098 GB, free: 30.71 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006652/10.72, allocations: 194.9 kB / 4.098 GB, free: 30.71 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001649/10.72, allocations: 1.297 MB / 4.099 GB, free: 29.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009696/10.72, allocations: 100.2 kB / 4.099 GB, free: 29.66 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.082e-05/10.72, allocations: 44.38 kB / 4.099 GB, free: 29.66 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/10.72, allocations: 9.375 kB / 4.099 GB, free: 29.65 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001821/10.72, allocations: 0.6899 MB / 4.1 GB, free: 29.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/10.72, allocations: 9.062 kB / 4.1 GB, free: 29.64 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/10.72, allocations: 13.78 kB / 4.1 GB, free: 29.64 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007275/10.72, allocations: 225.3 kB / 4.1 GB, free: 29.64 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/10.72, allocations: 23.22 kB / 4.1 GB, free: 29.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006717/10.72, allocations: 79.77 kB / 4.1 GB, free: 29.63 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.436e-05/10.72, allocations: 38.53 kB / 4.101 GB, free: 29.63 MB / 0.6042 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 (massFlowRate1.medium.phase,boundary_fixed.medium.phase,massFlowRate2.medium.phase,boundary_fixed1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,simpleGenericOrifice1.state_b.phase,simpleGenericOrifice1.state_a.phase) * Number of discrete 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.0002608/10.72, allocations: 142.5 kB / 4.101 GB, free: 29.51 MB / 0.6042 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002304/10.73, allocations: 0.7013 MB / 4.101 GB, free: 29.42 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001218/10.73, allocations: 73.59 kB / 4.101 GB, free: 29.39 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003897/10.73, allocations: 2.852 MB / 4.104 GB, free: 29.08 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.553e-05/10.73, allocations: 42.23 kB / 4.104 GB, free: 29.08 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/10.73, allocations: 0 / 4.104 GB, free: 29.08 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/10.73, allocations: 3.844 kB / 4.104 GB, free: 29.08 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004417/10.73, allocations: 3.778 MB / 4.108 GB, free: 28.56 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/10.73, allocations: 3.625 kB / 4.108 GB, free: 28.56 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004017/10.73, allocations: 114.9 kB / 4.108 GB, free: 28.56 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007028/10.74, allocations: 0.7397 MB / 4.109 GB, free: 28.51 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.4e-05/10.74, allocations: 11.12 kB / 4.109 GB, free: 28.51 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001475/10.74, allocations: 1.685 MB / 4.11 GB, free: 27.46 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/10.74, allocations: 0 / 4.11 GB, free: 27.46 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002417/10.74, allocations: 1.959 MB / 4.112 GB, free: 26.97 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003979/10.74, allocations: 310.1 kB / 4.113 GB, free: 26.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/10.74, allocations: 3.906 kB / 4.113 GB, free: 26.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005788/10.74, allocations: 64.72 kB / 4.113 GB, free: 26.8 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/10.74, allocations: 56.14 kB / 4.113 GB, free: 26.8 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.181e-05/10.74, allocations: 22.36 kB / 4.113 GB, free: 26.8 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0005061/10.74, allocations: 439.2 kB / 4.113 GB, free: 26.7 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.01e-07/10.74, allocations: 0 / 4.113 GB, free: 26.7 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.005058/10.75, allocations: 1.282 MB / 4.114 GB, free: 26.67 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 22 ($cse9.phase,$cse9.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse17.region3boundary,$cse18.region3boundary,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,massFlowRate1.medium.phase,$cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,massFlowRate2.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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.00958/10.76, allocations: 4.513 MB / 4.119 GB, free: 25.15 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002109/10.76, allocations: 1.165 MB / 4.12 GB, free: 25.14 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/10.76, allocations: 4.125 kB / 4.12 GB, free: 25.13 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0007618/10.76, allocations: 0.6886 MB / 4.121 GB, free: 25.12 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001716/10.76, allocations: 297.9 kB / 4.121 GB, free: 25.11 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005606/10.77, allocations: 2.24 MB / 4.123 GB, free: 24.56 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007338/10.77, allocations: 1.186 MB / 4.124 GB, free: 23.83 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.001816/10.77, allocations: 1.415 MB / 4.126 GB, free: 23.79 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004753/10.77, allocations: 444.4 kB / 4.126 GB, free: 23.78 MB / 0.6042 GB Notification: Performance of SimCode: time 1.292e-06/10.77, allocations: 0 / 4.126 GB, free: 23.78 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08813/10.86, allocations: 48.9 MB / 4.174 GB, free: 15.07 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002061/10.86, allocations: 178 kB / 4.174 GB, free: 14.88 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.014/14.87, allocations: 0 / 4.174 GB, free: 14.88 MB / 0.6042 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