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.001432/0.001432, allocations: 183.9 kB / 15.76 MB, free: 6.363 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.745/1.745, allocations: 205.4 MB / 221.9 MB, free: 13.85 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.001107/0.001107, allocations: 90.8 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2539/0.2539, allocations: 43.55 MB / 362 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003458/0.0003458, allocations: 8 kB / 431.4 MB, free: 19.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1527, allocations: 58.86 MB / 490.3 MB, free: 8.672 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.777/7.93, allocations: 2.761 GB / 3.239 GB, free: 153.6 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003208/7.931, allocations: 93.75 kB / 3.239 GB, free: 153.6 MB / 0.5105 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.674/9.604, allocations: 402.5 MB / 3.633 GB, free: 67.51 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.004e-06/9.605, allocations: 0 / 3.633 GB, free: 67.51 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.946e-05/9.605, allocations: 14.22 kB / 3.633 GB, free: 67.51 MB / 0.5105 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.007288/9.612, allocations: 1.591 MB / 3.634 GB, free: 66.84 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.227e-05/9.612, allocations: 14.53 kB / 3.634 GB, free: 66.84 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00231/9.614, allocations: 290.7 kB / 3.634 GB, free: 66.81 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/9.615, allocations: 448 kB / 3.635 GB, free: 66.59 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.067e-05/9.615, allocations: 34.19 kB / 3.635 GB, free: 66.59 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/9.616, allocations: 34.91 kB / 3.635 GB, free: 66.59 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001744/9.617, allocations: 0.7002 MB / 3.636 GB, free: 66.43 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.624e-05/9.617, allocations: 6.281 kB / 3.636 GB, free: 66.43 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.188e-05/9.617, allocations: 21.98 kB / 3.636 GB, free: 66.42 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.469e-05/9.617, allocations: 13.28 kB / 3.636 GB, free: 66.42 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001635/9.619, allocations: 0.6116 MB / 3.636 GB, free: 66.42 MB / 0.5105 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.00468/9.624, allocations: 2.974 MB / 3.639 GB, free: 64.5 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001495/9.625, allocations: 492.7 kB / 3.64 GB, free: 64.48 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09744/9.723, allocations: 55.55 MB / 3.694 GB, free: 30.02 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.802e-05/9.723, allocations: 34.38 kB / 3.694 GB, free: 29.98 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=30): time 3.106e-06/9.723, allocations: 0 / 3.694 GB, free: 29.98 MB / 0.5105 GB Notification: Performance of matching and sorting (n=30): time 0.003545/9.726, allocations: 0.9963 MB / 3.695 GB, free: 29.8 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.592e-05/9.727, allocations: 110.3 kB / 3.695 GB, free: 29.68 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006372/9.727, allocations: 356.5 kB / 3.695 GB, free: 29.57 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.252e-05/9.727, allocations: 36.31 kB / 3.695 GB, free: 29.54 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002824/9.728, allocations: 250.3 kB / 3.696 GB, free: 29.42 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001499/9.728, allocations: 100.7 kB / 3.696 GB, free: 29.37 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.287e-05/9.728, allocations: 6.531 kB / 3.696 GB, free: 29.37 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001454/9.728, allocations: 361.8 kB / 3.696 GB, free: 29.05 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003819/9.728, allocations: 144.6 kB / 3.696 GB, free: 29.05 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004332/9.729, allocations: 273.1 kB / 3.696 GB, free: 28.91 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004033/9.729, allocations: 180.7 kB / 3.697 GB, free: 28.89 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/9.729, allocations: 0 / 3.697 GB, free: 28.89 MB / 0.5105 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001155/9.73, allocations: 0.5011 MB / 3.697 GB, free: 28.82 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004491/9.731, allocations: 1.311 MB / 3.698 GB, free: 27.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/9.731, allocations: 7.062 kB / 3.698 GB, free: 27.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002608/9.733, allocations: 340.9 kB / 3.699 GB, free: 27.43 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003516/9.734, allocations: 93.66 kB / 3.699 GB, free: 27.42 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004752/9.734, allocations: 0.6013 MB / 3.699 GB, free: 26.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005261/9.735, allocations: 74.55 kB / 3.699 GB, free: 26.89 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.93e-05/9.735, allocations: 17.56 kB / 3.699 GB, free: 26.89 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/9.735, allocations: 3.469 kB / 3.699 GB, free: 26.89 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000851/9.736, allocations: 410.7 kB / 3.7 GB, free: 26.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/9.736, allocations: 3.938 kB / 3.7 GB, free: 26.88 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.468e-06/9.736, allocations: 7.734 kB / 3.7 GB, free: 26.87 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003723/9.736, allocations: 109.5 kB / 3.7 GB, free: 26.87 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/9.736, allocations: 3.844 kB / 3.7 GB, free: 26.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003413/9.737, allocations: 72.8 kB / 3.7 GB, free: 26.86 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.532e-05/9.737, allocations: 24.14 kB / 3.7 GB, free: 26.86 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.0003216/9.737, allocations: 247.7 kB / 3.7 GB, free: 26.66 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.614e-05/9.737, allocations: 49.05 kB / 3.7 GB, free: 26.64 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002593/9.74, allocations: 2.033 MB / 3.702 GB, free: 26.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.459e-05/9.74, allocations: 29.89 kB / 3.702 GB, free: 26.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/9.74, allocations: 0 / 3.702 GB, free: 26.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/9.74, allocations: 4 kB / 3.702 GB, free: 26.39 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00121/9.741, allocations: 1.011 MB / 3.703 GB, free: 26.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/9.741, allocations: 0 / 3.703 GB, free: 26.14 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002995/9.741, allocations: 79.92 kB / 3.703 GB, free: 26.14 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001461/9.743, allocations: 0.6396 MB / 3.704 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.909e-05/9.743, allocations: 15.22 kB / 3.704 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007567/9.743, allocations: 1.007 MB / 3.705 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/9.744, allocations: 0 / 3.705 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001606/9.745, allocations: 1.333 MB / 3.706 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003459/9.745, allocations: 262.6 kB / 3.707 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.852e-05/9.746, allocations: 14.38 kB / 3.707 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003227/9.746, allocations: 35.86 kB / 3.707 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/9.746, allocations: 32.92 kB / 3.707 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.964e-05/9.746, allocations: 20.72 kB / 3.707 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0004796/9.747, allocations: 388.7 kB / 3.707 GB, free: 25.03 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.613e-06/9.747, allocations: 0 / 3.707 GB, free: 25.03 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008777/9.755, allocations: 1.203 MB / 3.708 GB, free: 24.86 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.01221/9.768, allocations: 1.599 MB / 3.71 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00225/9.77, allocations: 0.8206 MB / 3.711 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.782e-06/9.77, allocations: 0 / 3.711 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0008124/9.771, allocations: 495.1 kB / 3.711 GB, free: 24.45 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001739/9.773, allocations: 271.1 kB / 3.711 GB, free: 24.43 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003378/9.776, allocations: 1.972 MB / 3.713 GB, free: 23.52 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005899/9.777, allocations: 0.9996 MB / 3.714 GB, free: 22.8 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001047/9.778, allocations: 0.5553 MB / 3.715 GB, free: 22.78 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001467/9.778, allocations: 43.8 kB / 3.715 GB, free: 22.77 MB / 0.5105 GB Notification: Performance of SimCode: time 1.473e-06/9.778, allocations: 3.469 kB / 3.715 GB, free: 22.77 MB / 0.5105 GB Notification: Performance of Templates: time 0.05714/9.835, allocations: 37.01 MB / 3.751 GB, free: 18.14 MB / 0.5105 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/jenkins/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