Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001232/0.001232, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 225.4 MB / 240.1 MB, free: 15.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008789/0.000879, allocations: 93.89 kB / 292.1 MB, free: 5.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2143/0.2143, allocations: 45.15 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.246e-05/3.256e-05, allocations: 4 kB / 460.4 MB, free: 70.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1296, allocations: 63.24 MB / 0.5114 GB, free: 6.797 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.287/5.417, allocations: 2.767 GB / 3.278 GB, free: 92.64 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001921/5.417, allocations: 83.95 kB / 3.278 GB, free: 92.56 MB / 0.5417 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.211/6.628, allocations: 405.8 MB / 3.675 GB, free: 89.23 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.944e-06/6.628, allocations: 0 / 3.675 GB, free: 89.23 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 3.096e-05/6.628, allocations: 10.66 kB / 3.675 GB, free: 89.23 MB / 0.5417 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.004354/6.633, allocations: 1.55 MB / 3.676 GB, free: 88.4 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/6.633, allocations: 14.44 kB / 3.676 GB, free: 88.39 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00215/6.635, allocations: 300.9 kB / 3.676 GB, free: 88.36 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007175/6.636, allocations: 444 kB / 3.677 GB, free: 88.04 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.667e-05/6.636, allocations: 40.23 kB / 3.677 GB, free: 88.02 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.907e-05/6.636, allocations: 37.03 kB / 3.677 GB, free: 88.01 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/6.637, allocations: 0.6969 MB / 3.678 GB, free: 87.67 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/6.637, allocations: 4.219 kB / 3.678 GB, free: 87.67 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.48e-05/6.637, allocations: 22.98 kB / 3.678 GB, free: 87.66 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/6.637, allocations: 11.22 kB / 3.678 GB, free: 87.66 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/6.638, allocations: 0.5657 MB / 3.678 GB, free: 87.49 MB / 0.5417 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.002604/6.641, allocations: 2.979 MB / 3.681 GB, free: 85.17 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/6.642, allocations: 477.9 kB / 3.682 GB, free: 85.02 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001975/6.642, allocations: 154.4 kB / 3.682 GB, free: 84.95 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08634/6.728, allocations: 62.02 MB / 3.742 GB, free: 39.52 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.049e-05/6.728, allocations: 42.5 kB / 3.742 GB, free: 39.46 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=30): time 1.843e-06/6.728, allocations: 0 / 3.742 GB, free: 39.46 MB / 0.5417 GB Notification: Performance of matching and sorting (n=30): time 0.002013/6.73, allocations: 0.724 MB / 3.743 GB, free: 38.89 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/6.731, allocations: 106.8 kB / 3.743 GB, free: 38.76 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003432/6.731, allocations: 358.2 kB / 3.743 GB, free: 38.43 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.623e-05/6.731, allocations: 33.7 kB / 3.743 GB, free: 38.39 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/6.731, allocations: 245.6 kB / 3.744 GB, free: 38.17 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 5.259e-05/6.731, allocations: 105.2 kB / 3.744 GB, free: 38.07 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.704e-05/6.731, allocations: 8 kB / 3.744 GB, free: 38.07 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.415e-05/6.731, allocations: 357.3 kB / 3.744 GB, free: 37.72 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001526/6.731, allocations: 111.5 kB / 3.744 GB, free: 37.62 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001919/6.732, allocations: 233 kB / 3.745 GB, free: 37.35 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001859/6.732, allocations: 145.8 kB / 3.745 GB, free: 37.23 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/6.732, allocations: 4 kB / 3.745 GB, free: 37.22 MB / 0.5417 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005705/6.732, allocations: 430.4 kB / 3.745 GB, free: 36.83 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002237/6.733, allocations: 1.308 MB / 3.746 GB, free: 35.42 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/6.733, allocations: 7.844 kB / 3.746 GB, free: 35.41 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002408/6.735, allocations: 332.4 kB / 3.747 GB, free: 35.18 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003116/6.735, allocations: 94.47 kB / 3.747 GB, free: 35.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003479/6.736, allocations: 0.5978 MB / 3.747 GB, free: 34.49 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003746/6.736, allocations: 76.69 kB / 3.747 GB, free: 34.42 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.065e-05/6.736, allocations: 19.56 kB / 3.747 GB, free: 34.41 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 7.995e-06/6.736, allocations: 5.562 kB / 3.747 GB, free: 34.4 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004369/6.737, allocations: 336.7 kB / 3.748 GB, free: 34.11 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/6.737, allocations: 7.953 kB / 3.748 GB, free: 34.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.2e-06/6.737, allocations: 4 kB / 3.748 GB, free: 34.09 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003446/6.737, allocations: 106.1 kB / 3.748 GB, free: 34 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/6.737, allocations: 4 kB / 3.748 GB, free: 34 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002813/6.737, allocations: 77.92 kB / 3.748 GB, free: 33.94 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.611e-05/6.737, allocations: 16 kB / 3.748 GB, free: 33.92 MB / 0.5417 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 8.657e-05/6.737, allocations: 128.9 kB / 3.748 GB, free: 33.79 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.619e-05/6.737, allocations: 51.44 kB / 3.748 GB, free: 33.74 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00159/6.739, allocations: 1.996 MB / 3.75 GB, free: 31.93 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.04e-05/6.739, allocations: 29.22 kB / 3.75 GB, free: 31.91 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/6.739, allocations: 0 / 3.75 GB, free: 31.91 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/6.739, allocations: 0 / 3.75 GB, free: 31.91 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007288/6.74, allocations: 1.017 MB / 3.751 GB, free: 31.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/6.74, allocations: 0 / 3.751 GB, free: 31.02 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002647/6.74, allocations: 82.09 kB / 3.751 GB, free: 30.95 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001222/6.741, allocations: 0.7624 MB / 3.752 GB, free: 30.34 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.205e-05/6.741, allocations: 8 kB / 3.752 GB, free: 30.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005296/6.742, allocations: 1.001 MB / 3.753 GB, free: 29.36 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/6.742, allocations: 4.031 kB / 3.753 GB, free: 29.36 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009805/6.743, allocations: 1.259 MB / 3.754 GB, free: 28.18 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002122/6.743, allocations: 258.2 kB / 3.754 GB, free: 27.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.043e-05/6.743, allocations: 8 kB / 3.754 GB, free: 27.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002998/6.743, allocations: 44.67 kB / 3.754 GB, free: 27.89 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.927e-05/6.744, allocations: 32.59 kB / 3.754 GB, free: 27.88 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.341e-05/6.744, allocations: 14.2 kB / 3.754 GB, free: 27.86 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0003339/6.744, allocations: 389.5 kB / 3.755 GB, free: 27.51 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.91e-07/6.744, allocations: 0 / 3.755 GB, free: 27.51 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.004412/6.748, allocations: 1.215 MB / 3.756 GB, free: 26.32 MB / 0.5417 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.004723/6.753, allocations: 1.623 MB / 3.758 GB, free: 25.05 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001005/6.754, allocations: 0.7094 MB / 3.758 GB, free: 24.39 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/6.754, allocations: 4.188 kB / 3.758 GB, free: 24.38 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0003855/6.755, allocations: 466.9 kB / 3.759 GB, free: 23.96 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/6.756, allocations: 269.2 kB / 3.759 GB, free: 23.77 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/6.757, allocations: 1.168 MB / 3.76 GB, free: 22.68 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002663/6.757, allocations: 0.9966 MB / 3.761 GB, free: 21.78 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0007036/6.758, allocations: 0.5773 MB / 3.762 GB, free: 21.44 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.425e-05/6.758, allocations: 47.19 kB / 3.762 GB, free: 21.39 MB / 0.5417 GB Notification: Performance of SimCode: time 2.6e-07/6.758, allocations: 0 / 3.762 GB, free: 21.39 MB / 0.5417 GB Notification: Performance of Templates: time 0.2911/7.049, allocations: 39.66 MB / 3.8 GB, free: 105.3 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestFlowRate/TestFlowRate.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches