Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001406/0.001406, allocations: 198.4 kB / 16.78 MB, free: 5.035 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: 226.5 MB / 244.1 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007614/0.0007613, allocations: 97.2 kB / 296.1 MB, free: 6.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3311/0.3311, allocations: 44.82 MB / 393 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002864/0.0002865, allocations: 4 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3555/0.3558, allocations: 62.95 MB / 0.5165 GB, free: 37.13 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.857/7.213, allocations: 2.768 GB / 3.285 GB, free: 157.3 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003512/7.213, allocations: 95.42 kB / 3.285 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.259/9.472, allocations: 0.6438 GB / 3.929 GB, free: 6.754 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.906e-06/9.472, allocations: 3.938 kB / 3.929 GB, free: 6.75 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.7e-05/9.472, allocations: 20 kB / 3.929 GB, free: 6.73 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.01057/9.483, allocations: 2.276 MB / 3.931 GB, free: 4.398 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.622e-05/9.483, allocations: 11.97 kB / 3.931 GB, free: 4.387 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00529/9.488, allocations: 0.593 MB / 3.931 GB, free: 3.793 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001901/9.49, allocations: 0.6871 MB / 3.932 GB, free: 3.066 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.958e-05/9.49, allocations: 73.98 kB / 3.932 GB, free: 2.992 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001179/9.491, allocations: 76 kB / 3.932 GB, free: 2.918 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003402/9.494, allocations: 1.382 MB / 3.934 GB, free: 1.441 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.617e-05/9.494, allocations: 7.938 kB / 3.934 GB, free: 1.434 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001014/9.494, allocations: 39.98 kB / 3.934 GB, free: 1.395 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.151e-05/9.494, allocations: 16 kB / 3.934 GB, free: 1.379 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003263/9.497, allocations: 1.243 MB / 3.935 GB, free: 136 kB / 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.5225/10.02, allocations: 5.723 MB / 3.94 GB, free: 48.85 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003043/10.02, allocations: 1.019 MB / 3.941 GB, free: 48.8 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007398/10.02, allocations: 350.2 kB / 3.942 GB, free: 48.78 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06205/10.09, allocations: 35.86 MB / 3.977 GB, free: 25.52 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.566e-05/10.09, allocations: 44.41 kB / 3.977 GB, free: 25.48 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001215/10.09, allocations: 135.4 kB / 3.977 GB, free: 25.46 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=58): time 9.758e-06/10.09, allocations: 0 / 3.977 GB, free: 25.46 MB / 0.5573 GB Notification: Performance of matching and sorting (n=58): time 0.007795/10.1, allocations: 1.887 MB / 3.979 GB, free: 25.16 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/10.1, allocations: 188.3 kB / 3.979 GB, free: 24.94 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001585/10.1, allocations: 0.671 MB / 3.98 GB, free: 24.81 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001374/10.1, allocations: 32.7 kB / 3.98 GB, free: 24.78 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004935/10.1, allocations: 394.2 kB / 3.98 GB, free: 24.62 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003353/10.1, allocations: 202.6 kB / 3.98 GB, free: 24.52 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.322e-05/10.1, allocations: 17.19 kB / 3.98 GB, free: 24.52 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002334/10.1, allocations: 386.2 kB / 3.981 GB, free: 24.21 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008069/10.1, allocations: 280.2 kB / 3.981 GB, free: 24.21 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001048/10.1, allocations: 0.5407 MB / 3.981 GB, free: 23.9 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001757/10.1, allocations: 0.8219 MB / 3.982 GB, free: 23.62 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.568e-05/10.1, allocations: 3.938 kB / 3.982 GB, free: 23.62 MB / 0.5573 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002545/10.1, allocations: 0.9567 MB / 3.983 GB, free: 23.52 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.00162/10.11, allocations: 316.6 kB / 3.983 GB, free: 39.17 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-05/10.11, allocations: 14.7 kB / 3.983 GB, free: 39.17 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005019/10.11, allocations: 0.6377 MB / 3.984 GB, free: 39.16 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000938/10.11, allocations: 200.2 kB / 3.984 GB, free: 39.16 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001193/10.11, allocations: 1.16 MB / 3.985 GB, free: 38.12 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001298/10.11, allocations: 78.22 kB / 3.985 GB, free: 38.12 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001864/10.11, allocations: 42.53 kB / 3.985 GB, free: 38.12 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/10.11, allocations: 4.125 kB / 3.985 GB, free: 38.12 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002601/10.12, allocations: 0.7912 MB / 3.986 GB, free: 38.11 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.573e-05/10.12, allocations: 9.25 kB / 3.986 GB, free: 38.11 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.082e-05/10.12, allocations: 11.06 kB / 3.986 GB, free: 38.11 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009816/10.12, allocations: 227.1 kB / 3.986 GB, free: 38.11 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-05/10.12, allocations: 20.56 kB / 3.987 GB, free: 38.11 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/10.12, allocations: 85.38 kB / 3.987 GB, free: 38.1 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001351/10.12, allocations: 44.83 kB / 3.987 GB, free: 38.1 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.0008401/10.12, allocations: 299.8 kB / 3.987 GB, free: 37.91 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000397/10.12, allocations: 89.19 kB / 3.987 GB, free: 37.87 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006616/10.13, allocations: 3.714 MB / 3.991 GB, free: 37.54 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.122e-05/10.13, allocations: 48.39 kB / 3.991 GB, free: 37.54 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.019e-05/10.13, allocations: 3.406 kB / 3.991 GB, free: 37.54 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.56e-05/10.13, allocations: 3.828 kB / 3.991 GB, free: 37.54 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004212/10.13, allocations: 1.778 MB / 3.992 GB, free: 37.27 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.459e-05/10.13, allocations: 1.469 kB / 3.992 GB, free: 37.27 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000719/10.13, allocations: 167.1 kB / 3.993 GB, free: 37.27 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003194/10.14, allocations: 0.8804 MB / 3.993 GB, free: 37.24 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/10.14, allocations: 20.98 kB / 3.993 GB, free: 37.24 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001665/10.14, allocations: 1.566 MB / 3.995 GB, free: 36.19 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/10.14, allocations: 1.344 kB / 3.995 GB, free: 36.19 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004943/10.14, allocations: 2.163 MB / 3.997 GB, free: 35.74 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001329/10.14, allocations: 455.5 kB / 3.998 GB, free: 35.55 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004762/10.14, allocations: 14.88 kB / 3.998 GB, free: 35.55 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/10.15, allocations: 79.59 kB / 3.998 GB, free: 35.55 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002156/10.15, allocations: 60.62 kB / 3.998 GB, free: 35.55 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.446e-05/10.15, allocations: 25.86 kB / 3.998 GB, free: 35.55 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001718/10.15, allocations: 0.7557 MB / 3.998 GB, free: 35.44 MB / 0.573 GB Notification: Performance of sort global known variables: time 5.91e-07/10.15, allocations: 0 / 3.998 GB, free: 35.44 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009508/10.16, allocations: 1.348 MB / 4 GB, free: 35.43 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.01229/10.17, allocations: 1.777 MB / 4.001 GB, free: 35.24 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.00473/10.17, allocations: 1.531 MB / 4.003 GB, free: 35.21 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/10.17, allocations: 1.344 kB / 4.003 GB, free: 35.21 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001968/10.18, allocations: 0.8778 MB / 4.004 GB, free: 35.2 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00503/10.18, allocations: 0.4904 MB / 4.004 GB, free: 35.2 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007897/10.19, allocations: 3.541 MB / 4.008 GB, free: 33.58 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001532/10.19, allocations: 1.265 MB / 4.009 GB, free: 32.86 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004376/10.19, allocations: 90.69 kB / 4.009 GB, free: 32.85 MB / 0.573 GB Notification: Performance of SimCode: time 1.252e-06/10.19, allocations: 0 / 4.009 GB, free: 32.85 MB / 0.573 GB Notification: Performance of Templates: time 0.08266/10.27, allocations: 45.78 MB / 4.054 GB, free: 29.69 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches