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.001353/0.001353, allocations: 198.1 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 227.2 MB / 245 MB, free: 7.605 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009937/0.0009937, allocations: 100.8 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4342/0.4342, allocations: 45.24 MB / 394.7 MB, free: 31.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000358/0.0003578, allocations: 11.98 kB / 468.4 MB, free: 7.734 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.394/0.3944, allocations: 63.24 MB / 0.5192 GB, free: 43.7 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.918/6.312, allocations: 2.768 GB / 3.287 GB, free: 140 kB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002174/6.312, allocations: 85.92 kB / 3.287 GB, free: 56 kB / 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.735/9.048, allocations: 0.6744 GB / 3.962 GB, free: 50.81 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.896e-06/9.048, allocations: 0 / 3.962 GB, free: 50.81 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001433/9.048, allocations: 26.88 kB / 3.962 GB, free: 50.81 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.01238/9.06, allocations: 2.29 MB / 3.964 GB, free: 49.98 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/9.061, allocations: 6.438 kB / 3.964 GB, free: 49.98 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005261/9.066, allocations: 0.593 MB / 3.965 GB, free: 49.93 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001695/9.067, allocations: 0.6759 MB / 3.965 GB, free: 49.68 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.989e-05/9.068, allocations: 63.81 kB / 3.965 GB, free: 49.68 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002075/9.068, allocations: 70.44 kB / 3.965 GB, free: 49.68 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003359/9.071, allocations: 1.378 MB / 3.967 GB, free: 49.38 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.369e-05/9.071, allocations: 5.5 kB / 3.967 GB, free: 49.38 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/9.071, allocations: 39.08 kB / 3.967 GB, free: 49.37 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/9.071, allocations: 23.5 kB / 3.967 GB, free: 49.37 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003108/9.074, allocations: 1.243 MB / 3.968 GB, free: 49.37 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.006629/9.081, allocations: 5.73 MB / 3.974 GB, free: 45.76 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002792/9.084, allocations: 1.013 MB / 3.975 GB, free: 45.71 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06/9.144, allocations: 35.85 MB / 4.01 GB, free: 38.42 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.254e-05/9.144, allocations: 43.97 kB / 4.01 GB, free: 38.38 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001015/9.145, allocations: 144.9 kB / 4.01 GB, free: 38.34 MB / 0.573 GB Notification: Performance of pre-optimization done (n=58): time 5.811e-06/9.145, allocations: 1.344 kB / 4.01 GB, free: 38.34 MB / 0.573 GB Notification: Performance of matching and sorting (n=58): time 0.006464/9.152, allocations: 1.877 MB / 4.012 GB, free: 38.05 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/9.152, allocations: 190.6 kB / 4.012 GB, free: 37.83 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/9.153, allocations: 0.5865 MB / 4.012 GB, free: 37.7 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001073/9.153, allocations: 36.64 kB / 4.012 GB, free: 37.67 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003199/9.153, allocations: 398.5 kB / 4.013 GB, free: 37.49 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001905/9.153, allocations: 200.2 kB / 4.013 GB, free: 37.36 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.164e-05/9.154, allocations: 12.5 kB / 4.013 GB, free: 37.36 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001975/9.154, allocations: 386.6 kB / 4.013 GB, free: 37.05 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007345/9.154, allocations: 280.9 kB / 4.014 GB, free: 37.05 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008694/9.155, allocations: 0.526 MB / 4.014 GB, free: 36.74 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008342/9.156, allocations: 346.7 kB / 4.014 GB, free: 36.73 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.136e-05/9.156, allocations: 2.75 kB / 4.014 GB, free: 36.73 MB / 0.573 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.00228/9.158, allocations: 0.9498 MB / 4.015 GB, free: 36.64 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001298/9.16, allocations: 2.962 MB / 4.018 GB, free: 33.56 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.836e-05/9.16, allocations: 10.53 kB / 4.018 GB, free: 33.56 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005169/9.165, allocations: 0.6442 MB / 4.019 GB, free: 33.54 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007176/9.166, allocations: 195 kB / 4.019 GB, free: 33.54 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001008/9.167, allocations: 1.164 MB / 4.02 GB, free: 32.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/9.168, allocations: 83.59 kB / 4.02 GB, free: 32.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.802e-05/9.168, allocations: 42.81 kB / 4.02 GB, free: 32.5 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/9.168, allocations: 6.469 kB / 4.02 GB, free: 32.5 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001748/9.17, allocations: 0.7969 MB / 4.021 GB, free: 32.48 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/9.17, allocations: 9.812 kB / 4.021 GB, free: 32.48 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/9.17, allocations: 11.81 kB / 4.021 GB, free: 32.48 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007406/9.17, allocations: 223.5 kB / 4.021 GB, free: 32.48 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.464e-05/9.171, allocations: 21.58 kB / 4.021 GB, free: 32.48 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000944/9.171, allocations: 81.72 kB / 4.021 GB, free: 32.48 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.278e-05/9.172, allocations: 45.06 kB / 4.021 GB, free: 32.48 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.0006081/9.172, allocations: 303.7 kB / 4.022 GB, free: 32.29 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002707/9.172, allocations: 87.28 kB / 4.022 GB, free: 32.24 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004828/9.177, allocations: 3.727 MB / 4.026 GB, free: 31.79 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.012e-05/9.177, allocations: 47.39 kB / 4.026 GB, free: 31.79 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/9.177, allocations: 4 kB / 4.026 GB, free: 31.78 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.26e-05/9.177, allocations: 7.641 kB / 4.026 GB, free: 31.78 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002359/9.18, allocations: 1.772 MB / 4.027 GB, free: 31.48 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.259e-05/9.18, allocations: 3.125 kB / 4.027 GB, free: 31.48 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005648/9.18, allocations: 160.7 kB / 4.027 GB, free: 31.48 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002388/9.183, allocations: 0.8807 MB / 4.028 GB, free: 31.43 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.947e-05/9.183, allocations: 16.94 kB / 4.028 GB, free: 31.43 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001175/9.184, allocations: 1.568 MB / 4.03 GB, free: 30.38 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/9.184, allocations: 0 / 4.03 GB, free: 30.38 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002838/9.187, allocations: 2.182 MB / 4.032 GB, free: 29.89 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007444/9.188, allocations: 458.9 kB / 4.032 GB, free: 29.66 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002382/9.188, allocations: 16.7 kB / 4.032 GB, free: 29.66 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000807/9.189, allocations: 75.05 kB / 4.033 GB, free: 29.65 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001534/9.189, allocations: 68.22 kB / 4.033 GB, free: 29.65 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.568e-05/9.189, allocations: 24.39 kB / 4.033 GB, free: 29.65 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001056/9.19, allocations: 0.7549 MB / 4.033 GB, free: 29.54 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.5e-07/9.19, allocations: 6.016 kB / 4.033 GB, free: 29.54 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.007019/9.197, allocations: 1.345 MB / 4.035 GB, free: 29.38 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.009188/9.206, allocations: 1.767 MB / 4.036 GB, free: 28.97 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.003273/9.21, allocations: 1.525 MB / 4.038 GB, free: 28.93 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/9.21, allocations: 7.281 kB / 4.038 GB, free: 28.93 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001164/9.211, allocations: 0.8865 MB / 4.039 GB, free: 28.91 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002548/9.213, allocations: 492.9 kB / 4.039 GB, free: 28.88 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004639/9.218, allocations: 3.482 MB / 4.043 GB, free: 27.25 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009964/9.219, allocations: 1.289 MB / 4.044 GB, free: 26.52 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001857/9.221, allocations: 1.222 MB / 4.045 GB, free: 26.47 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002231/9.221, allocations: 86.44 kB / 4.045 GB, free: 26.46 MB / 0.573 GB Notification: Performance of SimCode: time 8.41e-07/9.221, allocations: 0 / 4.045 GB, free: 26.46 MB / 0.573 GB Notification: Performance of Templates: time 0.0789/9.3, allocations: 47.97 MB / 4.092 GB, free: 23.67 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