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.001444/0.001448, allocations: 178.4 kB / 8.362 MB, free: 0.7148 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.963/1.963, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001099/0.001098, allocations: 100.6 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2975/0.2975, allocations: 43.48 MB / 353.5 MB, free: 2.285 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.739e-05/1.777e-05, allocations: 0 / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3967/0.3967, allocations: 58.85 MB / 477.1 MB, free: 5.262 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.138/8.535, allocations: 2.761 GB / 3.227 GB, free: 26.57 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/8.535, allocations: 94.38 kB / 3.227 GB, free: 26.52 MB / 0.4952 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.632/12.17, allocations: 0.6591 GB / 3.886 GB, free: 44.64 MB / 0.5108 GB Notification: Performance of FrontEnd: time 1.804e-06/12.17, allocations: 0 / 3.886 GB, free: 44.64 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 8.019e-05/12.17, allocations: 22.88 kB / 3.886 GB, free: 44.64 MB / 0.5108 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.009115/12.18, allocations: 2.191 MB / 3.888 GB, free: 43.69 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/12.18, allocations: 10.75 kB / 3.888 GB, free: 43.69 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007257/12.18, allocations: 0.5732 MB / 3.889 GB, free: 43.64 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002079/12.19, allocations: 0.666 MB / 3.889 GB, free: 43.38 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.727e-05/12.19, allocations: 35.56 kB / 3.889 GB, free: 43.38 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001518/12.19, allocations: 40.62 kB / 3.889 GB, free: 43.38 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001933/12.19, allocations: 0.7484 MB / 3.89 GB, free: 43.37 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001878/12.19, allocations: 0.9318 MB / 3.891 GB, free: 43.08 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.1e-05/12.19, allocations: 13.19 kB / 3.891 GB, free: 43.08 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000126/12.19, allocations: 3.219 kB / 3.891 GB, free: 43.08 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.17e-05/12.19, allocations: 18.16 kB / 3.891 GB, free: 43.08 MB / 0.5108 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.3185/12.51, allocations: 102.3 MB / 3.991 GB, free: 26.38 MB / 0.5577 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001712/12.51, allocations: 0.5308 MB / 3.992 GB, free: 26.33 MB / 0.5577 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005017/12.51, allocations: 218.8 kB / 3.992 GB, free: 26.31 MB / 0.5577 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1056/12.62, allocations: 32.28 MB / 4.023 GB, free: 21.65 MB / 0.5733 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.416e-05/12.62, allocations: 53.8 kB / 4.023 GB, free: 21.6 MB / 0.5733 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001102/12.62, allocations: 105 kB / 4.023 GB, free: 21.57 MB / 0.5733 GB Notification: Performance of pre-optimization done (n=46): time 3.246e-06/12.62, allocations: 0 / 4.023 GB, free: 21.57 MB / 0.5733 GB Notification: Performance of matching and sorting (n=46): time 0.006811/12.63, allocations: 1.148 MB / 4.025 GB, free: 21.48 MB / 0.5733 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/12.63, allocations: 191.1 kB / 4.025 GB, free: 21.25 MB / 0.5733 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007764/12.63, allocations: 462.3 kB / 4.025 GB, free: 21.13 MB / 0.5733 GB Notification: Performance of collectPreVariables (initialization): time 9.257e-05/12.63, allocations: 28.89 kB / 4.025 GB, free: 21.1 MB / 0.5733 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003401/12.63, allocations: 485.2 kB / 4.026 GB, free: 20.78 MB / 0.5733 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001641/12.63, allocations: 158.1 kB / 4.026 GB, free: 20.68 MB / 0.5733 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.587e-05/12.63, allocations: 3.281 kB / 4.026 GB, free: 20.68 MB / 0.5733 GB Notification: Performance of setup shared object (initialization): time 0.0001559/12.63, allocations: 338.7 kB / 4.026 GB, free: 20.36 MB / 0.5733 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004758/12.63, allocations: 193.6 kB / 4.026 GB, free: 20.26 MB / 0.5733 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006074/12.63, allocations: 453.3 kB / 4.027 GB, free: 19.82 MB / 0.5733 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003277/12.63, allocations: 497.5 kB / 4.027 GB, free: 19.55 MB / 0.5733 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.386e-05/12.63, allocations: 4 kB / 4.027 GB, free: 19.55 MB / 0.5733 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.004534/12.64, allocations: 0.9317 MB / 4.028 GB, free: 18.98 MB / 0.5733 GB Notification: Performance of prepare postOptimizeDAE: time 0.001207/12.64, allocations: 2.958 MB / 4.031 GB, free: 15.85 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.692e-05/12.64, allocations: 10.84 kB / 4.031 GB, free: 15.84 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004804/12.64, allocations: 87 kB / 4.031 GB, free: 15.78 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001378/12.64, allocations: 196.5 kB / 4.031 GB, free: 15.64 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002468/12.64, allocations: 1.289 MB / 4.033 GB, free: 14.43 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001665/12.64, allocations: 97.5 kB / 4.033 GB, free: 14.36 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/12.64, allocations: 45.19 kB / 4.033 GB, free: 14.33 MB / 0.5733 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/12.64, allocations: 4 kB / 4.033 GB, free: 14.32 MB / 0.5733 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003019/12.65, allocations: 0.6951 MB / 4.033 GB, free: 13.93 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/12.65, allocations: 9.688 kB / 4.033 GB, free: 13.92 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/12.65, allocations: 16.09 kB / 4.033 GB, free: 13.9 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001447/12.65, allocations: 223.4 kB / 4.034 GB, free: 13.75 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.708e-05/12.65, allocations: 16.12 kB / 4.034 GB, free: 13.73 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001133/12.65, allocations: 93.08 kB / 4.034 GB, free: 13.66 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.886e-05/12.65, allocations: 38.33 kB / 4.034 GB, free: 13.64 MB / 0.5733 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.0003233/12.65, allocations: 130.9 kB / 4.034 GB, free: 13.52 MB / 0.5733 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002469/12.65, allocations: 67.25 kB / 4.034 GB, free: 13.45 MB / 0.5733 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005913/12.66, allocations: 2.841 MB / 4.037 GB, free: 11.9 MB / 0.5733 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.102e-05/12.66, allocations: 40.48 kB / 4.037 GB, free: 11.89 MB / 0.5733 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/12.66, allocations: 4 kB / 4.037 GB, free: 11.88 MB / 0.5733 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/12.66, allocations: 3.844 kB / 4.037 GB, free: 11.88 MB / 0.5733 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006953/12.66, allocations: 3.787 MB / 4.04 GB, free: 9.852 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.049e-05/12.66, allocations: 0 / 4.04 GB, free: 9.852 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007576/12.66, allocations: 116.3 kB / 4.041 GB, free: 9.766 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001147/12.67, allocations: 0.7343 MB / 4.041 GB, free: 9.246 MB / 0.5733 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.746e-05/12.67, allocations: 15.83 kB / 4.041 GB, free: 9.234 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002313/12.67, allocations: 1.678 MB / 4.043 GB, free: 7.852 MB / 0.5733 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.799e-06/12.67, allocations: 9.516 kB / 4.043 GB, free: 7.844 MB / 0.5733 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004077/12.67, allocations: 1.954 MB / 4.045 GB, free: 6.57 MB / 0.5733 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006442/12.67, allocations: 307.5 kB / 4.045 GB, free: 6.324 MB / 0.5733 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001675/12.67, allocations: 4 kB / 4.045 GB, free: 6.32 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/12.67, allocations: 53.97 kB / 4.045 GB, free: 6.281 MB / 0.5733 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001575/12.67, allocations: 65.53 kB / 4.045 GB, free: 6.246 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.384e-05/12.67, allocations: 23.11 kB / 4.045 GB, free: 6.23 MB / 0.5733 GB Notification: Performance of sorting global known variables: time 0.0007595/12.67, allocations: 434.1 kB / 4.046 GB, free: 5.953 MB / 0.5733 GB Notification: Performance of sort global known variables: time 5.52e-07/12.67, allocations: 0 / 4.046 GB, free: 5.953 MB / 0.5733 GB Notification: Performance of remove unused functions: time 0.006227/12.68, allocations: 1.274 MB / 4.047 GB, free: 4.77 MB / 0.5733 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.009659/12.69, allocations: 1.946 MB / 4.049 GB, free: 3.301 MB / 0.5733 GB Notification: Performance of simCode: created initialization part: time 0.002919/12.69, allocations: 1.149 MB / 4.05 GB, free: 2.641 MB / 0.5733 GB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/12.69, allocations: 0 / 4.05 GB, free: 2.641 MB / 0.5733 GB Notification: Performance of simCode: created simulation system equations: time 0.001377/12.7, allocations: 0.6889 MB / 4.051 GB, free: 2.316 MB / 0.5733 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002799/12.7, allocations: 285.1 kB / 4.051 GB, free: 2.164 MB / 0.5733 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003762/12.7, allocations: 1.798 MB / 4.053 GB, free: 0.8008 MB / 0.5733 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3973/13.1, allocations: 1.176 MB / 4.054 GB, free: 105.4 MB / 0.5733 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005904/13.1, allocations: 80.05 kB / 4.054 GB, free: 105.4 MB / 0.5733 GB Notification: Performance of SimCode: time 1.423e-06/13.1, allocations: 0 / 4.054 GB, free: 105.4 MB / 0.5733 GB Notification: Performance of Templates: time 0.1001/13.2, allocations: 42.95 MB / 4.096 GB, free: 103.8 MB / 0.5733 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