Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_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.001455/0.001455, allocations: 186 kB / 16.4 MB, free: 5.746 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.907/1.907, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001166/0.001166, allocations: 100.9 kB / 270.9 MB, free: 8.383 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.5018/0.5018, allocations: 43.54 MB / 362.7 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004705/0.0004705, allocations: 12 kB / 431.4 MB, free: 6.184 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1243, allocations: 58.85 MB / 490.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.541/8.665, allocations: 2.761 GB / 3.239 GB, free: 51.46 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003164/8.666, allocations: 89.69 kB / 3.239 GB, free: 51.41 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 2.089/10.75, allocations: 402.5 MB / 3.633 GB, free: 37.85 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.304e-06/10.75, allocations: 0 / 3.633 GB, free: 37.85 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.407e-05/10.75, allocations: 13.62 kB / 3.633 GB, free: 37.85 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.006858/10.76, allocations: 1.59 MB / 3.634 GB, free: 36.76 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/10.76, allocations: 6.406 kB / 3.634 GB, free: 36.76 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003413/10.76, allocations: 301 kB / 3.634 GB, free: 36.64 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001252/10.77, allocations: 457 kB / 3.635 GB, free: 36.18 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.645e-05/10.77, allocations: 29 kB / 3.635 GB, free: 36.14 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.632e-05/10.77, allocations: 40 kB / 3.635 GB, free: 36.11 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0025/10.77, allocations: 0.6973 MB / 3.636 GB, free: 35.37 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.313e-05/10.77, allocations: 4.281 kB / 3.636 GB, free: 35.37 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.779e-05/10.77, allocations: 31.89 kB / 3.636 GB, free: 35.34 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/10.77, allocations: 8 kB / 3.636 GB, free: 35.33 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002548/10.77, allocations: 0.6111 MB / 3.636 GB, free: 34.72 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.004945/10.78, allocations: 2.973 MB / 3.639 GB, free: 31.57 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002269/10.78, allocations: 0.4922 MB / 3.64 GB, free: 31.08 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5594/11.34, allocations: 55.54 MB / 3.694 GB, free: 58.4 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.686e-05/11.34, allocations: 36.84 kB / 3.694 GB, free: 58.36 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=30): time 3.706e-06/11.34, allocations: 0 / 3.694 GB, free: 58.36 MB / 0.5105 GB Notification: Performance of matching and sorting (n=30): time 0.004981/11.34, allocations: 0.9945 MB / 3.695 GB, free: 58.22 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.45e-05/11.34, allocations: 109.4 kB / 3.695 GB, free: 58.1 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006428/11.34, allocations: 363.4 kB / 3.695 GB, free: 58 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.171e-05/11.34, allocations: 29.58 kB / 3.695 GB, free: 57.97 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001704/11.34, allocations: 292.2 kB / 3.696 GB, free: 57.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/11.34, allocations: 95.48 kB / 3.696 GB, free: 57.75 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.415e-05/11.34, allocations: 6.812 kB / 3.696 GB, free: 57.75 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.867e-05/11.34, allocations: 334.2 kB / 3.696 GB, free: 57.44 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000607/11.35, allocations: 147.9 kB / 3.696 GB, free: 57.44 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006799/11.35, allocations: 272.6 kB / 3.696 GB, free: 57.3 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000659/11.35, allocations: 167.3 kB / 3.697 GB, free: 57.3 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/11.35, allocations: 6.516 kB / 3.697 GB, free: 57.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001753/11.35, allocations: 478 kB / 3.697 GB, free: 57.25 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002941/11.35, allocations: 1.312 MB / 3.698 GB, free: 55.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/11.35, allocations: 6.922 kB / 3.698 GB, free: 55.89 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004752/11.35, allocations: 337.5 kB / 3.699 GB, free: 55.89 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007095/11.35, allocations: 97.56 kB / 3.699 GB, free: 55.89 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006579/11.35, allocations: 0.5941 MB / 3.699 GB, free: 55.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007748/11.36, allocations: 78.05 kB / 3.699 GB, free: 55.36 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.718e-05/11.36, allocations: 18 kB / 3.699 GB, free: 55.36 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/11.36, allocations: 3.719 kB / 3.699 GB, free: 55.36 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001565/11.36, allocations: 420.7 kB / 3.7 GB, free: 55.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/11.36, allocations: 3.719 kB / 3.7 GB, free: 55.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/11.36, allocations: 6.625 kB / 3.7 GB, free: 55.36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007245/11.36, allocations: 105.4 kB / 3.7 GB, free: 55.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/11.36, allocations: 9.328 kB / 3.7 GB, free: 55.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005205/11.36, allocations: 55.19 kB / 3.7 GB, free: 55.34 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.083e-05/11.36, allocations: 21.23 kB / 3.7 GB, free: 55.34 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.0004154/11.36, allocations: 256.4 kB / 3.7 GB, free: 55.16 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001761/11.36, allocations: 45.89 kB / 3.7 GB, free: 55.13 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003931/11.36, allocations: 2.037 MB / 3.702 GB, free: 54.94 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.566e-05/11.36, allocations: 25.11 kB / 3.702 GB, free: 54.94 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.928e-06/11.36, allocations: 0.7969 kB / 3.702 GB, free: 54.94 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/11.36, allocations: 3.328 kB / 3.702 GB, free: 54.94 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001603/11.37, allocations: 1.014 MB / 3.703 GB, free: 54.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/11.37, allocations: 3.062 kB / 3.703 GB, free: 54.72 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005886/11.37, allocations: 80.16 kB / 3.703 GB, free: 54.72 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002437/11.37, allocations: 0.6342 MB / 3.704 GB, free: 54.68 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-05/11.37, allocations: 13.48 kB / 3.704 GB, free: 54.67 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009924/11.37, allocations: 1.007 MB / 3.705 GB, free: 54.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/11.37, allocations: 0 / 3.705 GB, free: 54.15 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00239/11.37, allocations: 1.333 MB / 3.706 GB, free: 53.89 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004866/11.37, allocations: 263.3 kB / 3.707 GB, free: 53.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000116/11.37, allocations: 6.469 kB / 3.707 GB, free: 53.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000566/11.37, allocations: 48.3 kB / 3.707 GB, free: 53.74 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/11.37, allocations: 37.94 kB / 3.707 GB, free: 53.74 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.64e-05/11.37, allocations: 8.906 kB / 3.707 GB, free: 53.74 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0006563/11.37, allocations: 396.5 kB / 3.707 GB, free: 53.65 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.91e-07/11.37, allocations: 0 / 3.707 GB, free: 53.65 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005936/11.38, allocations: 1.199 MB / 3.708 GB, free: 53.65 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.01018/11.39, allocations: 1.6 MB / 3.71 GB, free: 53.54 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002728/11.39, allocations: 0.8126 MB / 3.711 GB, free: 53.52 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/11.39, allocations: 3.688 kB / 3.711 GB, free: 53.52 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001011/11.39, allocations: 0.4886 MB / 3.711 GB, free: 53.52 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002391/11.4, allocations: 279.7 kB / 3.711 GB, free: 53.51 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003308/11.4, allocations: 1.998 MB / 3.713 GB, free: 52.59 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004841/11.4, allocations: 1.002 MB / 3.714 GB, free: 51.89 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002309/11.4, allocations: 49.06 kB / 3.714 GB, free: 51.89 MB / 0.5105 GB Notification: Performance of SimCode: time 9.32e-07/11.4, allocations: 0 / 3.714 GB, free: 51.89 MB / 0.5105 GB Notification: Performance of Templates: time 0.07533/11.48, allocations: 32.47 MB / 3.746 GB, free: 49.68 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches