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.001237/0.001237, allocations: 183.8 kB / 13.19 MB, free: 2.129 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.324/1.324, allocations: 205.2 MB / 218.9 MB, free: 9.203 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.0008226/0.0008226, allocations: 90.59 kB / 267.1 MB, free: 9.273 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.3346/0.3346, allocations: 43.46 MB / 358.6 MB, free: 52.34 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.134e-05/3.136e-05, allocations: 8 kB / 425.3 MB, free: 8.891 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1125, allocations: 58.85 MB / 484.2 MB, free: 13.94 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.499/5.611, allocations: 2.761 GB / 3.233 GB, free: 134.8 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/5.612, allocations: 89.95 kB / 3.233 GB, free: 134.7 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.213/6.825, allocations: 401.4 MB / 3.625 GB, free: 58.5 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.675e-06/6.825, allocations: 3.594 kB / 3.625 GB, free: 58.5 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.081e-05/6.825, allocations: 13.31 kB / 3.625 GB, free: 58.5 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.005017/6.83, allocations: 1.537 MB / 3.627 GB, free: 57.75 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/6.83, allocations: 11.5 kB / 3.627 GB, free: 57.75 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002049/6.832, allocations: 291.5 kB / 3.627 GB, free: 57.72 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006661/6.833, allocations: 453.2 kB / 3.628 GB, free: 57.49 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/6.833, allocations: 32.44 kB / 3.628 GB, free: 57.49 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.048e-05/6.833, allocations: 42.16 kB / 3.628 GB, free: 57.49 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001288/6.834, allocations: 0.7007 MB / 3.628 GB, free: 57.34 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/6.834, allocations: 0.6562 kB / 3.628 GB, free: 57.34 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.687e-05/6.835, allocations: 22.55 kB / 3.628 GB, free: 57.33 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/6.835, allocations: 9.531 kB / 3.628 GB, free: 57.33 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001124/6.836, allocations: 0.5667 MB / 3.629 GB, free: 57.33 MB / 0.4948 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.002688/6.838, allocations: 2.991 MB / 3.632 GB, free: 55.39 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/6.839, allocations: 476.5 kB / 3.632 GB, free: 55.37 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002047/6.84, allocations: 152.2 kB / 3.632 GB, free: 55.36 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08882/6.928, allocations: 55.74 MB / 3.687 GB, free: 20.82 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.881e-05/6.929, allocations: 35.53 kB / 3.687 GB, free: 20.79 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=30): time 2.715e-06/6.929, allocations: 0 / 3.687 GB, free: 20.79 MB / 0.4948 GB Notification: Performance of matching and sorting (n=30): time 0.002162/6.931, allocations: 0.7303 MB / 3.688 GB, free: 20.71 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/6.931, allocations: 106.8 kB / 3.688 GB, free: 20.59 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004082/6.931, allocations: 354.5 kB / 3.688 GB, free: 20.47 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.36e-05/6.931, allocations: 37.05 kB / 3.688 GB, free: 20.43 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/6.931, allocations: 255 kB / 3.688 GB, free: 20.3 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 6.012e-05/6.931, allocations: 102 kB / 3.688 GB, free: 20.23 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.719e-05/6.931, allocations: 3.938 kB / 3.688 GB, free: 20.23 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001088/6.932, allocations: 356.7 kB / 3.689 GB, free: 19.92 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000165/6.932, allocations: 115.5 kB / 3.689 GB, free: 19.91 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002429/6.932, allocations: 229.1 kB / 3.689 GB, free: 19.77 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000209/6.932, allocations: 139.5 kB / 3.689 GB, free: 19.76 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/6.932, allocations: 3.906 kB / 3.689 GB, free: 19.76 MB / 0.4948 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0006052/6.933, allocations: 434.6 kB / 3.69 GB, free: 19.69 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002577/6.933, allocations: 1.311 MB / 3.691 GB, free: 18.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/6.933, allocations: 6.438 kB / 3.691 GB, free: 18.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002499/6.936, allocations: 339.6 kB / 3.691 GB, free: 18.29 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003242/6.936, allocations: 91.28 kB / 3.691 GB, free: 18.29 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003788/6.936, allocations: 0.5962 MB / 3.692 GB, free: 17.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003996/6.937, allocations: 70.22 kB / 3.692 GB, free: 17.75 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.294e-05/6.937, allocations: 20.78 kB / 3.692 GB, free: 17.75 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.056e-06/6.937, allocations: 2.156 kB / 3.692 GB, free: 17.75 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004617/6.937, allocations: 340.7 kB / 3.692 GB, free: 17.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.376e-06/6.937, allocations: 0 / 3.692 GB, free: 17.74 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.272e-06/6.937, allocations: 7.719 kB / 3.692 GB, free: 17.74 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003545/6.938, allocations: 110.4 kB / 3.693 GB, free: 17.74 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/6.938, allocations: 7.969 kB / 3.693 GB, free: 17.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002813/6.938, allocations: 66.59 kB / 3.693 GB, free: 17.71 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.834e-05/6.938, allocations: 23.67 kB / 3.693 GB, free: 17.71 MB / 0.4948 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 9.316e-05/6.938, allocations: 129 kB / 3.693 GB, free: 17.6 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.686e-05/6.938, allocations: 42.25 kB / 3.693 GB, free: 17.58 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001754/6.94, allocations: 2.006 MB / 3.695 GB, free: 16.86 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.372e-05/6.94, allocations: 25.16 kB / 3.695 GB, free: 16.85 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/6.94, allocations: 0 / 3.695 GB, free: 16.85 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/6.94, allocations: 7.438 kB / 3.695 GB, free: 16.85 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000797/6.941, allocations: 1.012 MB / 3.696 GB, free: 16.28 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/6.941, allocations: 0 / 3.696 GB, free: 16.28 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002754/6.941, allocations: 85.59 kB / 3.696 GB, free: 16.27 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001305/6.942, allocations: 0.7525 MB / 3.697 GB, free: 16.12 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.285e-05/6.942, allocations: 7.656 kB / 3.697 GB, free: 16.11 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0012/6.944, allocations: 1.011 MB / 3.698 GB, free: 31.37 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/6.944, allocations: 7.312 kB / 3.698 GB, free: 31.37 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/6.945, allocations: 1.257 MB / 3.699 GB, free: 30.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002501/6.945, allocations: 255 kB / 3.699 GB, free: 30.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.114e-05/6.945, allocations: 4 kB / 3.699 GB, free: 30.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003/6.945, allocations: 41.89 kB / 3.699 GB, free: 30.48 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.687e-05/6.945, allocations: 34.44 kB / 3.699 GB, free: 30.48 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.223e-05/6.946, allocations: 15 kB / 3.699 GB, free: 30.47 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0003694/6.946, allocations: 382.2 kB / 3.699 GB, free: 30.29 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/6.946, allocations: 0 / 3.699 GB, free: 30.29 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004856/6.951, allocations: 1.205 MB / 3.701 GB, free: 30.05 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 () * 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.007133/6.958, allocations: 1.617 MB / 3.702 GB, free: 29.65 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001702/6.96, allocations: 0.7194 MB / 3.703 GB, free: 29.38 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/6.96, allocations: 0 / 3.703 GB, free: 29.38 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0004804/6.96, allocations: 461.4 kB / 3.703 GB, free: 29.16 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001436/6.962, allocations: 271 kB / 3.704 GB, free: 29.09 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001502/6.963, allocations: 1.154 MB / 3.705 GB, free: 28.56 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004662/6.964, allocations: 1.004 MB / 3.706 GB, free: 27.85 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0008594/6.964, allocations: 0.577 MB / 3.706 GB, free: 27.82 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.182e-05/6.965, allocations: 37.72 kB / 3.706 GB, free: 27.81 MB / 0.5105 GB Notification: Performance of SimCode: time 1.042e-06/6.965, allocations: 0 / 3.706 GB, free: 27.81 MB / 0.5105 GB Notification: Performance of Templates: time 0.0494/7.014, allocations: 39.58 MB / 3.745 GB, free: 1.684 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