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.001052/0.001052, allocations: 181 kB / 17.06 MB, free: 5.098 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.356/1.356, allocations: 223.2 MB / 241 MB, free: 11.89 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.0008448/0.0008448, allocations: 89.36 kB / 292.1 MB, free: 10.94 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.4177/0.4177, allocations: 44.22 MB / 387.5 MB, free: 39.04 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003481/0.0003481, allocations: 11.98 kB / 459.9 MB, free: 1.773 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4704/0.4708, allocations: 61.89 MB / 0.5096 GB, free: 38.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.232/7.703, allocations: 2.766 GB / 3.275 GB, free: 93.53 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002961/7.703, allocations: 95.91 kB / 3.276 GB, free: 93.44 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.699/9.402, allocations: 406.8 MB / 3.673 GB, free: 59.35 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.555e-06/9.402, allocations: 3.609 kB / 3.673 GB, free: 59.35 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.129e-05/9.402, allocations: 16.05 kB / 3.673 GB, free: 59.35 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.006924/9.409, allocations: 1.584 MB / 3.674 GB, free: 58.46 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/9.409, allocations: 10.09 kB / 3.674 GB, free: 58.46 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002427/9.412, allocations: 302.5 kB / 3.675 GB, free: 58.41 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/9.413, allocations: 456.5 kB / 3.675 GB, free: 58.08 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.855e-05/9.413, allocations: 28.47 kB / 3.675 GB, free: 58.06 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.284e-05/9.413, allocations: 39.41 kB / 3.675 GB, free: 58.05 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001657/9.415, allocations: 0.696 MB / 3.676 GB, free: 57.73 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/9.415, allocations: 3.344 kB / 3.676 GB, free: 57.73 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.116e-05/9.415, allocations: 23.28 kB / 3.676 GB, free: 57.72 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/9.415, allocations: 10.25 kB / 3.676 GB, free: 57.72 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001541/9.416, allocations: 0.6116 MB / 3.677 GB, free: 57.57 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.003962/9.42, allocations: 2.977 MB / 3.679 GB, free: 55.24 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001343/9.422, allocations: 493.3 kB / 3.68 GB, free: 55.11 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09926/9.521, allocations: 55.56 MB / 3.734 GB, free: 35.14 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.276e-05/9.521, allocations: 38.31 kB / 3.734 GB, free: 35.09 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=30): time 4.328e-06/9.521, allocations: 0 / 3.734 GB, free: 35.09 MB / 0.5417 GB Notification: Performance of matching and sorting (n=30): time 0.00374/9.525, allocations: 1.003 MB / 3.735 GB, free: 34.74 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.958e-05/9.525, allocations: 106.6 kB / 3.735 GB, free: 34.61 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006348/9.526, allocations: 358.6 kB / 3.736 GB, free: 34.43 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.283e-05/9.526, allocations: 33.52 kB / 3.736 GB, free: 34.39 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002021/9.526, allocations: 246.4 kB / 3.736 GB, free: 34.19 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/9.526, allocations: 107.4 kB / 3.736 GB, free: 34.11 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.837e-05/9.526, allocations: 4 kB / 3.736 GB, free: 34.11 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001727/9.526, allocations: 356.6 kB / 3.736 GB, free: 33.77 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003616/9.527, allocations: 146.1 kB / 3.736 GB, free: 33.73 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004072/9.527, allocations: 266.8 kB / 3.737 GB, free: 33.54 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004073/9.527, allocations: 168.6 kB / 3.737 GB, free: 33.48 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/9.527, allocations: 3.719 kB / 3.737 GB, free: 33.48 MB / 0.5417 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001251/9.529, allocations: 0.5045 MB / 3.737 GB, free: 33.27 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006462/9.529, allocations: 1.313 MB / 3.739 GB, free: 31.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/9.529, allocations: 0 / 3.739 GB, free: 31.87 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002717/9.532, allocations: 340 kB / 3.739 GB, free: 31.84 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003633/9.533, allocations: 88.5 kB / 3.739 GB, free: 31.83 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005926/9.533, allocations: 0.6114 MB / 3.74 GB, free: 31.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006001/9.534, allocations: 77.95 kB / 3.74 GB, free: 31.22 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.572e-05/9.534, allocations: 23.38 kB / 3.74 GB, free: 31.21 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/9.534, allocations: 7.906 kB / 3.74 GB, free: 31.21 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008975/9.535, allocations: 407.7 kB / 3.74 GB, free: 31.08 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/9.535, allocations: 3.969 kB / 3.74 GB, free: 31.08 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.486e-06/9.535, allocations: 12 kB / 3.74 GB, free: 31.07 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003817/9.535, allocations: 104 kB / 3.74 GB, free: 31.06 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/9.535, allocations: 7.875 kB / 3.74 GB, free: 31.06 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005184/9.536, allocations: 66.53 kB / 3.74 GB, free: 31.04 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.717e-05/9.536, allocations: 17.66 kB / 3.74 GB, free: 31.03 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.0004551/9.536, allocations: 254.2 kB / 3.741 GB, free: 30.8 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001543/9.536, allocations: 41.19 kB / 3.741 GB, free: 30.78 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002735/9.539, allocations: 2.035 MB / 3.743 GB, free: 29.83 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.907e-05/9.539, allocations: 27.61 kB / 3.743 GB, free: 29.82 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.276e-05/9.539, allocations: 3.953 kB / 3.743 GB, free: 29.82 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/9.539, allocations: 3.312 kB / 3.743 GB, free: 29.82 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001403/9.541, allocations: 1.007 MB / 3.744 GB, free: 28.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.356e-06/9.541, allocations: 3.5 kB / 3.744 GB, free: 28.96 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002865/9.541, allocations: 75.19 kB / 3.744 GB, free: 28.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001484/9.542, allocations: 0.6397 MB / 3.744 GB, free: 28.37 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.492e-05/9.542, allocations: 8 kB / 3.744 GB, free: 28.36 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009005/9.543, allocations: 1.01 MB / 3.745 GB, free: 27.38 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/9.543, allocations: 4.094 kB / 3.745 GB, free: 27.37 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00173/9.545, allocations: 1.33 MB / 3.747 GB, free: 26.14 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004538/9.546, allocations: 275.2 kB / 3.747 GB, free: 25.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001232/9.546, allocations: 4 kB / 3.747 GB, free: 25.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004164/9.546, allocations: 46.17 kB / 3.747 GB, free: 25.84 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/9.546, allocations: 34.39 kB / 3.747 GB, free: 25.82 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.01e-05/9.546, allocations: 11.61 kB / 3.747 GB, free: 25.82 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0005328/9.547, allocations: 391.1 kB / 3.747 GB, free: 25.48 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/9.547, allocations: 0 / 3.747 GB, free: 25.48 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007763/9.555, allocations: 1.198 MB / 3.749 GB, free: 24.31 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.01116/9.566, allocations: 1.619 MB / 3.75 GB, free: 23.05 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002417/9.568, allocations: 0.8143 MB / 3.751 GB, free: 22.34 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/9.568, allocations: 0.8125 kB / 3.751 GB, free: 22.34 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000847/9.569, allocations: 495.6 kB / 3.751 GB, free: 21.9 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001929/9.571, allocations: 270 kB / 3.752 GB, free: 21.71 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003732/9.575, allocations: 1.973 MB / 3.754 GB, free: 19.89 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007067/9.576, allocations: 1.001 MB / 3.755 GB, free: 18.98 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001102/9.577, allocations: 0.5562 MB / 3.755 GB, free: 18.65 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/9.577, allocations: 50.86 kB / 3.755 GB, free: 18.6 MB / 0.5417 GB Notification: Performance of SimCode: time 8.82e-07/9.577, allocations: 0 / 3.755 GB, free: 18.6 MB / 0.5417 GB Notification: Performance of Templates: time 0.393/9.97, allocations: 37.03 MB / 3.791 GB, free: 77.41 MB / 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/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