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.00211/0.002109, allocations: 182.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.172/2.172, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001056/0.001056, allocations: 74.78 kB / 267.5 MB, free: 14.05 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.2701/0.2701, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.543e-05/3.571e-05, allocations: 4 kB / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1187, allocations: 58.85 MB / 484.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.947/8.065, allocations: 2.761 GB / 3.233 GB, free: 82.25 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002877/8.066, allocations: 89.89 kB / 3.233 GB, free: 82.22 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 2.199/10.26, allocations: 401.4 MB / 3.625 GB, free: 72.44 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.963e-06/10.26, allocations: 0 / 3.625 GB, free: 72.44 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.634e-05/10.26, allocations: 19.84 kB / 3.625 GB, free: 72.43 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.006421/10.27, allocations: 1.533 MB / 3.627 GB, free: 71.58 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/10.27, allocations: 11.47 kB / 3.627 GB, free: 71.58 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003249/10.27, allocations: 292.3 kB / 3.627 GB, free: 71.54 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001278/10.28, allocations: 453.6 kB / 3.628 GB, free: 71.21 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.797e-05/10.28, allocations: 36.02 kB / 3.628 GB, free: 71.19 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.361e-05/10.28, allocations: 36.97 kB / 3.628 GB, free: 71.18 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002224/10.28, allocations: 0.6991 MB / 3.628 GB, free: 70.85 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.386e-05/10.28, allocations: 352 / 3.628 GB, free: 70.85 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.808e-05/10.28, allocations: 27.77 kB / 3.628 GB, free: 70.83 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/10.28, allocations: 7.281 kB / 3.628 GB, free: 70.83 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002038/10.28, allocations: 0.5752 MB / 3.629 GB, free: 70.66 MB / 0.5105 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.005285/10.29, allocations: 2.977 MB / 3.632 GB, free: 68.34 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001853/10.29, allocations: 480 kB / 3.632 GB, free: 68.19 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000377/10.29, allocations: 153.7 kB / 3.632 GB, free: 68.12 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1681/10.46, allocations: 55.75 MB / 3.687 GB, free: 27.49 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.06e-05/10.46, allocations: 38.31 kB / 3.687 GB, free: 27.45 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=30): time 3.376e-06/10.46, allocations: 0 / 3.687 GB, free: 27.45 MB / 0.5105 GB Notification: Performance of matching and sorting (n=30): time 0.003191/10.46, allocations: 0.7218 MB / 3.688 GB, free: 26.87 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.65e-05/10.46, allocations: 118.4 kB / 3.688 GB, free: 26.73 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005633/10.46, allocations: 351.8 kB / 3.688 GB, free: 26.41 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.147e-05/10.46, allocations: 29.7 kB / 3.688 GB, free: 26.37 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/10.46, allocations: 289.6 kB / 3.688 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/10.46, allocations: 100.4 kB / 3.688 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.102e-05/10.46, allocations: 12 kB / 3.689 GB, free: 26 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.907e-05/10.46, allocations: 326.5 kB / 3.689 GB, free: 25.67 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002866/10.46, allocations: 109.5 kB / 3.689 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003469/10.46, allocations: 237.7 kB / 3.689 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003375/10.46, allocations: 135.7 kB / 3.689 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.86e-06/10.46, allocations: 0 / 3.689 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001051/10.46, allocations: 402.8 kB / 3.69 GB, free: 24.82 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002605/10.46, allocations: 1.319 MB / 3.691 GB, free: 23.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/10.46, allocations: 4 kB / 3.691 GB, free: 23.39 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004791/10.47, allocations: 337.1 kB / 3.691 GB, free: 23.16 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007479/10.47, allocations: 95.06 kB / 3.691 GB, free: 23.08 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007073/10.47, allocations: 0.6023 MB / 3.692 GB, free: 22.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008177/10.47, allocations: 67.31 kB / 3.692 GB, free: 22.41 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.828e-05/10.47, allocations: 16 kB / 3.692 GB, free: 22.39 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/10.47, allocations: 8.062 kB / 3.692 GB, free: 22.38 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008545/10.47, allocations: 336.2 kB / 3.692 GB, free: 22.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/10.47, allocations: 7.953 kB / 3.692 GB, free: 22.08 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/10.47, allocations: 4 kB / 3.692 GB, free: 22.07 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007373/10.47, allocations: 107.1 kB / 3.692 GB, free: 21.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/10.47, allocations: 7.938 kB / 3.692 GB, free: 21.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005224/10.47, allocations: 62.14 kB / 3.693 GB, free: 21.93 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.874e-05/10.47, allocations: 20 kB / 3.693 GB, free: 21.91 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 () * 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.0001874/10.47, allocations: 126.2 kB / 3.693 GB, free: 21.78 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001548/10.47, allocations: 50.14 kB / 3.693 GB, free: 21.73 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002845/10.48, allocations: 1.998 MB / 3.695 GB, free: 19.93 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.264e-05/10.48, allocations: 23.39 kB / 3.695 GB, free: 19.92 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/10.48, allocations: 4.125 kB / 3.695 GB, free: 19.91 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/10.48, allocations: 7.797 kB / 3.695 GB, free: 19.91 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001405/10.48, allocations: 1.014 MB / 3.696 GB, free: 19.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/10.48, allocations: 3.938 kB / 3.696 GB, free: 19.01 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005552/10.48, allocations: 74.98 kB / 3.696 GB, free: 18.95 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002349/10.48, allocations: 0.7711 MB / 3.697 GB, free: 18.33 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.412e-05/10.48, allocations: 7.562 kB / 3.697 GB, free: 18.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009382/10.48, allocations: 1 MB / 3.698 GB, free: 17.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/10.48, allocations: 3.703 kB / 3.698 GB, free: 17.34 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001743/10.48, allocations: 1.249 MB / 3.699 GB, free: 16.17 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004201/10.48, allocations: 263.9 kB / 3.699 GB, free: 15.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/10.48, allocations: 12.06 kB / 3.699 GB, free: 15.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006033/10.48, allocations: 41.61 kB / 3.699 GB, free: 15.88 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/10.48, allocations: 31.62 kB / 3.699 GB, free: 15.86 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.11e-05/10.48, allocations: 15.66 kB / 3.699 GB, free: 15.85 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0006101/10.49, allocations: 386.7 kB / 3.699 GB, free: 15.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.81e-07/10.49, allocations: 0 / 3.699 GB, free: 15.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005413/10.49, allocations: 1.203 MB / 3.701 GB, free: 14.33 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.009304/10.5, allocations: 1.599 MB / 3.702 GB, free: 13.07 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00175/10.5, allocations: 0.7051 MB / 3.703 GB, free: 12.41 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.678e-06/10.5, allocations: 0 / 3.703 GB, free: 12.41 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0007235/10.5, allocations: 460.1 kB / 3.703 GB, free: 11.98 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002303/10.51, allocations: 271.5 kB / 3.704 GB, free: 11.79 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002239/10.51, allocations: 1.191 MB / 3.705 GB, free: 10.67 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004306/10.51, allocations: 1.001 MB / 3.706 GB, free: 9.758 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002055/10.51, allocations: 47.44 kB / 3.706 GB, free: 9.711 MB / 0.5105 GB Notification: Performance of SimCode: time 9.02e-07/10.51, allocations: 3.938 kB / 3.706 GB, free: 9.707 MB / 0.5105 GB Notification: Performance of Templates: time 0.4276/10.94, allocations: 32.2 MB / 3.737 GB, free: 89.73 MB / 0.5261 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