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.001445/0.001445, allocations: 180.8 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.557/1.557, allocations: 221.3 MB / 236 MB, free: 2.953 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.001257/0.001258, allocations: 88.05 kB / 287 MB, free: 240 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3034/0.3034, allocations: 44.15 MB / 382 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.033e-05/4.036e-05, allocations: 8.203 kB / 451.9 MB, free: 9.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1657/0.1658, allocations: 61.91 MB / 0.5018 GB, free: 11.35 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.706/7.871, allocations: 2.767 GB / 3.269 GB, free: 98.39 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002542/7.872, allocations: 86.08 kB / 3.269 GB, free: 98.36 MB / 0.5261 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.28/10.15, allocations: 0.6723 GB / 3.941 GB, free: 31.25 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.034e-06/10.15, allocations: 0 / 3.941 GB, free: 31.25 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.85e-05/10.15, allocations: 27.59 kB / 3.941 GB, free: 31.23 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.007737/10.16, allocations: 2.197 MB / 3.943 GB, free: 29 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/10.16, allocations: 8.031 kB / 3.943 GB, free: 29 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001822/10.16, allocations: 118.7 kB / 3.943 GB, free: 28.87 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004635/10.16, allocations: 0.5848 MB / 3.944 GB, free: 28.29 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001341/10.17, allocations: 0.6678 MB / 3.945 GB, free: 27.59 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.722e-05/10.17, allocations: 62 kB / 3.945 GB, free: 27.54 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.924e-05/10.17, allocations: 72 kB / 3.945 GB, free: 27.46 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002666/10.17, allocations: 1.377 MB / 3.946 GB, free: 26 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.245e-05/10.17, allocations: 11.94 kB / 3.946 GB, free: 25.99 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.797e-05/10.17, allocations: 36 kB / 3.946 GB, free: 25.95 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.637e-05/10.17, allocations: 16 kB / 3.946 GB, free: 25.94 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002386/10.17, allocations: 1.169 MB / 3.947 GB, free: 24.77 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.006167/10.18, allocations: 5.726 MB / 3.953 GB, free: 18.76 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002267/10.18, allocations: 0.9475 MB / 3.954 GB, free: 17.79 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003713/10.18, allocations: 281.7 kB / 3.954 GB, free: 17.51 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06089/10.24, allocations: 32.28 MB / 3.986 GB, free: 13.4 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.407e-05/10.24, allocations: 38.56 kB / 3.986 GB, free: 13.35 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001083/10.24, allocations: 141.3 kB / 3.986 GB, free: 13.21 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=58): time 5.26e-06/10.24, allocations: 0 / 3.986 GB, free: 13.21 MB / 0.5573 GB Notification: Performance of matching and sorting (n=58): time 0.00505/10.25, allocations: 1.394 MB / 3.987 GB, free: 11.81 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/10.25, allocations: 187.9 kB / 3.987 GB, free: 11.58 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001119/10.25, allocations: 0.578 MB / 3.988 GB, free: 11 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001087/10.25, allocations: 37.7 kB / 3.988 GB, free: 10.95 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003722/10.25, allocations: 399 kB / 3.988 GB, free: 10.56 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002458/10.25, allocations: 201.1 kB / 3.989 GB, free: 10.37 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.694e-05/10.25, allocations: 11.94 kB / 3.989 GB, free: 10.36 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002253/10.25, allocations: 398.7 kB / 3.989 GB, free: 9.957 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004452/10.25, allocations: 197.5 kB / 3.989 GB, free: 9.766 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006433/10.25, allocations: 472.2 kB / 3.99 GB, free: 9.188 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005324/10.25, allocations: 266.8 kB / 3.99 GB, free: 8.934 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/10.25, allocations: 4 kB / 3.99 GB, free: 8.93 MB / 0.5573 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001706/10.25, allocations: 0.7873 MB / 3.991 GB, free: 8.129 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001501/10.25, allocations: 2.971 MB / 3.993 GB, free: 4.926 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.792e-05/10.25, allocations: 4 kB / 3.993 GB, free: 4.922 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005374/10.26, allocations: 0.6404 MB / 3.994 GB, free: 4.277 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009351/10.26, allocations: 195.8 kB / 3.994 GB, free: 4.086 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0012/10.26, allocations: 1.167 MB / 3.995 GB, free: 2.867 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001195/10.26, allocations: 79.98 kB / 3.996 GB, free: 2.789 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001811/10.26, allocations: 43.97 kB / 3.996 GB, free: 2.746 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/10.26, allocations: 4 kB / 3.996 GB, free: 2.742 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001586/10.27, allocations: 0.6472 MB / 3.996 GB, free: 2.098 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.908e-05/10.27, allocations: 8 kB / 3.996 GB, free: 2.09 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.456e-05/10.27, allocations: 12 kB / 3.996 GB, free: 2.078 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008849/10.27, allocations: 228 kB / 3.996 GB, free: 1.855 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.745e-05/10.27, allocations: 15.94 kB / 3.996 GB, free: 1.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001102/10.27, allocations: 75.94 kB / 3.997 GB, free: 1.766 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/10.27, allocations: 47.94 kB / 3.997 GB, free: 1.719 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.000349/10.27, allocations: 152.9 kB / 3.997 GB, free: 1.562 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003137/10.27, allocations: 86.97 kB / 3.997 GB, free: 1.477 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.393/10.66, allocations: 3.637 MB / 4 GB, free: 70.43 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.58e-05/10.66, allocations: 48.2 kB / 4 GB, free: 70.43 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/10.66, allocations: 1.109 kB / 4 GB, free: 70.43 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.759e-05/10.66, allocations: 5.406 kB / 4 GB, free: 70.43 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002987/10.66, allocations: 1.776 MB / 4.002 GB, free: 70.24 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/10.66, allocations: 2.156 kB / 4.002 GB, free: 70.24 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006435/10.66, allocations: 157.9 kB / 4.002 GB, free: 70.24 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002825/10.67, allocations: 0.9991 MB / 4.003 GB, free: 70.21 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.267e-05/10.67, allocations: 17.83 kB / 4.003 GB, free: 70.21 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001103/10.67, allocations: 1.569 MB / 4.005 GB, free: 69.16 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/10.67, allocations: 0 / 4.005 GB, free: 69.16 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00278/10.67, allocations: 2.033 MB / 4.007 GB, free: 68.77 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007421/10.67, allocations: 460.8 kB / 4.007 GB, free: 68.58 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001326/10.67, allocations: 15.61 kB / 4.007 GB, free: 68.58 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006477/10.67, allocations: 78.45 kB / 4.007 GB, free: 68.57 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/10.67, allocations: 60.5 kB / 4.007 GB, free: 68.57 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.188e-05/10.67, allocations: 29.81 kB / 4.007 GB, free: 68.57 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0009331/10.67, allocations: 0.7469 MB / 4.008 GB, free: 68.46 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.1e-07/10.67, allocations: 0 / 4.008 GB, free: 68.46 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.006236/10.68, allocations: 1.33 MB / 4.009 GB, free: 68.45 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.01187/10.69, allocations: 4.125 MB / 4.013 GB, free: 67.34 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.004017/10.7, allocations: 1.318 MB / 4.015 GB, free: 67.3 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/10.7, allocations: 0 / 4.015 GB, free: 67.3 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001563/10.7, allocations: 0.809 MB / 4.016 GB, free: 67.3 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003019/10.7, allocations: 489.2 kB / 4.016 GB, free: 67.29 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007753/10.71, allocations: 2.689 MB / 4.019 GB, free: 66.73 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008664/10.71, allocations: 1.295 MB / 4.02 GB, free: 66.01 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.002837/10.71, allocations: 1.263 MB / 4.021 GB, free: 65.99 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006447/10.71, allocations: 0.5453 MB / 4.022 GB, free: 65.99 MB / 0.5573 GB Notification: Performance of SimCode: time 1.322e-06/10.71, allocations: 0 / 4.022 GB, free: 65.99 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1135/10.83, allocations: 68.66 MB / 4.089 GB, free: 63.72 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001896/10.83, allocations: 230.3 kB / 4.089 GB, free: 63.46 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.475/15.3, allocations: 0 / 4.089 GB, free: 63.46 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