Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0015/0.0015, allocations: 180.9 kB / 8.006 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.835/1.835, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00128/0.00128, allocations: 86.64 kB / 261.8 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2385/0.2385, allocations: 43.48 MB / 353.2 MB, free: 288 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.638e-05/1.635e-05, allocations: 4 kB / 418.4 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1352, allocations: 58.85 MB / 477.2 MB, free: 1.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.485/7.621, allocations: 2.761 GB / 3.227 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/7.621, allocations: 88.94 kB / 3.227 GB, free: 101.6 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.331/9.952, allocations: 0.6591 GB / 3.886 GB, free: 29.49 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.094e-06/9.952, allocations: 3.594 kB / 3.886 GB, free: 29.49 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.406e-05/9.953, allocations: 26.97 kB / 3.886 GB, free: 29.47 MB / 0.5105 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.008406/9.961, allocations: 2.182 MB / 3.888 GB, free: 27.25 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/9.961, allocations: 8.031 kB / 3.888 GB, free: 27.24 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004687/9.966, allocations: 0.5783 MB / 3.889 GB, free: 26.67 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001586/9.967, allocations: 0.6676 MB / 3.89 GB, free: 25.97 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.655e-05/9.967, allocations: 32 kB / 3.89 GB, free: 25.94 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.433e-05/9.967, allocations: 44.62 kB / 3.89 GB, free: 25.9 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001382/9.969, allocations: 0.7497 MB / 3.89 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/9.97, allocations: 0.935 MB / 3.891 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.434e-05/9.97, allocations: 7.938 kB / 3.891 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.231e-05/9.97, allocations: 4 kB / 3.891 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.857e-05/9.97, allocations: 20 kB / 3.891 GB, free: 24.1 MB / 0.5105 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.6457/10.62, allocations: 102.2 MB / 3.991 GB, free: 19.67 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/10.62, allocations: 0.544 MB / 3.992 GB, free: 19.62 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003078/10.62, allocations: 214.9 kB / 3.992 GB, free: 19.61 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06462/10.68, allocations: 32.26 MB / 4.023 GB, free: 30.98 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.068e-05/10.68, allocations: 41.91 kB / 4.023 GB, free: 30.94 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009991/10.68, allocations: 106.7 kB / 4.023 GB, free: 30.93 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=46): time 4.338e-06/10.68, allocations: 0 / 4.023 GB, free: 30.93 MB / 0.5573 GB Notification: Performance of matching and sorting (n=46): time 0.00414/10.69, allocations: 1.162 MB / 4.025 GB, free: 30.85 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/10.69, allocations: 185.5 kB / 4.025 GB, free: 30.63 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006132/10.69, allocations: 465.2 kB / 4.025 GB, free: 30.52 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.735e-05/10.69, allocations: 25.7 kB / 4.025 GB, free: 30.49 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002492/10.69, allocations: 447.3 kB / 4.026 GB, free: 30.29 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/10.69, allocations: 158.2 kB / 4.026 GB, free: 30.21 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.489e-05/10.69, allocations: 0 / 4.026 GB, free: 30.21 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001671/10.69, allocations: 372.1 kB / 4.026 GB, free: 29.9 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002881/10.69, allocations: 191.5 kB / 4.026 GB, free: 29.89 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003995/10.69, allocations: 443.5 kB / 4.027 GB, free: 29.59 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001966/10.69, allocations: 0.4886 MB / 4.027 GB, free: 29.57 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/10.69, allocations: 2.562 kB / 4.027 GB, free: 29.57 MB / 0.5573 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002782/10.69, allocations: 0.9601 MB / 4.028 GB, free: 29.48 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001148/10.7, allocations: 2.967 MB / 4.031 GB, free: 26.37 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.716e-05/10.7, allocations: 10.58 kB / 4.031 GB, free: 26.37 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000323/10.7, allocations: 93.27 kB / 4.031 GB, free: 26.35 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006545/10.7, allocations: 196.6 kB / 4.031 GB, free: 26.35 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001637/10.7, allocations: 1.289 MB / 4.033 GB, free: 25.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009436/10.7, allocations: 101.1 kB / 4.033 GB, free: 25.29 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.606e-05/10.7, allocations: 48.25 kB / 4.033 GB, free: 25.29 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/10.7, allocations: 11.17 kB / 4.033 GB, free: 25.29 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001795/10.7, allocations: 0.6915 MB / 4.033 GB, free: 25.27 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/10.7, allocations: 10.22 kB / 4.034 GB, free: 25.27 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/10.7, allocations: 10.59 kB / 4.034 GB, free: 25.27 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000771/10.7, allocations: 224.5 kB / 4.034 GB, free: 25.27 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/10.7, allocations: 20.3 kB / 4.034 GB, free: 25.27 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007234/10.7, allocations: 85.81 kB / 4.034 GB, free: 25.26 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-05/10.7, allocations: 45.78 kB / 4.034 GB, free: 25.26 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.0002503/10.7, allocations: 128.3 kB / 4.034 GB, free: 25.15 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002299/10.71, allocations: 0.6983 MB / 4.035 GB, free: 25.07 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/10.71, allocations: 69.41 kB / 4.035 GB, free: 25.03 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003662/10.71, allocations: 2.852 MB / 4.038 GB, free: 24.73 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.414e-05/10.71, allocations: 38.2 kB / 4.038 GB, free: 24.73 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/10.71, allocations: 0 / 4.038 GB, free: 24.73 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/10.71, allocations: 3.141 kB / 4.038 GB, free: 24.73 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004499/10.71, allocations: 3.786 MB / 4.041 GB, free: 24.22 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/10.71, allocations: 0 / 4.041 GB, free: 24.22 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004211/10.71, allocations: 110 kB / 4.041 GB, free: 24.22 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007232/10.71, allocations: 0.7421 MB / 4.042 GB, free: 24.17 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.335e-05/10.71, allocations: 13.95 kB / 4.042 GB, free: 24.17 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001465/10.72, allocations: 1.688 MB / 4.044 GB, free: 23.12 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/10.72, allocations: 7.812 kB / 4.044 GB, free: 23.11 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002697/10.72, allocations: 1.954 MB / 4.046 GB, free: 22.62 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000581/10.72, allocations: 310.6 kB / 4.046 GB, free: 22.46 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/10.72, allocations: 0 / 4.046 GB, free: 22.46 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005753/10.72, allocations: 66.89 kB / 4.046 GB, free: 22.45 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/10.72, allocations: 52.62 kB / 4.046 GB, free: 22.45 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.061e-05/10.72, allocations: 26.94 kB / 4.046 GB, free: 22.45 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0005859/10.72, allocations: 438.6 kB / 4.047 GB, free: 22.35 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.4e-07/10.72, allocations: 0 / 4.047 GB, free: 22.35 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.006022/10.73, allocations: 1.272 MB / 4.048 GB, free: 22.32 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.01208/10.74, allocations: 4.498 MB / 4.052 GB, free: 20.79 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002524/10.74, allocations: 1.17 MB / 4.053 GB, free: 20.77 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.193e-06/10.74, allocations: 0 / 4.053 GB, free: 20.77 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001054/10.74, allocations: 0.6807 MB / 4.054 GB, free: 20.76 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002309/10.75, allocations: 301.6 kB / 4.054 GB, free: 20.73 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008727/10.75, allocations: 2.231 MB / 4.056 GB, free: 20.19 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008302/10.76, allocations: 1.19 MB / 4.058 GB, free: 19.46 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.002409/10.76, allocations: 1.415 MB / 4.059 GB, free: 19.4 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006022/10.76, allocations: 446.4 kB / 4.059 GB, free: 19.39 MB / 0.5573 GB Notification: Performance of SimCode: time 1.233e-06/10.76, allocations: 0 / 4.059 GB, free: 19.39 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1017/10.86, allocations: 48.82 MB / 4.107 GB, free: 9.219 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001986/10.86, allocations: 183.1 kB / 4.107 GB, free: 9.02 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.995/14.85, allocations: 3.938 kB / 4.107 GB, free: 9.016 MB / 0.5573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestDensity.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat does not exist to compare? outputFormat=mat