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.001077/0.001077, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 221.3 MB / 236 MB, free: 2.992 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.0009979/0.000998, allocations: 83.86 kB / 287 MB, free: 264 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1894/0.1894, allocations: 44.15 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.24e-05/4.242e-05, allocations: 0 / 451.8 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1243, allocations: 61.92 MB / 0.5017 GB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.192/6.317, allocations: 2.766 GB / 3.268 GB, free: 155.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003025/6.317, allocations: 82.22 kB / 3.268 GB, free: 155.1 MB / 0.5261 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.29/7.607, allocations: 405.7 MB / 3.664 GB, free: 64.51 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.663e-06/7.607, allocations: 0 / 3.664 GB, free: 64.51 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.888e-05/7.607, allocations: 11.69 kB / 3.664 GB, free: 64.51 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.004927/7.612, allocations: 1.537 MB / 3.665 GB, free: 63.92 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/7.612, allocations: 9.188 kB / 3.665 GB, free: 63.92 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002178/7.614, allocations: 300.2 kB / 3.666 GB, free: 63.89 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007706/7.615, allocations: 456.4 kB / 3.666 GB, free: 63.67 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.677e-05/7.615, allocations: 33.06 kB / 3.666 GB, free: 63.66 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.855e-05/7.615, allocations: 35.16 kB / 3.666 GB, free: 63.66 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/7.617, allocations: 0.6944 MB / 3.667 GB, free: 63.51 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/7.617, allocations: 1.031 kB / 3.667 GB, free: 63.51 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.768e-05/7.617, allocations: 17.47 kB / 3.667 GB, free: 63.51 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/7.617, allocations: 10.22 kB / 3.667 GB, free: 63.51 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001223/7.618, allocations: 0.5718 MB / 3.667 GB, free: 63.51 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.003074/7.621, allocations: 2.988 MB / 3.67 GB, free: 61.58 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/7.622, allocations: 478.3 kB / 3.671 GB, free: 61.55 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000192/7.622, allocations: 154.6 kB / 3.671 GB, free: 61.55 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08659/7.709, allocations: 55.76 MB / 3.725 GB, free: 27.32 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/7.709, allocations: 34.47 kB / 3.725 GB, free: 27.28 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=30): time 2.014e-06/7.709, allocations: 0 / 3.725 GB, free: 27.28 MB / 0.5261 GB Notification: Performance of matching and sorting (n=30): time 0.002165/7.711, allocations: 0.725 MB / 3.726 GB, free: 27.21 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/7.711, allocations: 106.8 kB / 3.726 GB, free: 27.08 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004455/7.712, allocations: 359.2 kB / 3.727 GB, free: 26.98 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.581e-05/7.712, allocations: 29.33 kB / 3.727 GB, free: 26.95 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001505/7.712, allocations: 249 kB / 3.727 GB, free: 26.82 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 8.395e-05/7.712, allocations: 108.6 kB / 3.727 GB, free: 26.77 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.877e-05/7.712, allocations: 6.312 kB / 3.727 GB, free: 26.77 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.589e-05/7.712, allocations: 353.3 kB / 3.727 GB, free: 26.46 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000168/7.712, allocations: 110.2 kB / 3.727 GB, free: 26.46 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002417/7.712, allocations: 232.2 kB / 3.728 GB, free: 26.32 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002052/7.713, allocations: 130.8 kB / 3.728 GB, free: 26.32 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/7.713, allocations: 0 / 3.728 GB, free: 26.32 MB / 0.5261 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0006967/7.713, allocations: 437.9 kB / 3.728 GB, free: 26.24 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000344/7.714, allocations: 1.314 MB / 3.729 GB, free: 24.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/7.714, allocations: 6.406 kB / 3.729 GB, free: 24.88 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002539/7.716, allocations: 330.3 kB / 3.73 GB, free: 24.85 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003299/7.717, allocations: 98.27 kB / 3.73 GB, free: 24.85 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004326/7.717, allocations: 0.6018 MB / 3.73 GB, free: 24.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004706/7.718, allocations: 72.97 kB / 3.73 GB, free: 24.31 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.457e-05/7.718, allocations: 24.19 kB / 3.73 GB, free: 24.31 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.018e-05/7.718, allocations: 3.969 kB / 3.731 GB, free: 24.31 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004684/7.718, allocations: 335.8 kB / 3.731 GB, free: 24.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/7.718, allocations: 3.844 kB / 3.731 GB, free: 24.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.442e-06/7.718, allocations: 3.906 kB / 3.731 GB, free: 24.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003453/7.718, allocations: 108.8 kB / 3.731 GB, free: 24.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/7.718, allocations: 10.97 kB / 3.731 GB, free: 24.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000318/7.719, allocations: 70.88 kB / 3.731 GB, free: 24.29 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.671e-05/7.719, allocations: 18.97 kB / 3.731 GB, free: 24.29 MB / 0.5261 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 (boundary_fixed.medium.phase,massFlowRate1.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.0001114/7.719, allocations: 139.5 kB / 3.731 GB, free: 24.18 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.108e-05/7.719, allocations: 42.69 kB / 3.731 GB, free: 24.16 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001719/7.721, allocations: 1.992 MB / 3.733 GB, free: 23.92 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.594e-05/7.721, allocations: 27.39 kB / 3.733 GB, free: 23.92 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/7.721, allocations: 1.406 kB / 3.733 GB, free: 23.92 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/7.721, allocations: 3.953 kB / 3.733 GB, free: 23.91 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008315/7.722, allocations: 1.015 MB / 3.734 GB, free: 23.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/7.722, allocations: 2.156 kB / 3.734 GB, free: 23.66 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002782/7.722, allocations: 82.09 kB / 3.734 GB, free: 23.65 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001344/7.723, allocations: 0.7558 MB / 3.735 GB, free: 23.61 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.74e-05/7.723, allocations: 10.06 kB / 3.735 GB, free: 23.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005823/7.724, allocations: 1.012 MB / 3.736 GB, free: 23.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/7.724, allocations: 64 / 3.736 GB, free: 23.07 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/7.725, allocations: 1.26 MB / 3.737 GB, free: 22.81 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002735/7.725, allocations: 271 kB / 3.737 GB, free: 22.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.422e-05/7.725, allocations: 3.125 kB / 3.737 GB, free: 22.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003149/7.726, allocations: 41.8 kB / 3.738 GB, free: 22.63 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.709e-05/7.726, allocations: 29.48 kB / 3.738 GB, free: 22.63 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.513e-05/7.726, allocations: 18.66 kB / 3.738 GB, free: 22.63 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0003611/7.726, allocations: 386.2 kB / 3.738 GB, free: 22.54 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.8e-07/7.726, allocations: 3.469 kB / 3.738 GB, free: 22.54 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00538/7.732, allocations: 1.206 MB / 3.739 GB, free: 22.36 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,massFlowRate1.medium.phase,boundary_fixed.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.007264/7.739, allocations: 1.6 MB / 3.741 GB, free: 22 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001257/7.74, allocations: 0.712 MB / 3.741 GB, free: 21.98 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/7.74, allocations: 7.531 kB / 3.741 GB, free: 21.98 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0004247/7.741, allocations: 460.5 kB / 3.742 GB, free: 21.98 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001355/7.742, allocations: 263 kB / 3.742 GB, free: 21.96 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001467/7.743, allocations: 1.163 MB / 3.743 GB, free: 21.65 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003275/7.744, allocations: 1.002 MB / 3.744 GB, free: 20.94 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0008138/7.745, allocations: 0.5788 MB / 3.745 GB, free: 20.92 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.982e-05/7.745, allocations: 35.62 kB / 3.745 GB, free: 20.91 MB / 0.5261 GB Notification: Performance of SimCode: time 1.353e-06/7.745, allocations: 1.5 kB / 3.745 GB, free: 20.91 MB / 0.5261 GB Notification: Performance of Templates: time 0.04575/7.79, allocations: 39.61 MB / 3.783 GB, free: 18.79 MB / 0.5261 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