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: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|density2_1.d|density2_2.d|density1_1.d|density1_2.d|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|density2_1.d|density2_2.d|density1_1.d|density1_2.d|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001349/0.001349, allocations: 197.5 kB / 18.1 MB, free: 3.605 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 226.5 MB / 245.4 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008224/0.0008224, allocations: 108.6 kB / 297.5 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3907/0.3907, allocations: 44.82 MB / 394.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002908/0.0002911, allocations: 11.98 kB / 467.9 MB, free: 12.05 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3927/0.393, allocations: 62.95 MB / 0.5184 GB, free: 37.67 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.148/8.541, allocations: 2.768 GB / 3.287 GB, free: 157.3 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002873/8.541, allocations: 88.92 kB / 3.287 GB, free: 157.3 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.405/10.95, allocations: 0.6437 GB / 3.93 GB, free: 7.434 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.136e-06/10.95, allocations: 0 / 3.93 GB, free: 7.434 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 6.31e-05/10.95, allocations: 27.98 kB / 3.93 GB, free: 7.406 MB / 0.5573 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.009829/10.96, allocations: 2.268 MB / 3.933 GB, free: 5.082 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 6.059e-05/10.96, allocations: 15.97 kB / 3.933 GB, free: 5.066 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005088/10.96, allocations: 0.5969 MB / 3.933 GB, free: 4.469 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00167/10.96, allocations: 0.691 MB / 3.934 GB, free: 3.738 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.008e-05/10.96, allocations: 66 kB / 3.934 GB, free: 3.672 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/10.96, allocations: 72 kB / 3.934 GB, free: 3.602 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003417/10.97, allocations: 1.39 MB / 3.935 GB, free: 2.117 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.736e-05/10.97, allocations: 4 kB / 3.935 GB, free: 2.113 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.926e-05/10.97, allocations: 36 kB / 3.936 GB, free: 2.078 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.247e-05/10.97, allocations: 20 kB / 3.936 GB, free: 2.059 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003299/10.97, allocations: 1.243 MB / 3.937 GB, free: 0.8125 MB / 0.5573 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.4678/11.44, allocations: 5.73 MB / 3.942 GB, free: 48.6 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003138/11.44, allocations: 1.016 MB / 3.943 GB, free: 48.55 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007736/11.44, allocations: 356.7 kB / 3.944 GB, free: 48.54 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05921/11.5, allocations: 35.85 MB / 3.979 GB, free: 25.27 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.831e-05/11.5, allocations: 42.86 kB / 3.979 GB, free: 25.23 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001109/11.5, allocations: 140.4 kB / 3.979 GB, free: 25.21 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=58): time 8.005e-06/11.5, allocations: 1.062 kB / 3.979 GB, free: 25.21 MB / 0.5573 GB Notification: Performance of matching and sorting (n=58): time 0.00667/11.51, allocations: 1.875 MB / 3.981 GB, free: 24.93 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.915e-05/11.51, allocations: 190.9 kB / 3.981 GB, free: 24.7 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001217/11.51, allocations: 0.6703 MB / 3.982 GB, free: 24.57 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001137/11.51, allocations: 35.83 kB / 3.982 GB, free: 24.54 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004042/11.51, allocations: 404.6 kB / 3.982 GB, free: 24.38 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002622/11.51, allocations: 195.5 kB / 3.982 GB, free: 24.29 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.031e-05/11.51, allocations: 18.12 kB / 3.982 GB, free: 24.29 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.001496/11.51, allocations: 389.9 kB / 3.983 GB, free: 39.97 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000771/11.51, allocations: 277.1 kB / 3.983 GB, free: 39.97 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009126/11.52, allocations: 0.5384 MB / 3.983 GB, free: 39.66 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00154/11.52, allocations: 0.821 MB / 3.984 GB, free: 39.39 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-05/11.52, allocations: 3.406 kB / 3.984 GB, free: 39.39 MB / 0.573 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002521/11.52, allocations: 0.9533 MB / 3.985 GB, free: 39.29 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002347/11.52, allocations: 317.9 kB / 3.985 GB, free: 38.94 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.93e-05/11.52, allocations: 10.55 kB / 3.985 GB, free: 38.94 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004418/11.52, allocations: 0.633 MB / 3.986 GB, free: 38.92 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008587/11.52, allocations: 198.6 kB / 3.986 GB, free: 38.92 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001217/11.53, allocations: 1.163 MB / 3.987 GB, free: 37.88 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/11.53, allocations: 84.42 kB / 3.987 GB, free: 37.88 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001419/11.53, allocations: 43.23 kB / 3.987 GB, free: 37.88 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/11.53, allocations: 5.094 kB / 3.987 GB, free: 37.88 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002095/11.53, allocations: 0.791 MB / 3.988 GB, free: 37.87 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.515e-05/11.53, allocations: 9.375 kB / 3.988 GB, free: 37.87 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.723e-05/11.53, allocations: 14.73 kB / 3.988 GB, free: 37.87 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008751/11.53, allocations: 222.2 kB / 3.988 GB, free: 37.87 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.758e-05/11.53, allocations: 21.73 kB / 3.988 GB, free: 37.87 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00105/11.53, allocations: 77.62 kB / 3.989 GB, free: 37.87 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001232/11.53, allocations: 44.98 kB / 3.989 GB, free: 37.87 MB / 0.573 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 () * Number of clocked 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.0008021/11.53, allocations: 308.4 kB / 3.989 GB, free: 37.68 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003858/11.53, allocations: 85.31 kB / 3.989 GB, free: 37.64 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006208/11.54, allocations: 3.722 MB / 3.993 GB, free: 37.29 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.937e-05/11.54, allocations: 52.44 kB / 3.993 GB, free: 37.29 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.621e-05/11.54, allocations: 6.688 kB / 3.993 GB, free: 37.29 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.57e-05/11.54, allocations: 4.656 kB / 3.993 GB, free: 37.29 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003647/11.54, allocations: 1.776 MB / 3.994 GB, free: 37.04 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.918e-05/11.54, allocations: 0 / 3.994 GB, free: 37.04 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006769/11.54, allocations: 165.8 kB / 3.995 GB, free: 37.04 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002979/11.55, allocations: 0.873 MB / 3.995 GB, free: 37 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001121/11.55, allocations: 21.06 kB / 3.995 GB, free: 37 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001824/11.55, allocations: 1.572 MB / 3.997 GB, free: 35.95 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/11.55, allocations: 0 / 3.997 GB, free: 35.95 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004768/11.55, allocations: 2.162 MB / 3.999 GB, free: 35.5 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001436/11.56, allocations: 459.9 kB / 3.999 GB, free: 35.31 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004564/11.56, allocations: 16.31 kB / 4 GB, free: 35.3 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/11.56, allocations: 71.42 kB / 4 GB, free: 35.3 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002633/11.56, allocations: 66.34 kB / 4 GB, free: 35.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.552e-05/11.56, allocations: 25.7 kB / 4 GB, free: 35.3 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001681/11.56, allocations: 0.7609 MB / 4 GB, free: 35.2 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.81e-07/11.56, allocations: 0 / 4 GB, free: 35.2 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.008308/11.57, allocations: 1.348 MB / 4.002 GB, free: 35.18 MB / 0.573 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 () * Number of clocked 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.01076/11.58, allocations: 1.769 MB / 4.003 GB, free: 35.03 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.004396/11.58, allocations: 1.522 MB / 4.005 GB, free: 35 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/11.58, allocations: 3.781 kB / 4.005 GB, free: 35 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001913/11.58, allocations: 0.8828 MB / 4.006 GB, free: 34.99 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004336/11.59, allocations: 495.3 kB / 4.006 GB, free: 34.99 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007374/11.6, allocations: 3.491 MB / 4.01 GB, free: 33.42 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001989/11.6, allocations: 1.272 MB / 4.011 GB, free: 32.69 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.002843/11.6, allocations: 1.236 MB / 4.012 GB, free: 32.67 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003438/11.6, allocations: 84.14 kB / 4.012 GB, free: 32.66 MB / 0.573 GB Notification: Performance of SimCode: time 1.493e-06/11.6, allocations: 0 / 4.012 GB, free: 32.66 MB / 0.573 GB Notification: Performance of Templates: time 0.08233/11.68, allocations: 49.99 MB / 4.061 GB, free: 29.94 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestDensity/TestDensity.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches