Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.m_flow|volumeFlowRate.V_flow|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.m_flow|volumeFlowRate.V_flow|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001455/0.001455, allocations: 173.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 221.5 MB / 230.7 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000932/0.000932, allocations: 92.55 kB / 281.6 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2419/0.2419, allocations: 44.15 MB / 376.5 MB, free: 3.035 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.488e-05/1.49e-05, allocations: 4.219 kB / 444.6 MB, free: 15.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.1527, allocations: 61.91 MB / 0.4947 GB, free: 1.254 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.477/7.629, allocations: 2.765 GB / 3.26 GB, free: 116.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002065/7.63, allocations: 87.94 kB / 3.26 GB, free: 116.4 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 1.424/9.054, allocations: 401.6 MB / 3.652 GB, free: 76.15 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.373e-06/9.054, allocations: 0 / 3.652 GB, free: 76.15 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.138e-05/9.054, allocations: 11.5 kB / 3.652 GB, free: 76.15 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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.00598/9.06, allocations: 1.54 MB / 3.654 GB, free: 75.53 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/9.06, allocations: 15.77 kB / 3.654 GB, free: 75.52 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002135/9.062, allocations: 291.2 kB / 3.654 GB, free: 75.5 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007795/9.063, allocations: 459.6 kB / 3.654 GB, free: 75.27 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.965e-05/9.063, allocations: 18.81 kB / 3.654 GB, free: 75.27 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.729e-05/9.063, allocations: 22.28 kB / 3.654 GB, free: 75.27 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006246/9.064, allocations: 362.3 kB / 3.655 GB, free: 75.27 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006692/9.064, allocations: 479.6 kB / 3.655 GB, free: 75.11 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/9.064, allocations: 7.609 kB / 3.655 GB, free: 75.11 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.15e-05/9.064, allocations: 0 / 3.655 GB, free: 75.11 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/9.064, allocations: 11.59 kB / 3.655 GB, free: 75.11 MB / 0.5261 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.08452/9.149, allocations: 51.25 MB / 3.705 GB, free: 43.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004318/9.149, allocations: 260.7 kB / 3.706 GB, free: 43.28 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/9.149, allocations: 128 kB / 3.706 GB, free: 43.27 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09408/9.244, allocations: 55.75 MB / 3.76 GB, free: 39.7 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.279e-05/9.244, allocations: 37.31 kB / 3.76 GB, free: 39.66 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=24): time 2.094e-06/9.244, allocations: 0 / 3.76 GB, free: 39.66 MB / 0.5573 GB Notification: Performance of matching and sorting (n=24): time 0.002282/9.246, allocations: 0.6153 MB / 3.761 GB, free: 39.6 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.671e-05/9.246, allocations: 109.5 kB / 3.761 GB, free: 39.47 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003125/9.246, allocations: 299.9 kB / 3.761 GB, free: 39.36 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 3.279e-05/9.246, allocations: 25.7 kB / 3.761 GB, free: 39.33 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/9.247, allocations: 274.1 kB / 3.761 GB, free: 39.18 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 4.774e-05/9.247, allocations: 83.75 kB / 3.762 GB, free: 39.14 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.799e-05/9.247, allocations: 0 / 3.762 GB, free: 39.14 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001225/9.247, allocations: 343.8 kB / 3.762 GB, free: 38.83 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/9.247, allocations: 107.3 kB / 3.762 GB, free: 38.83 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001943/9.247, allocations: 218.6 kB / 3.762 GB, free: 38.69 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009743/9.248, allocations: 262 kB / 3.762 GB, free: 38.68 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/9.248, allocations: 2.344 kB / 3.762 GB, free: 38.68 MB / 0.5573 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001302/9.249, allocations: 0.509 MB / 3.763 GB, free: 38.61 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004351/9.25, allocations: 1.313 MB / 3.764 GB, free: 37.24 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/9.25, allocations: 6.891 kB / 3.764 GB, free: 37.24 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001897/9.25, allocations: 55.89 kB / 3.764 GB, free: 37.23 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003137/9.25, allocations: 92.3 kB / 3.764 GB, free: 37.23 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008105/9.251, allocations: 0.6675 MB / 3.765 GB, free: 36.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004357/9.252, allocations: 80.06 kB / 3.765 GB, free: 36.69 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.285e-05/9.252, allocations: 16.34 kB / 3.765 GB, free: 36.69 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 7.423e-06/9.252, allocations: 6.812 kB / 3.765 GB, free: 36.69 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008711/9.253, allocations: 359.8 kB / 3.765 GB, free: 36.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/9.253, allocations: 3.906 kB / 3.765 GB, free: 36.68 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.452e-06/9.253, allocations: 7.219 kB / 3.765 GB, free: 36.68 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003462/9.253, allocations: 116 kB / 3.766 GB, free: 36.68 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.513e-06/9.253, allocations: 14.08 kB / 3.766 GB, free: 36.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003098/9.253, allocations: 55.25 kB / 3.766 GB, free: 36.67 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.579e-05/9.253, allocations: 15.97 kB / 3.766 GB, free: 36.67 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (massFlowRate1.medium.phase,boundary_fixed.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001309/9.253, allocations: 122.5 kB / 3.766 GB, free: 36.56 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.437e-05/9.254, allocations: 35.34 kB / 3.766 GB, free: 36.54 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001873/9.255, allocations: 1.583 MB / 3.767 GB, free: 36.37 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.008e-05/9.255, allocations: 24.56 kB / 3.767 GB, free: 36.37 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/9.255, allocations: 0 / 3.767 GB, free: 36.37 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/9.255, allocations: 3.375 kB / 3.767 GB, free: 36.37 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0024/9.258, allocations: 2.195 MB / 3.77 GB, free: 35.99 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/9.258, allocations: 0 / 3.77 GB, free: 35.99 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001995/9.258, allocations: 55.42 kB / 3.77 GB, free: 35.99 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005588/9.259, allocations: 0.5894 MB / 3.77 GB, free: 35.95 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.128e-05/9.259, allocations: 3.938 kB / 3.77 GB, free: 35.95 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001058/9.26, allocations: 1.106 MB / 3.771 GB, free: 35.43 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.872e-06/9.26, allocations: 3.688 kB / 3.771 GB, free: 35.43 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001474/9.261, allocations: 1.223 MB / 3.772 GB, free: 35.13 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002398/9.261, allocations: 187.6 kB / 3.773 GB, free: 35 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.554e-05/9.262, allocations: 0 / 3.773 GB, free: 35 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000287/9.262, allocations: 37.36 kB / 3.773 GB, free: 34.99 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.022e-05/9.262, allocations: 35.83 kB / 3.773 GB, free: 34.98 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.276e-05/9.262, allocations: 7.062 kB / 3.773 GB, free: 34.98 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0002508/9.262, allocations: 228.6 kB / 3.773 GB, free: 34.9 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.81e-07/9.262, allocations: 4 kB / 3.773 GB, free: 34.9 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.005664/9.268, allocations: 1.161 MB / 3.774 GB, free: 34.71 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 13 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,massFlowRate1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.006716/9.275, allocations: 1.708 MB / 3.776 GB, free: 34.35 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.00137/9.276, allocations: 0.6426 MB / 3.776 GB, free: 34.33 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/9.276, allocations: 0 / 3.776 GB, free: 34.33 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0005074/9.277, allocations: 400.4 kB / 3.777 GB, free: 34.32 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/9.278, allocations: 173.7 kB / 3.777 GB, free: 34.31 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001763/9.28, allocations: 0.9754 MB / 3.778 GB, free: 34.04 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005411/9.28, allocations: 0.9423 MB / 3.779 GB, free: 33.33 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001111/9.281, allocations: 0.6535 MB / 3.779 GB, free: 33.3 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001043/9.281, allocations: 39.91 kB / 3.779 GB, free: 33.3 MB / 0.5573 GB Notification: Performance of SimCode: time 5.31e-07/9.281, allocations: 1.688 kB / 3.779 GB, free: 33.3 MB / 0.5573 GB Notification: Performance of Templates: time 0.04241/9.324, allocations: 30.88 MB / 3.81 GB, free: 16.2 MB / 0.5573 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestFlowRate/TestFlowRate.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches