Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001262/0.001262, allocations: 175.8 kB / 16.76 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.647/1.647, allocations: 205.4 MB / 222.9 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008254/0.0008255, allocations: 84.98 kB / 271.3 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3878/0.3878, allocations: 43.55 MB / 363.1 MB, free: 52.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003865/0.0003867, allocations: 12 kB / 432.6 MB, free: 5.195 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1308, allocations: 58.85 MB / 491.5 MB, free: 10.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.011/7.142, allocations: 2.761 GB / 3.241 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003479/7.142, allocations: 88.36 kB / 3.241 GB, free: 113.1 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.441/8.583, allocations: 386.2 MB / 3.618 GB, free: 51.98 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.727e-06/8.583, allocations: 0 / 3.618 GB, free: 51.98 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.437e-05/8.583, allocations: 14.97 kB / 3.618 GB, free: 51.97 MB / 0.4948 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.006676/8.59, allocations: 1.584 MB / 3.62 GB, free: 51.12 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/8.59, allocations: 7.938 kB / 3.62 GB, free: 51.12 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002323/8.592, allocations: 296 kB / 3.62 GB, free: 51.08 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009176/8.593, allocations: 472.7 kB / 3.62 GB, free: 50.74 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.272e-05/8.593, allocations: 36.59 kB / 3.62 GB, free: 50.73 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.47e-05/8.594, allocations: 36.5 kB / 3.62 GB, free: 50.71 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001763/8.595, allocations: 0.7043 MB / 3.621 GB, free: 50.39 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/8.595, allocations: 7.875 kB / 3.621 GB, free: 50.39 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.793e-05/8.595, allocations: 16.62 kB / 3.621 GB, free: 50.38 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.655e-05/8.595, allocations: 10.41 kB / 3.621 GB, free: 50.38 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001519/8.597, allocations: 0.6095 MB / 3.622 GB, free: 50.23 MB / 0.4948 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.003378/8.6, allocations: 2.985 MB / 3.625 GB, free: 47.89 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/8.602, allocations: 490.2 kB / 3.625 GB, free: 47.77 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003476/8.602, allocations: 193.5 kB / 3.625 GB, free: 47.7 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09118/8.693, allocations: 55.54 MB / 3.68 GB, free: 28.11 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.702e-05/8.693, allocations: 48.12 kB / 3.68 GB, free: 28.06 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=30): time 3.837e-06/8.693, allocations: 0 / 3.68 GB, free: 28.06 MB / 0.5105 GB Notification: Performance of matching and sorting (n=30): time 0.003395/8.697, allocations: 0.997 MB / 3.681 GB, free: 27.71 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.293e-05/8.697, allocations: 106.7 kB / 3.681 GB, free: 27.59 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005889/8.697, allocations: 410.7 kB / 3.681 GB, free: 27.39 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.562e-05/8.697, allocations: 29.7 kB / 3.681 GB, free: 27.36 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001816/8.698, allocations: 247.2 kB / 3.681 GB, free: 27.15 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 9.475e-05/8.698, allocations: 107 kB / 3.681 GB, free: 27.07 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.758e-05/8.698, allocations: 4 kB / 3.681 GB, free: 27.07 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001543/8.698, allocations: 356.5 kB / 3.682 GB, free: 26.73 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003466/8.698, allocations: 150.3 kB / 3.682 GB, free: 26.69 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003667/8.699, allocations: 273.9 kB / 3.682 GB, free: 26.49 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007051/8.699, allocations: 403.4 kB / 3.683 GB, free: 26.25 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/8.699, allocations: 15.78 kB / 3.683 GB, free: 26.24 MB / 0.5105 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001026/8.7, allocations: 0.4989 MB / 3.683 GB, free: 26.04 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000121/8.701, allocations: 186.1 kB / 3.683 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/8.701, allocations: 6.203 kB / 3.683 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00228/8.703, allocations: 334.2 kB / 3.684 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003221/8.703, allocations: 94.02 kB / 3.684 GB, free: 25.77 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004899/8.704, allocations: 0.6133 MB / 3.684 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004636/8.704, allocations: 63.48 kB / 3.684 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.854e-05/8.704, allocations: 19.88 kB / 3.684 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.916e-06/8.704, allocations: 3.875 kB / 3.684 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008104/8.705, allocations: 412.5 kB / 3.685 GB, free: 25.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/8.705, allocations: 7.562 kB / 3.685 GB, free: 25.03 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.432e-06/8.705, allocations: 6.344 kB / 3.685 GB, free: 25.03 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003437/8.705, allocations: 105.1 kB / 3.685 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/8.705, allocations: 4.031 kB / 3.685 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004065/8.706, allocations: 77.75 kB / 3.685 GB, free: 24.99 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.722e-05/8.706, allocations: 22.39 kB / 3.685 GB, free: 24.98 MB / 0.5105 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.0003335/8.706, allocations: 248 kB / 3.685 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/8.706, allocations: 43.09 kB / 3.685 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002259/8.709, allocations: 2.038 MB / 3.687 GB, free: 23.79 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.317e-05/8.709, allocations: 31.19 kB / 3.687 GB, free: 23.78 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.106e-06/8.709, allocations: 3.938 kB / 3.687 GB, free: 23.78 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.782e-06/8.709, allocations: 3.797 kB / 3.687 GB, free: 23.78 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001086/8.71, allocations: 1.013 MB / 3.688 GB, free: 23.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/8.71, allocations: 0 / 3.688 GB, free: 23.21 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002668/8.71, allocations: 76.09 kB / 3.688 GB, free: 23.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001296/8.711, allocations: 0.6412 MB / 3.689 GB, free: 23.07 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.977e-05/8.711, allocations: 11.64 kB / 3.689 GB, free: 23.06 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007436/8.712, allocations: 1.007 MB / 3.69 GB, free: 22.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/8.712, allocations: 0 / 3.69 GB, free: 22.32 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001491/8.714, allocations: 1.336 MB / 3.691 GB, free: 21.63 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003576/8.714, allocations: 261.7 kB / 3.692 GB, free: 21.42 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001014/8.714, allocations: 8.938 kB / 3.692 GB, free: 21.42 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003606/8.715, allocations: 37 kB / 3.692 GB, free: 21.41 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.263e-05/8.715, allocations: 34.23 kB / 3.692 GB, free: 21.41 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.633e-05/8.715, allocations: 10.72 kB / 3.692 GB, free: 21.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0004787/8.715, allocations: 394.2 kB / 3.692 GB, free: 21.22 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/8.715, allocations: 0 / 3.692 GB, free: 21.22 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005807/8.721, allocations: 1.204 MB / 3.693 GB, free: 20.98 MB / 0.5105 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.01019/8.731, allocations: 1.612 MB / 3.695 GB, free: 20.57 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002201/8.733, allocations: 0.8205 MB / 3.696 GB, free: 20.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/8.733, allocations: 0 / 3.696 GB, free: 20.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0008024/8.734, allocations: 0.489 MB / 3.696 GB, free: 20.09 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001643/8.736, allocations: 278.9 kB / 3.696 GB, free: 20.02 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002599/8.739, allocations: 1.962 MB / 3.698 GB, free: 18.87 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000564/8.739, allocations: 0.9806 MB / 3.699 GB, free: 18.15 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0008794/8.74, allocations: 0.5623 MB / 3.7 GB, free: 18.12 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/8.74, allocations: 52.62 kB / 3.7 GB, free: 18.1 MB / 0.5105 GB Notification: Performance of SimCode: time 4.31e-07/8.74, allocations: 0 / 3.7 GB, free: 18.1 MB / 0.5105 GB Notification: Performance of Templates: time 0.06557/8.806, allocations: 39.33 MB / 3.738 GB, free: 8.059 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Sensors/TestFlowRate/TestFlowRate.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches