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.001187/0.001187, allocations: 196.2 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.418/1.418, allocations: 225.4 MB / 240.1 MB, free: 15.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008819/0.0008821, allocations: 95.92 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.2089/0.2089, allocations: 45.15 MB / 389.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.102e-05/3.105e-05, allocations: 0 / 460.5 MB, free: 69.94 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1261, allocations: 63.25 MB / 0.5115 GB, free: 6.715 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.416/5.542, allocations: 2.768 GB / 3.279 GB, free: 90.84 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001743/5.542, allocations: 83.95 kB / 3.28 GB, free: 90.75 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 2.034/7.576, allocations: 0.6724 GB / 3.952 GB, free: 42.75 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.865e-06/7.576, allocations: 7.984 kB / 3.952 GB, free: 42.75 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.463e-05/7.576, allocations: 22.5 kB / 3.952 GB, free: 42.73 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.00646/7.582, allocations: 2.201 MB / 3.954 GB, free: 40.5 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/7.583, allocations: 8.031 kB / 3.954 GB, free: 40.49 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002427/7.583, allocations: 114.7 kB / 3.954 GB, free: 40.37 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004551/7.587, allocations: 0.6032 MB / 3.955 GB, free: 39.77 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/7.589, allocations: 0.6691 MB / 3.955 GB, free: 39.07 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.832e-05/7.589, allocations: 62.69 kB / 3.956 GB, free: 39.02 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000116/7.589, allocations: 72 kB / 3.956 GB, free: 38.95 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002682/7.591, allocations: 1.38 MB / 3.957 GB, free: 37.48 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/7.591, allocations: 7.938 kB / 3.957 GB, free: 37.47 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001019/7.592, allocations: 32 kB / 3.957 GB, free: 37.44 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/7.592, allocations: 20 kB / 3.957 GB, free: 37.42 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002362/7.594, allocations: 1.156 MB / 3.958 GB, free: 36.27 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.005982/7.6, allocations: 5.732 MB / 3.964 GB, free: 30.25 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002187/7.602, allocations: 0.9616 MB / 3.965 GB, free: 29.29 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003524/7.603, allocations: 277.7 kB / 3.965 GB, free: 29.01 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05395/7.656, allocations: 35.98 MB / 4 GB, free: 4.457 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.338e-05/7.657, allocations: 42.56 kB / 4 GB, free: 4.406 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008275/7.657, allocations: 146.9 kB / 4 GB, free: 4.262 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=58): time 2.535e-06/7.657, allocations: 0 / 4 GB, free: 4.262 MB / 0.5573 GB Notification: Performance of matching and sorting (n=58): time 0.004123/7.662, allocations: 1.385 MB / 4.002 GB, free: 2.863 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.155e-05/7.662, allocations: 195.8 kB / 4.002 GB, free: 2.629 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007309/7.662, allocations: 0.578 MB / 4.002 GB, free: 2.043 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.468e-05/7.662, allocations: 37.7 kB / 4.002 GB, free: 2 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000265/7.663, allocations: 395.2 kB / 4.003 GB, free: 1.613 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001487/7.663, allocations: 200.9 kB / 4.003 GB, free: 1.418 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.52e-05/7.663, allocations: 16 kB / 4.003 GB, free: 1.402 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001587/7.663, allocations: 386.8 kB / 4.003 GB, free: 1.016 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003424/7.663, allocations: 201.5 kB / 4.004 GB, free: 0.8203 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005077/7.664, allocations: 468.3 kB / 4.004 GB, free: 252 kB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004364/7.664, allocations: 256.9 kB / 4.004 GB, free: 0 / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.3215/7.986, allocations: 2.062 kB / 4.004 GB, free: 67.99 MB / 0.5573 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001917/7.988, allocations: 0.7917 MB / 4.005 GB, free: 67.94 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005145/7.988, allocations: 2.966 MB / 4.008 GB, free: 64.87 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.725e-05/7.988, allocations: 11.39 kB / 4.008 GB, free: 64.87 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005023/7.993, allocations: 0.6375 MB / 4.009 GB, free: 64.86 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007472/7.994, allocations: 194.1 kB / 4.009 GB, free: 64.86 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007613/7.995, allocations: 1.162 MB / 4.01 GB, free: 63.82 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008968/7.996, allocations: 85.62 kB / 4.01 GB, free: 63.82 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.657e-05/7.996, allocations: 42.47 kB / 4.01 GB, free: 63.82 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/7.996, allocations: 4.25 kB / 4.01 GB, free: 63.82 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001109/7.997, allocations: 0.6506 MB / 4.011 GB, free: 63.81 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/7.997, allocations: 6.906 kB / 4.011 GB, free: 63.81 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/7.997, allocations: 13.53 kB / 4.011 GB, free: 63.81 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007175/7.998, allocations: 224.8 kB / 4.011 GB, free: 63.81 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/7.998, allocations: 13.31 kB / 4.011 GB, free: 63.81 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007017/7.999, allocations: 84.77 kB / 4.011 GB, free: 63.81 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.608e-05/7.999, allocations: 46.98 kB / 4.011 GB, free: 63.81 MB / 0.5573 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 () * 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.0002059/7.999, allocations: 158.7 kB / 4.011 GB, free: 63.7 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/7.999, allocations: 85.03 kB / 4.011 GB, free: 63.7 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003626/8.003, allocations: 3.631 MB / 4.015 GB, free: 63.34 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-05/8.003, allocations: 54.83 kB / 4.015 GB, free: 63.34 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/8.003, allocations: 1.25 kB / 4.015 GB, free: 63.34 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/8.003, allocations: 3.938 kB / 4.015 GB, free: 63.34 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002123/8.005, allocations: 1.769 MB / 4.017 GB, free: 63.09 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/8.005, allocations: 0 / 4.017 GB, free: 63.09 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006023/8.006, allocations: 164.2 kB / 4.017 GB, free: 63.09 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002509/8.008, allocations: 1.002 MB / 4.018 GB, free: 63.06 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.432e-05/8.008, allocations: 23.75 kB / 4.018 GB, free: 63.06 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008954/8.009, allocations: 1.562 MB / 4.019 GB, free: 62 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/8.009, allocations: 5.375 kB / 4.019 GB, free: 62 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002068/8.011, allocations: 2.032 MB / 4.021 GB, free: 61.53 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007382/8.012, allocations: 451.8 kB / 4.022 GB, free: 61.34 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001329/8.012, allocations: 15.28 kB / 4.022 GB, free: 61.34 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006608/8.013, allocations: 78.45 kB / 4.022 GB, free: 61.34 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/8.013, allocations: 63.42 kB / 4.022 GB, free: 61.34 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.931e-05/8.013, allocations: 34.58 kB / 4.022 GB, free: 61.34 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0009256/8.014, allocations: 0.7435 MB / 4.023 GB, free: 61.22 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.61e-07/8.014, allocations: 0 / 4.023 GB, free: 61.22 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.005973/8.02, allocations: 1.35 MB / 4.024 GB, free: 61.21 MB / 0.5573 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 () * 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.009968/8.03, allocations: 4.129 MB / 4.028 GB, free: 60.09 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002716/8.033, allocations: 1.323 MB / 4.029 GB, free: 60.05 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/8.033, allocations: 4.75 kB / 4.029 GB, free: 60.05 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001057/8.034, allocations: 0.8142 MB / 4.03 GB, free: 60.04 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002579/8.036, allocations: 494.1 kB / 4.03 GB, free: 60.04 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006446/8.043, allocations: 2.695 MB / 4.033 GB, free: 59.43 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006121/8.043, allocations: 1.295 MB / 4.034 GB, free: 58.71 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001985/8.045, allocations: 1.258 MB / 4.036 GB, free: 58.7 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005444/8.046, allocations: 0.5388 MB / 4.036 GB, free: 58.7 MB / 0.5573 GB Notification: Performance of SimCode: time 1.253e-06/8.046, allocations: 0 / 4.036 GB, free: 58.7 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09769/8.144, allocations: 68.74 MB / 4.103 GB, free: 56.36 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001952/8.144, allocations: 224.6 kB / 4.103 GB, free: 56.14 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.098/12.24, allocations: 0 / 4.103 GB, free: 56.14 MB / 0.5573 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