Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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: 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_3.2.3_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_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001477/0.00148, allocations: 186.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.858/1.858, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001171/0.001171, allocations: 99.27 kB / 270.9 MB, free: 8.363 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.4954/0.4954, allocations: 43.55 MB / 362.7 MB, free: 51.92 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006164/0.0006164, allocations: 19.92 kB / 431.4 MB, free: 5.938 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1221, allocations: 58.84 MB / 490.2 MB, free: 11.01 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.342/8.464, allocations: 2.762 GB / 3.24 GB, free: 49.22 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/8.464, allocations: 87.64 kB / 3.241 GB, free: 49.18 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 3.702/12.17, allocations: 0.667 GB / 3.908 GB, free: 44.18 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.655e-06/12.17, allocations: 0 / 3.908 GB, free: 44.18 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.382e-05/12.17, allocations: 25.59 kB / 3.908 GB, free: 44.18 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.009855/12.18, allocations: 2.273 MB / 3.91 GB, free: 43.38 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/12.18, allocations: 8.469 kB / 3.91 GB, free: 43.38 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007703/12.18, allocations: 0.571 MB / 3.91 GB, free: 43.33 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00225/12.19, allocations: 0.6704 MB / 3.911 GB, free: 43.09 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.06e-05/12.19, allocations: 69.62 kB / 3.911 GB, free: 43.09 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001837/12.19, allocations: 71.56 kB / 3.911 GB, free: 43.09 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005227/12.19, allocations: 1.38 MB / 3.912 GB, free: 42.79 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.997e-05/12.19, allocations: 10.36 kB / 3.912 GB, free: 42.79 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001537/12.19, allocations: 32.38 kB / 3.913 GB, free: 42.79 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.401e-05/12.19, allocations: 20.62 kB / 3.913 GB, free: 42.79 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005502/12.2, allocations: 1.245 MB / 3.914 GB, free: 42.79 MB / 0.5261 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.01104/12.21, allocations: 5.738 MB / 3.919 GB, free: 39.2 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005097/12.21, allocations: 1.017 MB / 3.92 GB, free: 39.14 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.104/12.32, allocations: 32.15 MB / 3.952 GB, free: 35.61 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.748e-05/12.32, allocations: 40.94 kB / 3.952 GB, free: 35.57 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001294/12.32, allocations: 139.4 kB / 3.952 GB, free: 35.53 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=58): time 5.601e-06/12.32, allocations: 0 / 3.952 GB, free: 35.53 MB / 0.5417 GB Notification: Performance of matching and sorting (n=58): time 0.01057/12.33, allocations: 1.87 MB / 3.954 GB, free: 35.24 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/12.33, allocations: 194.8 kB / 3.954 GB, free: 35.02 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001358/12.33, allocations: 0.5879 MB / 3.955 GB, free: 34.89 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000197/12.33, allocations: 36.42 kB / 3.955 GB, free: 34.86 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003387/12.33, allocations: 407.6 kB / 3.955 GB, free: 34.61 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002517/12.33, allocations: 203.2 kB / 3.955 GB, free: 34.49 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.376e-05/12.33, allocations: 14.78 kB / 3.955 GB, free: 34.49 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001585/12.33, allocations: 337 kB / 3.955 GB, free: 34.18 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001362/12.33, allocations: 284.7 kB / 3.956 GB, free: 34.18 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001545/12.34, allocations: 0.5247 MB / 3.956 GB, free: 33.87 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001497/12.34, allocations: 337.3 kB / 3.957 GB, free: 33.86 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.558e-06/12.34, allocations: 2.438 kB / 3.957 GB, free: 33.86 MB / 0.5417 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.003887/12.34, allocations: 0.9091 MB / 3.957 GB, free: 33.79 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001176/12.34, allocations: 2.967 MB / 3.96 GB, free: 30.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.241e-05/12.34, allocations: 9.781 kB / 3.96 GB, free: 30.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009695/12.35, allocations: 0.6418 MB / 3.961 GB, free: 30.69 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001527/12.35, allocations: 195 kB / 3.961 GB, free: 30.69 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/12.36, allocations: 1.165 MB / 3.962 GB, free: 29.65 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/12.36, allocations: 81.55 kB / 3.962 GB, free: 29.64 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001266/12.36, allocations: 42.69 kB / 3.962 GB, free: 29.64 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/12.36, allocations: 4.5 kB / 3.962 GB, free: 29.64 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003395/12.36, allocations: 0.7944 MB / 3.963 GB, free: 29.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-05/12.36, allocations: 7.594 kB / 3.963 GB, free: 29.64 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.404e-05/12.36, allocations: 16.73 kB / 3.963 GB, free: 29.64 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001569/12.36, allocations: 227.7 kB / 3.963 GB, free: 29.63 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.588e-05/12.36, allocations: 16.44 kB / 3.963 GB, free: 29.63 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001087/12.36, allocations: 83.48 kB / 3.964 GB, free: 29.63 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001086/12.36, allocations: 40.23 kB / 3.964 GB, free: 29.63 MB / 0.5417 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.0007956/12.36, allocations: 307.7 kB / 3.964 GB, free: 29.44 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003273/12.36, allocations: 87 kB / 3.964 GB, free: 29.39 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007667/12.37, allocations: 3.721 MB / 3.968 GB, free: 28.96 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.065e-05/12.37, allocations: 51.86 kB / 3.968 GB, free: 28.96 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/12.37, allocations: 0 / 3.968 GB, free: 28.96 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.148e-05/12.37, allocations: 1.359 kB / 3.968 GB, free: 28.96 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00314/12.38, allocations: 1.781 MB / 3.969 GB, free: 28.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/12.38, allocations: 2.906 kB / 3.969 GB, free: 28.66 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001151/12.38, allocations: 166.4 kB / 3.97 GB, free: 28.66 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004134/12.38, allocations: 0.8747 MB / 3.97 GB, free: 28.63 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001558/12.38, allocations: 15.78 kB / 3.97 GB, free: 28.63 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001568/12.38, allocations: 1.565 MB / 3.972 GB, free: 27.58 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/12.38, allocations: 0 / 3.972 GB, free: 27.58 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004453/12.39, allocations: 2.183 MB / 3.974 GB, free: 27.11 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001065/12.39, allocations: 462.7 kB / 3.975 GB, free: 26.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002421/12.39, allocations: 12.94 kB / 3.975 GB, free: 26.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/12.39, allocations: 73.11 kB / 3.975 GB, free: 26.88 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002067/12.39, allocations: 61.23 kB / 3.975 GB, free: 26.88 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.349e-05/12.39, allocations: 26.69 kB / 3.975 GB, free: 26.88 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001511/12.39, allocations: 0.7553 MB / 3.975 GB, free: 26.77 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.72e-07/12.39, allocations: 0 / 3.975 GB, free: 26.77 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00708/12.4, allocations: 1.338 MB / 3.977 GB, free: 26.61 MB / 0.5417 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.01026/12.41, allocations: 1.764 MB / 3.978 GB, free: 26.2 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005326/12.41, allocations: 1.519 MB / 3.98 GB, free: 26.16 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/12.41, allocations: 4 kB / 3.98 GB, free: 26.15 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002128/12.42, allocations: 0.8857 MB / 3.981 GB, free: 26.13 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004565/12.42, allocations: 494.9 kB / 3.981 GB, free: 26.1 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006505/12.43, allocations: 3.542 MB / 3.985 GB, free: 24.44 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009906/12.43, allocations: 1.29 MB / 3.986 GB, free: 23.7 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004635/12.43, allocations: 88.2 kB / 3.986 GB, free: 23.7 MB / 0.5417 GB Notification: Performance of SimCode: time 2.895e-06/12.43, allocations: 0 / 3.986 GB, free: 23.7 MB / 0.5417 GB Notification: Performance of Templates: time 0.08748/12.52, allocations: 47.26 MB / 4.032 GB, free: 20.27 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Sensors/TestDensity/TestDensity.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches