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.0009793/0.0009793, allocations: 180.9 kB / 8.006 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.493/1.493, allocations: 205.3 MB / 213.7 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008969/0.0008969, allocations: 90.62 kB / 261.8 MB, free: 1.672 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.2001/0.2001, allocations: 43.48 MB / 353.2 MB, free: 288 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.333e-05/1.334e-05, allocations: 4 kB / 418.3 MB, free: 28.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1193, allocations: 58.85 MB / 477.1 MB, free: 1.629 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.071/7.19, allocations: 2.76 GB / 3.226 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001934/7.19, allocations: 89.97 kB / 3.226 GB, free: 105.3 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.317/8.507, allocations: 397.3 MB / 3.614 GB, free: 68.51 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.373e-06/8.507, allocations: 0 / 3.614 GB, free: 68.51 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.486e-05/8.508, allocations: 14.09 kB / 3.614 GB, free: 68.51 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.006461/8.514, allocations: 1.529 MB / 3.615 GB, free: 67.68 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/8.514, allocations: 15.12 kB / 3.615 GB, free: 67.68 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002356/8.516, allocations: 297 kB / 3.616 GB, free: 67.63 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009377/8.517, allocations: 451.2 kB / 3.616 GB, free: 67.31 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.527e-05/8.517, allocations: 19.14 kB / 3.616 GB, free: 67.3 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.36e-05/8.518, allocations: 26.75 kB / 3.616 GB, free: 67.3 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006114/8.518, allocations: 365.6 kB / 3.617 GB, free: 67.18 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006638/8.519, allocations: 476.1 kB / 3.617 GB, free: 66.9 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/8.519, allocations: 3.953 kB / 3.617 GB, free: 66.9 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.372e-05/8.519, allocations: 3.406 kB / 3.617 GB, free: 66.9 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/8.519, allocations: 10.06 kB / 3.617 GB, free: 66.9 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.08096/8.6, allocations: 51.24 MB / 3.667 GB, free: 33.54 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000461/8.6, allocations: 261.4 kB / 3.667 GB, free: 33.43 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001733/8.601, allocations: 120.2 kB / 3.667 GB, free: 33.38 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09406/8.695, allocations: 55.75 MB / 3.722 GB, free: 12.53 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.158e-05/8.695, allocations: 42.25 kB / 3.722 GB, free: 12.48 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=24): time 2.314e-06/8.695, allocations: 0 / 3.722 GB, free: 12.48 MB / 0.5261 GB Notification: Performance of matching and sorting (n=24): time 0.002375/8.697, allocations: 0.6227 MB / 3.723 GB, free: 11.85 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.09e-05/8.697, allocations: 106.8 kB / 3.723 GB, free: 11.72 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003639/8.698, allocations: 302.2 kB / 3.723 GB, free: 11.42 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.137e-05/8.698, allocations: 25.7 kB / 3.723 GB, free: 11.39 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001675/8.698, allocations: 267.6 kB / 3.723 GB, free: 11.12 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 7.243e-05/8.698, allocations: 89.59 kB / 3.723 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.7e-05/8.698, allocations: 0 / 3.723 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001304/8.698, allocations: 350.8 kB / 3.724 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000154/8.698, allocations: 104 kB / 3.724 GB, free: 10.58 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000239/8.698, allocations: 214.5 kB / 3.724 GB, free: 10.32 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001033/8.699, allocations: 257.3 kB / 3.724 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/8.7, allocations: 0 / 3.724 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001468/8.701, allocations: 0.5094 MB / 3.725 GB, free: 9.551 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005056/8.702, allocations: 1.312 MB / 3.726 GB, free: 8.137 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/8.702, allocations: 4 kB / 3.726 GB, free: 8.133 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002245/8.702, allocations: 52.83 kB / 3.726 GB, free: 8.078 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003405/8.702, allocations: 91.89 kB / 3.726 GB, free: 7.988 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008528/8.703, allocations: 0.6615 MB / 3.727 GB, free: 7.301 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004561/8.703, allocations: 79.56 kB / 3.727 GB, free: 7.223 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.88e-05/8.703, allocations: 23.98 kB / 3.727 GB, free: 7.199 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.704e-06/8.703, allocations: 4 kB / 3.727 GB, free: 7.195 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000967/8.704, allocations: 359.5 kB / 3.727 GB, free: 6.844 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/8.704, allocations: 4 kB / 3.727 GB, free: 6.84 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.965e-06/8.705, allocations: 14.45 kB / 3.727 GB, free: 6.828 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003762/8.705, allocations: 104.3 kB / 3.727 GB, free: 6.727 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/8.705, allocations: 12 kB / 3.727 GB, free: 6.715 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003251/8.705, allocations: 50.61 kB / 3.727 GB, free: 6.668 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.997e-05/8.705, allocations: 24 kB / 3.727 GB, free: 6.645 MB / 0.5261 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 (massFlowRate1.medium.phase,boundary_fixed.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.0001334/8.705, allocations: 120.7 kB / 3.727 GB, free: 6.52 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.591e-05/8.705, allocations: 43.48 kB / 3.728 GB, free: 6.477 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002171/8.708, allocations: 1.584 MB / 3.729 GB, free: 4.883 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.307e-05/8.708, allocations: 19.95 kB / 3.729 GB, free: 4.863 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/8.708, allocations: 8 kB / 3.729 GB, free: 4.855 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/8.708, allocations: 0 / 3.729 GB, free: 4.855 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002726/8.71, allocations: 2.189 MB / 3.731 GB, free: 2.617 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/8.71, allocations: 3.938 kB / 3.731 GB, free: 2.617 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002142/8.711, allocations: 56.02 kB / 3.731 GB, free: 2.562 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006337/8.711, allocations: 0.5806 MB / 3.732 GB, free: 1.98 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.064e-05/8.711, allocations: 4 kB / 3.732 GB, free: 1.977 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00101/8.712, allocations: 1.117 MB / 3.733 GB, free: 0.8359 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/8.712, allocations: 4.031 kB / 3.733 GB, free: 0.832 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2657/8.978, allocations: 1.221 MB / 3.734 GB, free: 101.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002954/8.979, allocations: 191.1 kB / 3.734 GB, free: 101.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.466e-05/8.979, allocations: 7.781 kB / 3.734 GB, free: 101.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003391/8.979, allocations: 33.48 kB / 3.734 GB, free: 101.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.968e-05/8.979, allocations: 25.16 kB / 3.734 GB, free: 101.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.358e-05/8.979, allocations: 12.36 kB / 3.734 GB, free: 101.6 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002238/8.979, allocations: 227.3 kB / 3.735 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.3e-07/8.979, allocations: 0 / 3.735 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004956/8.984, allocations: 1.171 MB / 3.736 GB, free: 101.5 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 13 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,massFlowRate1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.005543/8.99, allocations: 1.691 MB / 3.737 GB, free: 101.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001224/8.991, allocations: 0.6338 MB / 3.738 GB, free: 101.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/8.991, allocations: 1.469 kB / 3.738 GB, free: 101.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00037/8.991, allocations: 403.8 kB / 3.738 GB, free: 101.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009409/8.992, allocations: 180.4 kB / 3.739 GB, free: 101.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/8.994, allocations: 0.9678 MB / 3.74 GB, free: 101.2 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004037/8.994, allocations: 0.9473 MB / 3.74 GB, free: 100.4 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0009462/8.995, allocations: 0.655 MB / 3.741 GB, free: 100.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.728e-05/8.995, allocations: 38.28 kB / 3.741 GB, free: 100.4 MB / 0.5261 GB Notification: Performance of SimCode: time 2.41e-07/8.995, allocations: 1 kB / 3.741 GB, free: 100.4 MB / 0.5261 GB Notification: Performance of Templates: time 0.04209/9.037, allocations: 30.87 MB / 3.771 GB, free: 100.1 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/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