Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001619/0.001619, allocations: 173 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.677/1.677, allocations: 221.5 MB / 230.7 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000934/0.0009342, allocations: 93.84 kB / 281.6 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.22/0.22, allocations: 44.15 MB / 376.5 MB, free: 3.055 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.409e-05/2.412e-05, allocations: 8.219 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1403, allocations: 61.91 MB / 0.4948 GB, free: 1.168 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.855/7.995, allocations: 2.766 GB / 3.261 GB, free: 116.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002024/7.996, allocations: 84.78 kB / 3.261 GB, free: 116.7 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.294/10.29, allocations: 0.6664 GB / 3.927 GB, free: 47.34 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.362e-06/10.29, allocations: 0 / 3.927 GB, free: 47.34 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.523e-05/10.29, allocations: 22.72 kB / 3.928 GB, free: 47.33 MB / 0.5261 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.007604/10.3, allocations: 2.191 MB / 3.93 GB, free: 46.2 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/10.3, allocations: 15.73 kB / 3.93 GB, free: 46.19 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004766/10.3, allocations: 0.5762 MB / 3.93 GB, free: 46.14 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001446/10.3, allocations: 0.6722 MB / 3.931 GB, free: 45.84 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.341e-05/10.3, allocations: 33.31 kB / 3.931 GB, free: 45.84 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.032e-05/10.3, allocations: 42.59 kB / 3.931 GB, free: 45.84 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001261/10.3, allocations: 0.7461 MB / 3.932 GB, free: 45.83 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/10.31, allocations: 0.9247 MB / 3.933 GB, free: 45.53 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.175e-05/10.31, allocations: 9.75 kB / 3.933 GB, free: 45.53 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.926e-05/10.31, allocations: 3.594 kB / 3.933 GB, free: 45.53 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/10.31, allocations: 17.5 kB / 3.933 GB, free: 45.53 MB / 0.5261 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.5695/10.88, allocations: 102.3 MB / 4.033 GB, free: 74.79 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/10.88, allocations: 0.5354 MB / 4.033 GB, free: 74.75 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003872/10.88, allocations: 219.6 kB / 4.033 GB, free: 74.73 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06197/10.94, allocations: 32.27 MB / 4.065 GB, free: 55.23 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.811e-05/10.94, allocations: 43.66 kB / 4.065 GB, free: 55.19 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009579/10.94, allocations: 114.8 kB / 4.065 GB, free: 55.19 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=46): time 2.675e-06/10.94, allocations: 3.281 kB / 4.065 GB, free: 55.19 MB / 0.5573 GB Notification: Performance of matching and sorting (n=46): time 0.004271/10.94, allocations: 1.14 MB / 4.066 GB, free: 55.14 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.034e-05/10.94, allocations: 192.3 kB / 4.066 GB, free: 54.92 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006408/10.95, allocations: 463.5 kB / 4.067 GB, free: 54.8 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.473e-05/10.95, allocations: 25.7 kB / 4.067 GB, free: 54.77 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002527/10.95, allocations: 453.2 kB / 4.067 GB, free: 54.57 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/10.95, allocations: 151.3 kB / 4.067 GB, free: 54.5 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.592e-05/10.95, allocations: 3.281 kB / 4.067 GB, free: 54.5 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001054/10.95, allocations: 379 kB / 4.068 GB, free: 54.18 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002763/10.95, allocations: 184.1 kB / 4.068 GB, free: 54.18 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003954/10.95, allocations: 452.6 kB / 4.068 GB, free: 53.88 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001978/10.95, allocations: 499.2 kB / 4.069 GB, free: 53.87 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/10.95, allocations: 3.75 kB / 4.069 GB, free: 53.87 MB / 0.5573 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002769/10.95, allocations: 0.97 MB / 4.07 GB, free: 53.78 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008156/10.95, allocations: 2.96 MB / 4.073 GB, free: 50.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.738e-05/10.95, allocations: 8.625 kB / 4.073 GB, free: 50.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003562/10.95, allocations: 91.02 kB / 4.073 GB, free: 50.69 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007958/10.95, allocations: 200.3 kB / 4.073 GB, free: 50.69 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001577/10.96, allocations: 1.297 MB / 4.074 GB, free: 49.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001153/10.96, allocations: 100.6 kB / 4.074 GB, free: 49.64 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.879e-05/10.96, allocations: 42.64 kB / 4.074 GB, free: 49.64 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/10.96, allocations: 3.875 kB / 4.074 GB, free: 49.64 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002018/10.96, allocations: 0.6956 MB / 4.075 GB, free: 49.63 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/10.96, allocations: 8.719 kB / 4.075 GB, free: 49.63 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/10.96, allocations: 11.22 kB / 4.075 GB, free: 49.63 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007315/10.96, allocations: 225.6 kB / 4.075 GB, free: 49.63 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.342e-05/10.96, allocations: 19.5 kB / 4.075 GB, free: 49.63 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007452/10.96, allocations: 79.95 kB / 4.075 GB, free: 49.63 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.995e-05/10.96, allocations: 42.75 kB / 4.075 GB, free: 49.63 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 (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.0002719/10.96, allocations: 135.5 kB / 4.075 GB, free: 49.52 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002438/10.96, allocations: 0.7033 MB / 4.076 GB, free: 49.43 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/10.96, allocations: 69.23 kB / 4.076 GB, free: 49.4 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003849/10.97, allocations: 2.839 MB / 4.079 GB, free: 49.13 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.35e-05/10.97, allocations: 44.67 kB / 4.079 GB, free: 49.13 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/10.97, allocations: 2.719 kB / 4.079 GB, free: 49.13 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.183e-05/10.97, allocations: 0 / 4.079 GB, free: 49.13 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005418/10.97, allocations: 3.782 MB / 4.083 GB, free: 48.62 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/10.97, allocations: 5.75 kB / 4.083 GB, free: 48.62 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004071/10.97, allocations: 113.8 kB / 4.083 GB, free: 48.62 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008365/10.97, allocations: 0.7397 MB / 4.084 GB, free: 48.57 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.921e-05/10.97, allocations: 12.56 kB / 4.084 GB, free: 48.57 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001593/10.98, allocations: 1.689 MB / 4.085 GB, free: 47.52 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/10.98, allocations: 0 / 4.085 GB, free: 47.52 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002954/10.98, allocations: 1.962 MB / 4.087 GB, free: 47.04 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005533/10.98, allocations: 309.5 kB / 4.087 GB, free: 46.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/10.98, allocations: 3.469 kB / 4.087 GB, free: 46.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005834/10.98, allocations: 65.25 kB / 4.087 GB, free: 46.87 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/10.98, allocations: 53.58 kB / 4.087 GB, free: 46.87 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.152e-05/10.98, allocations: 21.94 kB / 4.088 GB, free: 46.87 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0005478/10.98, allocations: 438.5 kB / 4.088 GB, free: 46.77 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.4e-07/10.98, allocations: 0 / 4.088 GB, free: 46.77 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.006241/10.99, allocations: 1.275 MB / 4.089 GB, free: 46.73 MB / 0.5573 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.01133/11, allocations: 4.502 MB / 4.094 GB, free: 45.28 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002353/11, allocations: 1.164 MB / 4.095 GB, free: 45.27 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/11, allocations: 0 / 4.095 GB, free: 45.27 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0008777/11, allocations: 0.6851 MB / 4.095 GB, free: 45.25 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001821/11, allocations: 293.2 kB / 4.096 GB, free: 45.25 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006477/11.01, allocations: 2.245 MB / 4.098 GB, free: 44.71 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006457/11.01, allocations: 1.182 MB / 4.099 GB, free: 44.01 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.002341/11.01, allocations: 1.423 MB / 4.1 GB, free: 43.99 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005837/11.01, allocations: 451.8 kB / 4.101 GB, free: 43.98 MB / 0.5573 GB Notification: Performance of SimCode: time 1.202e-06/11.01, allocations: 0 / 4.101 GB, free: 43.98 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09546/11.11, allocations: 48.83 MB / 4.149 GB, free: 41.25 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002065/11.11, allocations: 185.8 kB / 4.149 GB, free: 41.05 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.838/14.95, allocations: 0 / 4.149 GB, free: 41.05 MB / 0.5573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat does not exist to compare? outputFormat=mat