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.001351/0.001351, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 225.6 MB / 234.8 MB, free: 3.242 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008857/0.0008858, allocations: 100 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2174/0.2174, allocations: 45.15 MB / 383.8 MB, free: 272 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.82e-05/1.821e-05, allocations: 0 / 453.2 MB, free: 75.84 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1311, allocations: 63.26 MB / 0.5044 GB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.371/6.503, allocations: 2.767 GB / 3.272 GB, free: 144.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002322/6.503, allocations: 83.11 kB / 3.272 GB, free: 144.8 MB / 0.5261 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.113/8.616, allocations: 0.6664 GB / 3.938 GB, free: 52.97 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.723e-06/8.616, allocations: 0 / 3.938 GB, free: 52.97 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.234e-05/8.616, allocations: 22.08 kB / 3.938 GB, free: 52.97 MB / 0.5417 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.007785/8.624, allocations: 2.199 MB / 3.94 GB, free: 51.85 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/8.624, allocations: 7.781 kB / 3.94 GB, free: 51.85 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00478/8.628, allocations: 0.6031 MB / 3.941 GB, free: 51.8 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001446/8.63, allocations: 0.6706 MB / 3.942 GB, free: 51.53 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.049e-05/8.63, allocations: 31.31 kB / 3.942 GB, free: 51.53 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001482/8.63, allocations: 42.97 kB / 3.942 GB, free: 51.53 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001234/8.631, allocations: 0.7446 MB / 3.942 GB, free: 51.52 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/8.633, allocations: 0.9367 MB / 3.943 GB, free: 51.23 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.245e-05/8.633, allocations: 1.969 kB / 3.943 GB, free: 51.23 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.001e-05/8.633, allocations: 7.062 kB / 3.943 GB, free: 51.23 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.482e-05/8.633, allocations: 18 kB / 3.943 GB, free: 51.23 MB / 0.5417 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.507/9.14, allocations: 113.4 MB / 4.054 GB, free: 79.04 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/9.141, allocations: 0.544 MB / 4.055 GB, free: 78.99 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002852/9.141, allocations: 221.8 kB / 4.055 GB, free: 78.98 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05719/9.199, allocations: 35.96 MB / 4.09 GB, free: 55.72 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/9.199, allocations: 38.7 kB / 4.09 GB, free: 55.68 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007552/9.199, allocations: 113.2 kB / 4.09 GB, free: 55.68 MB / 0.573 GB Notification: Performance of pre-optimization done (n=46): time 2.515e-06/9.199, allocations: 0 / 4.09 GB, free: 55.68 MB / 0.573 GB Notification: Performance of matching and sorting (n=46): time 0.003803/9.203, allocations: 1.15 MB / 4.091 GB, free: 55.63 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.527e-05/9.203, allocations: 197.9 kB / 4.091 GB, free: 55.41 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005085/9.204, allocations: 457.4 kB / 4.092 GB, free: 55.29 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 4.021e-05/9.204, allocations: 25.7 kB / 4.092 GB, free: 55.26 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002048/9.204, allocations: 451.5 kB / 4.092 GB, free: 55.06 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 9.603e-05/9.204, allocations: 157.5 kB / 4.092 GB, free: 54.98 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.161e-05/9.204, allocations: 0 / 4.092 GB, free: 54.98 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 9.13e-05/9.204, allocations: 378.1 kB / 4.093 GB, free: 54.67 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002523/9.205, allocations: 191.8 kB / 4.093 GB, free: 54.67 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003534/9.205, allocations: 442.5 kB / 4.093 GB, free: 54.37 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001853/9.207, allocations: 498 kB / 4.094 GB, free: 54.37 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/9.207, allocations: 3.531 kB / 4.094 GB, free: 54.37 MB / 0.573 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002511/9.209, allocations: 0.9696 MB / 4.095 GB, free: 54.27 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004882/9.21, allocations: 2.957 MB / 4.098 GB, free: 51.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/9.21, allocations: 6.656 kB / 4.098 GB, free: 51.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002822/9.21, allocations: 85.41 kB / 4.098 GB, free: 51.18 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006278/9.211, allocations: 198 kB / 4.098 GB, free: 51.18 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001275/9.212, allocations: 1.304 MB / 4.099 GB, free: 50.13 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008032/9.213, allocations: 94.67 kB / 4.099 GB, free: 50.13 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.814e-05/9.213, allocations: 40.84 kB / 4.099 GB, free: 50.13 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 7.274e-06/9.213, allocations: 6.781 kB / 4.099 GB, free: 50.13 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001717/9.215, allocations: 0.6961 MB / 4.1 GB, free: 50.12 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/9.215, allocations: 10.44 kB / 4.1 GB, free: 50.12 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/9.215, allocations: 18.77 kB / 4.1 GB, free: 50.12 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006947/9.215, allocations: 221.8 kB / 4.1 GB, free: 50.12 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/9.215, allocations: 16.31 kB / 4.1 GB, free: 50.12 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005664/9.216, allocations: 82.66 kB / 4.1 GB, free: 50.12 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.153e-05/9.216, allocations: 39.77 kB / 4.1 GB, free: 50.12 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 (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.0001485/9.216, allocations: 138.9 kB / 4.101 GB, free: 50 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/9.216, allocations: 73.94 kB / 4.101 GB, free: 49.97 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003357/9.22, allocations: 2.847 MB / 4.103 GB, free: 49.7 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.66e-05/9.22, allocations: 37.41 kB / 4.103 GB, free: 49.7 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/9.22, allocations: 2.875 kB / 4.103 GB, free: 49.7 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.946e-06/9.22, allocations: 3.281 kB / 4.103 GB, free: 49.7 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003794/9.224, allocations: 3.788 MB / 4.107 GB, free: 49.19 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/9.224, allocations: 2.406 kB / 4.107 GB, free: 49.19 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000368/9.224, allocations: 109.8 kB / 4.107 GB, free: 49.19 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006391/9.225, allocations: 0.7449 MB / 4.108 GB, free: 49.14 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.052e-05/9.225, allocations: 9.781 kB / 4.108 GB, free: 49.14 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001136/9.226, allocations: 1.689 MB / 4.11 GB, free: 48.09 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/9.226, allocations: 0 / 4.11 GB, free: 48.09 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00218/9.228, allocations: 1.96 MB / 4.112 GB, free: 47.61 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003135/9.228, allocations: 308.6 kB / 4.112 GB, free: 47.45 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001001/9.228, allocations: 7.922 kB / 4.112 GB, free: 47.45 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005212/9.229, allocations: 59.66 kB / 4.112 GB, free: 47.45 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.723e-05/9.229, allocations: 56.78 kB / 4.112 GB, free: 47.45 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.481e-05/9.229, allocations: 16.47 kB / 4.112 GB, free: 47.45 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0003958/9.229, allocations: 442.2 kB / 4.112 GB, free: 47.35 MB / 0.573 GB Notification: Performance of sort global known variables: time 3.5e-07/9.23, allocations: 0 / 4.112 GB, free: 47.35 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.004561/9.234, allocations: 1.293 MB / 4.114 GB, free: 47.3 MB / 0.573 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.005436/9.24, allocations: 1.94 MB / 4.116 GB, free: 47.07 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001794/9.241, allocations: 1.165 MB / 4.117 GB, free: 47.06 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/9.241, allocations: 0 / 4.117 GB, free: 47.06 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0006866/9.242, allocations: 0.6873 MB / 4.117 GB, free: 47.05 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/9.244, allocations: 302.7 kB / 4.118 GB, free: 47.05 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002086/9.246, allocations: 1.761 MB / 4.119 GB, free: 46.59 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004664/9.246, allocations: 1.184 MB / 4.121 GB, free: 45.88 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001664/9.248, allocations: 1.417 MB / 4.122 GB, free: 45.87 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001454/9.248, allocations: 66.34 kB / 4.122 GB, free: 45.86 MB / 0.573 GB Notification: Performance of SimCode: time 1.102e-06/9.248, allocations: 0 / 4.122 GB, free: 45.86 MB / 0.573 GB Notification: Performance of Templates: time 0.04623/9.294, allocations: 36.46 MB / 4.158 GB, free: 43.55 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/jenkins/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