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.001584/0.001584, allocations: 178.3 kB / 18.09 MB, free: 3.746 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.384/1.384, allocations: 223.3 MB / 242.1 MB, free: 11.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009905/0.0009906, allocations: 89.8 kB / 293.3 MB, free: 10.77 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.402/0.402, allocations: 44.15 MB / 388.5 MB, free: 38.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005241/0.0005244, allocations: 12 kB / 461.1 MB, free: 1.312 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4078/0.4083, allocations: 61.87 MB / 0.5107 GB, free: 38.24 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.491/6.899, allocations: 2.766 GB / 3.277 GB, free: 92.84 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003051/6.899, allocations: 87.94 kB / 3.277 GB, free: 92.75 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.415/8.314, allocations: 390.5 MB / 3.658 GB, free: 61.27 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.604e-06/8.314, allocations: 2.5 kB / 3.658 GB, free: 61.27 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.856e-05/8.314, allocations: 14.94 kB / 3.658 GB, free: 61.27 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.006715/8.321, allocations: 1.592 MB / 3.66 GB, free: 60.42 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/8.321, allocations: 11.31 kB / 3.66 GB, free: 60.41 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002332/8.323, allocations: 295.1 kB / 3.66 GB, free: 60.37 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009733/8.324, allocations: 461.7 kB / 3.661 GB, free: 60.04 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.879e-05/8.324, allocations: 39.28 kB / 3.661 GB, free: 60.02 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.466e-05/8.325, allocations: 36.84 kB / 3.661 GB, free: 60.01 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001708/8.326, allocations: 0.703 MB / 3.661 GB, free: 59.69 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/8.326, allocations: 3.938 kB / 3.661 GB, free: 59.69 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.213e-05/8.326, allocations: 19.78 kB / 3.661 GB, free: 59.68 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/8.326, allocations: 7.562 kB / 3.661 GB, free: 59.68 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001554/8.328, allocations: 0.6208 MB / 3.662 GB, free: 59.52 MB / 0.5261 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.003848/8.332, allocations: 2.982 MB / 3.665 GB, free: 57.18 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00127/8.333, allocations: 490.4 kB / 3.665 GB, free: 57.05 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004116/8.333, allocations: 189 kB / 3.666 GB, free: 56.99 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09239/8.426, allocations: 55.55 MB / 3.72 GB, free: 37.26 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.931e-05/8.426, allocations: 45.38 kB / 3.72 GB, free: 37.21 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=30): time 2.254e-06/8.426, allocations: 4 kB / 3.72 GB, free: 37.21 MB / 0.5417 GB Notification: Performance of matching and sorting (n=30): time 0.00326/8.429, allocations: 0.9943 MB / 3.721 GB, free: 36.86 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.294e-05/8.429, allocations: 106.5 kB / 3.721 GB, free: 36.74 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005282/8.43, allocations: 413.2 kB / 3.721 GB, free: 36.54 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.391e-05/8.43, allocations: 29.7 kB / 3.721 GB, free: 36.5 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001783/8.43, allocations: 256.6 kB / 3.722 GB, free: 36.29 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 8.686e-05/8.43, allocations: 100 kB / 3.722 GB, free: 36.21 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.702e-05/8.43, allocations: 8 kB / 3.722 GB, free: 36.21 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001447/8.43, allocations: 349.7 kB / 3.722 GB, free: 35.88 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003337/8.431, allocations: 148.5 kB / 3.722 GB, free: 35.84 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003634/8.431, allocations: 274.1 kB / 3.723 GB, free: 35.64 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006743/8.432, allocations: 410.3 kB / 3.723 GB, free: 35.4 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.85e-06/8.432, allocations: 3.938 kB / 3.723 GB, free: 35.39 MB / 0.5417 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001004/8.433, allocations: 0.5039 MB / 3.723 GB, free: 35.18 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001056/8.433, allocations: 185.5 kB / 3.724 GB, free: 34.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/8.433, allocations: 5.781 kB / 3.724 GB, free: 34.96 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002274/8.435, allocations: 335.5 kB / 3.724 GB, free: 34.93 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003237/8.436, allocations: 92.77 kB / 3.724 GB, free: 34.92 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005182/8.436, allocations: 0.6084 MB / 3.725 GB, free: 34.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004872/8.437, allocations: 70.41 kB / 3.725 GB, free: 34.32 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.786e-05/8.437, allocations: 23.27 kB / 3.725 GB, free: 34.32 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.606e-06/8.437, allocations: 3.938 kB / 3.725 GB, free: 34.32 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007842/8.437, allocations: 411.1 kB / 3.725 GB, free: 34.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/8.438, allocations: 3.906 kB / 3.725 GB, free: 34.18 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.272e-06/8.438, allocations: 3.906 kB / 3.725 GB, free: 34.18 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003424/8.438, allocations: 108.1 kB / 3.725 GB, free: 34.17 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/8.438, allocations: 12.06 kB / 3.725 GB, free: 34.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003904/8.438, allocations: 66.56 kB / 3.725 GB, free: 34.13 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.92e-05/8.438, allocations: 19.06 kB / 3.725 GB, free: 34.13 MB / 0.5417 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 () * Number of clocked 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.0003425/8.439, allocations: 263 kB / 3.726 GB, free: 33.89 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/8.439, allocations: 44.19 kB / 3.726 GB, free: 33.88 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002241/8.441, allocations: 2.03 MB / 3.728 GB, free: 32.93 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.225e-05/8.441, allocations: 26.94 kB / 3.728 GB, free: 32.92 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/8.441, allocations: 7.062 kB / 3.728 GB, free: 32.92 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/8.441, allocations: 0 / 3.728 GB, free: 32.92 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/8.442, allocations: 1.019 MB / 3.729 GB, free: 32.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/8.442, allocations: 0 / 3.729 GB, free: 32.35 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002703/8.442, allocations: 74.67 kB / 3.729 GB, free: 32.34 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001237/8.444, allocations: 0.6368 MB / 3.729 GB, free: 32.22 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.983e-05/8.444, allocations: 11.88 kB / 3.729 GB, free: 32.21 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006896/8.444, allocations: 1.012 MB / 3.73 GB, free: 31.46 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/8.444, allocations: 0 / 3.73 GB, free: 31.46 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/8.446, allocations: 1.331 MB / 3.732 GB, free: 30.78 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003067/8.446, allocations: 269.4 kB / 3.732 GB, free: 30.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.424e-05/8.446, allocations: 4 kB / 3.732 GB, free: 30.56 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003138/8.447, allocations: 37.23 kB / 3.732 GB, free: 30.55 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.67e-05/8.447, allocations: 34.2 kB / 3.732 GB, free: 30.55 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.337e-05/8.447, allocations: 15.5 kB / 3.732 GB, free: 30.55 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0004004/8.447, allocations: 391.5 kB / 3.732 GB, free: 30.37 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.61e-07/8.447, allocations: 0 / 3.732 GB, free: 30.37 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00498/8.452, allocations: 1.212 MB / 3.733 GB, free: 30.11 MB / 0.5417 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 () * Number of clocked 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.007826/8.46, allocations: 1.603 MB / 3.735 GB, free: 29.71 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001689/8.462, allocations: 0.8264 MB / 3.736 GB, free: 29.43 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/8.462, allocations: 0 / 3.736 GB, free: 29.43 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0006143/8.462, allocations: 0.4886 MB / 3.736 GB, free: 29.21 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001401/8.464, allocations: 283.6 kB / 3.737 GB, free: 29.14 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002386/8.466, allocations: 1.965 MB / 3.739 GB, free: 27.99 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005311/8.467, allocations: 0.9767 MB / 3.739 GB, free: 27.28 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0008056/8.467, allocations: 0.5618 MB / 3.74 GB, free: 27.25 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/8.468, allocations: 50.5 kB / 3.74 GB, free: 27.24 MB / 0.5417 GB Notification: Performance of SimCode: time 3.1e-07/8.468, allocations: 0 / 3.74 GB, free: 27.24 MB / 0.5417 GB Notification: Performance of Templates: time 0.05695/8.525, allocations: 39.35 MB / 3.778 GB, free: 476 kB / 0.5417 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/jenkins1/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